如何创建适用于D3的GeoJSON?
我只是想尝试使用以下方式将.shp文件转换为geoJSON格式: ogr2ogr -f geoJSON output.json input.shp 执行命令后,似乎没有任何问题。这是output.json的摘录 { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "ID_0": 86, "ISO": "DEU", "NAME_0": "Germany", "ID_1": 1, "NAME_1": "Baden-Württemberg", "NL_NAME_1": null, "VARNAME_1": null, "TYPE_1": "Land", "ENGTYPE_1": "State" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 8.708400940398242, 47.715581894910606 ], [ 8.713716147005524, …