【发布时间】:2013-10-25 13:26:35
【问题描述】:
我有一个要转换为 geoJSON 的形状文件列表。我正在使用 GDAL OSGeo4W shell 进行转换。
首先,我定义坐标系(因为它们不是为 shapefile 定义的)然后我转换它们。
我可以轻松地为单个文件执行此操作,但是由于我有 200 多个 shapefile,因此我想遍历它们。
我的个人命令是:
ogr2ogr -s_srs http://spatialreference.org/ref/epsg/27700/ srs_def x.shp
ogr2ogr -f GeoJSON -t_srs EPSG:27700 x.geojson x.shp
【问题讨论】:
标签: loops gdal shapefile osgeo