Vector Format Conversion Using ogr2ogr: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 35:
''MIF With Multiple Geometry Types To SHP''<br>
:* ''<tt>-where <clause></tt>'': "-where" can be used to specify a clause to only select a given geometry type
<pre>
<pre>ogr2ogr.exe -f "ESRI Shapefile" -where ""OGR_GEOMETRY='Point'"" 2d_zsh_P.shp 2d_zsh.mif
<pre>ogr2ogr.exe -f "ESRI Shapefile" -where ""OGR_GEOMETRY='LineStringPoint'"" 2d_zsh_L2d_zsh_P.shp 2d_zsh.mif
<pre>ogr2ogr.exe -f "ESRI Shapefile" -where ""OGR_GEOMETRY='PolygonLineString'"" 2d_zsh_R2d_zsh_L.shp 2d_zsh.mif</pre>
<pre>ogr2ogr.exe -f "ESRI Shapefile" -where ""OGR_GEOMETRY='PointPolygon'"" 2d_zsh_P2d_zsh_R.shp 2d_zsh.mif
</pre>