什么dassouki说。从
http://www.kyngchaos.com/software:frameworks获取GDAL。使用它将shapefile转换为
GeoJSON像这样:
原文链接:https://www.f2er.com/xml/294012.html$ ogr2ogr -f "GeoJSON" /tmp/world.json world_borders.shp world_borders $ cat /tmp/world.json { "type": "FeatureCollection","features": [ { "type": "Feature","properties": { "CAT": 1.000000,"FIPS_CNTRY": "AA","CNTRY_NAME": "Aruba","AREA": 193.000000,"POP_CNTRY": 71218.000000 },"geometry": { "type": "Polygon","coordinates": [ [ [ -69.882233,... ...