Quantum GIS(QGIS)是开源地理信息系统桌面软件, 使用GNU(General Public License)授权,属于 Open Source eospatial Foundation(OSGeo)的官方计划。 在 GNU 授权下,开发者可以自行检阅与调整程序代码,并保障让所有使用者可以免费且自由地修改程序。
QGIS 的目标是成为一个 GIS系统,提供常见的功能与特征。借着核心特征提供基本功能与附加组件(Python 或 C++) 持续地扩充,让使用者可以浏览、管理、编辑、分析数据以及制图。
QGIS 是一群自愿者所开发的项目,为程序代码提供缺陷修复、报告以及文件等贡献。 它是由热心的使用者和开发社群所维护的。它提供了交互式的邮件列表, 以及通过网络管道传达给其他用户与开发人员帮助与建议。另外,它也提供商业定制化开发。
QGIS项目开始于2002年5月,是基于跨平台的图形工具Qt软件包,采用C++ 语言开发的一个GIS软件。 目前的开发非常活跃,当前Windows(2020年)的最新版本是QGIS 3.12版。
参考来源:Q3基础教程
kml与shapefile互转
Convert KML to Shapefile
Open up the installed QGIS.
Select Layer in the menu bar and press Add Vector Layer or select the shortcut icon. Browse the KML file, in the Source DataSet type, in the pop up window opened.(While browsing, select either all files or Key Hole Markup language in file type). And press Open.
select layer from the menu and click on save as.
In the Save vector layer as window, Select the format from the drop down box as ESRI Shapefile(OGR) and browse the folder in which you want to save the shapefile. Name it and Press OK.
Reference: 1
Convert Shapefile to kml by QGIS
- Open up the installed QGIS.
- In the menu bar, select Layer and press Add Vector Layer. Now select the source type in the pop up window opened as File and browse the source Shapefile(Note:Your shapefile .shp, .dbf and .shx file should be in same folder). Press open.
- Right click on the name of Shapefile layer Appearing in the Left upper side and select save as:
or
You can select layer from the menu, and click on save as. (Image below provide demonstrate both the options with the indicator displayed) - In the Save vector layer as window, Select the format from the drop down box as Keyhole Markup Language(KML) and browse the folder in which you want to save the KML file . Name it and Press OK.
Your KML file will be Exported in the directed folder. You can Verify the generated KML file for its validity by uploading the generated KML file to QGIS or uploading KML file in Google map. You may soon find the tool and the coding for the same on this site.
- Reference: 1
在QGIS中导入Google、Bing、高德等地图和卫星影像
- 安装QuickMapServices插件
打开QGIS,在菜单Plugins中选择Manage and Install Plugins…
搜索QuickMapServices,选中并点击Install,等待即可完成安装。
安装好后会在工具栏显示三个图标,选择带➕号的那个,打开即可看到大量底图,单击即可导入。
有些朋友可能发现底图并没有图片上展示的这么多,这是由于部分底图需要额外获取,选择底部的Settings→More services→Get contributed pack,即可完成获取。
批量替换字段值
- open attribute table (
F6
) - open field calculator (
CTRL + I
) - Inverse select
create a new field
and Input follow expression
1 | replace("地类",'裸地','植被') |
Note that the double quotes indicate a field name while the single quotes refer to a static string. These are not interchangeable.
参考文献:
地物分类统计插件
Plugins
-> Manage and Install Plugins...
->
搜索 并 安装 Group Stats
然后在 Vector
下找到 并 使用
Rows
: 地类Columns
: SumValue
: Area
点击 Calculate
,结果在左上角,可点击 Data
另存为 *.CSV
文件。
参考文献:
矢量裁剪
快捷键
ctrl+d
remove layer or group
- 本文作者: pei.liu
- 本文链接: http://liupei.ink/2022/04/24/qgis/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!