Vector Format Conversion Using ogr2ogr: Difference between revisions

Content deleted Content added
Line 39:
:* ''<tt>-where <clause></tt>'': "-where" can be used to specify a clause to only select a given geometry type
<pre>
ogr2ogr.exe -f "ESRI Shapefile" -where ""OGR_GEOMETRY='Point'" 2d_zsh_P.shp 2d_zsh.mif
ogr2ogr.exe -f "ESRI Shapefile" -where ""OGR_GEOMETRY='LineString'" 2d_zsh_L.shp 2d_zsh.mif
ogr2ogr.exe -f "ESRI Shapefile" -where ""OGR_GEOMETRY='Polygon'" 2d_zsh_R.shp 2d_zsh.mif
</pre>
'''MIF With Multiple Geometry Types To a Single GPKG'''<Br>