3
使用ogr2ogr转换为shapefile时是否选择要素类型?
Shapefile只能具有一种几何类型,但是许多其他格式(kml,geojson)可以具有多种类型。 转换为shapefile时,是否可以告诉ogr2ogr创建多个shapefile,每种类型一个? 似乎“ -where”选项可能有用,但是手册页中没有解释语法。 例如,这是一条失败的命令: $ wget http://a841-tfpweb.nyc.gov/jackson-heights/wp-content/themes/tfp/kml/transit.kml $ ogr2ogr -f "ESRI Shapefile" transit.shp transit.kml Warning 6: Normalized/laundered field name: 'Description' to 'Descriptio' ERROR 1: Attempt to write non-linestring (POINT) geometry to ARC type shapefile. ERROR 1: Terminating translation prematurely after failed translation of layer Transit (use -skipfailures to skip …