1 Star 2 Fork 1

wsh / GeocodeCN

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

GeocodeCN

GitHub Repo stars GitHub repo size GitHub last commit GitHub

1. 介绍

fd

GeocodeCN是一个Qgis插件,用于地理编码,地址——> 坐标,其特点如下

  1. 批量将地址转为坐标
  2. 坐标转换,具备:百度坐标-->WGS84,百度坐标-->GCJ2000
  3. 直接生成Qgis临时点图层
  4. 将结果导出为csv文件

插件包含两个代码库,一个是github、另一个gitee

github:https://github.com/WShihan/GeocodeCN

gitee:https://gitee.com/ShihanW/geocode-cn

2. 使用步骤:

2.1 安装插件

将仓库下载或克隆到本地

  • 使用git

    git clone https://gitee.com/ShihanW/geocode-cn
  • 下载zip文件

    image-20220110124451366

解压后复制到QGis能识别的插件目录,步骤如下:

打开 Qgis --> Settings --> User Profiles --> Open Active Profile Folder

image-20220110122357148

之后进入 Python --> Plugins 目录下,将仓库移动到此处,接下来在Plugins,勾选它。

image-20220112234611216

2.2 插件配置

2.2.1首次使用需要配置坐标系和密钥,密钥需要前往百度开放平台进行注册,这里免费提供一个试用:9IRhgisjtSA8LBnX4RwSdyHamH2jxjxm ,请求额度为:6000。

image-20220712195123022

配置完成,重启qgis。

2.2.2选中csv文件后,指定表格中哪一列作为地址进行匹配。

batch

2.2.3 匹配成功后可以生成点图层或者另存为csv文件。

export

saveas

2.2.4 不同坐标系结果对比

image-20220621025412703

2.2.5 单各地址匹配

输入地址,点击箭头即可匹配地址,坐标系为【批量匹配】模式下选择的坐标系。

image-20220712200127760


3. 说明

  • 依赖百度地图开放接口,具体坐标精度请参考其官网。
  • 地址匹配尽量详细,如:xxx省/市/区xxx街道xxx地,若某地址未匹配成功,插件会自动省略。
  • 坐标转换依赖另一个开源库:https://github.com/wandergis/coordtransform
  • 插件部分功能还没实现,持续更新哦,欢迎你的代码提交。
MIT License Copyright (c) 2022 ShihanW Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

自定义Qgis插件,批量获取地理坐标 :地址 --> 坐标 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/ShihanW/geocode-cn.git
git@gitee.com:ShihanW/geocode-cn.git
ShihanW
geocode-cn
GeocodeCN
master

搜索帮助