https://github.com/zxyao145/shpconverter
ShpConverter是在DotSpatialv1.9基础上进行构建的一个用于将shapefile文件转换成GeoJSON格式的轻型类库,能够将点、多点、线、多线、以及面图层转换为GeoJSON字符串。
https://github.com/zxyao145/shpconverter
c-sharp-library geojson gis shapefile shpconverter-shapefile-geojson
Last synced: 5 months ago
JSON representation
ShpConverter是在DotSpatialv1.9基础上进行构建的一个用于将shapefile文件转换成GeoJSON格式的轻型类库,能够将点、多点、线、多线、以及面图层转换为GeoJSON字符串。
- Host: GitHub
- URL: https://github.com/zxyao145/shpconverter
- Owner: zxyao145
- License: other
- Created: 2017-08-16T11:16:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-27T12:32:22.000Z (over 6 years ago)
- Last Synced: 2024-10-06T05:21:13.800Z (7 months ago)
- Topics: c-sharp-library, geojson, gis, shapefile, shpconverter-shapefile-geojson
- Language: C#
- Size: 12.8 MB
- Stars: 2
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ShpConverter
=============### 用途
ShpConverter是用来将shapefile文件转换为对应的GeoJSON格式的字符串的.NET(C#)类库。### 项目信息
+ 基于.Net Framework 4.5
+ 目前版本为 v2.0.0.0
+ 基于开源类库 DotSpatial v1.9 和 Jil 而开发。
+ 支持将点、多点、线、多线、以及面shapefile图层转换为GeoJSON。### 更新信息
重构了全部代码,修改了些bug(感谢道友“芥末油”)。### 使用方法
```
IFeatureSet fs = FeatureSet.Open(shpPath);
IShpConvert shpConvert =new ShpConvert(fs);
string geoJson = shpConvert.ToGeoJSON();
```### 注意事项
+ ShpConverter仅用来将shapefile文件转换为GeoJSON格式,适合于GIS开发者或者与GIS相关的项目开发使用。
+ ShpConverter仅支持WGS84地理坐标系### 开发者
zxyao145### 许可协议
有关许可条款的更多信息,请参阅LICENSE.txt。