Vector Format Conversion Using ogr2ogr: Difference between revisions
Content deleted Content added
Ellis Symons (talk | contribs) No edit summary |
Ellis Symons (talk | contribs) No edit summary |
||
Line 1:
This page lists useful batch file examples for using ogr2ogr.exe. For complete documentation on this tool please visit '''<u>[https://gdal.org/programs/ogr2ogr.html#ogr2ogr gdal.org/programs/ogr2ogr]</u>'''<br>
Format conversion can be done using "<tt>-f <format_name></tt>" then specifying the "<tt><destination_filename> <source_filename></tt>".<br>
Line 9:
<pre>ogr2ogr.exe -f "ESRI Shapefile" 2d_code_M01_R.shp 2d_code_M01.mif</pre>
<Br>
'''Convert All Files Within Folder to GPKG'''<br>
Line 18:
<pre>ogr2ogr.exe -f GPKG ./path/to/outdir all_layers.gpkg</pre>
| |||