Vector Format Conversion Using ogr2ogr: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 8:
'''MIF to SHP''' - ''assuming only one geometry type exists in the MIF file''<Br>
<pre>ogr2ogr.exe -f "ESRI Shapefile" 2d_code_M01_R.shp 2d_code_M01.mif</pre>
 
===Bulk Format Conversion===
<Br>
'''Convert All Files Within Folder to GPKG'''<br>
<pre>ogr2ogr.exe -f GPKG all_layers.gpkg ./path/to/dir</pre>
'''Convert All Files Within Folder to GPKG with Wildcard'''<br>
<pre>ogr2ogr.exe -f GPKG all_layers.gpkg ./path/to/dir/*.shp</pre>
'''Convert All Files From a GPKG to a SHP'''<br>
<pre>ogr2ogr.exe -f GPKG ./path/to/outdir all_layers.gpkg</pre>
 
===Convert Single Layer From GPKG===