Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在运行的机器上使用终端上的一堆.kml文件。gdal ogr2ogrMac OS 10.12
.kml
gdal ogr2ogr
Mac OS 10.12
没有错误消息,但输出文件为空。.kml文件是谷歌位置历史下载。
我正在使用的代码是:
ogr2ogr -f CSV output1.csv 5209.kml
我也以同样的运气尝试了其他格式。
ogr2ogr -f GeoJSON geojson.json 5209.kml ogr2ogr -f "ESRI Shapefile" points.shp 5209.kml
这将起作用:
ogr2ogr -f GeoJSON --config GDAL_SKIP GML geojson.json 5209.kml
看这里的原因