💾 Archived View for freeshell.de › tldr › ogr2ogr.gmi captured on 2023-01-29 at 05:06:50. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

ogr2ogr

Convert geospatial vector data between file formats.

More information.

ogr2ogr -f GPKG {path/to/output}.gpkg {path/to/input}.shp
ogr2ogr -where '{myProperty > 42}' -f {GeoJSON} {path/to/output.geojson} {path/to/input.geojson}
ogr2ogr -s_srs {EPSG:4326} -t_srs {EPSG:3857} -f GPKG {path/to/output}.gpkg {path/to/input}.gpkg
ogr2ogr -f GPKG {path/to/output}.gpkg {path/to/input}.csv -oo X_POSSIBLE_NAMES={longitude} -oo Y_POSSIBLE_NAMES={latitude} -a_srs {EPSG:4326}
ogr2ogr -f PostgreSQL PG:dbname="{database_name}" {path/to/input}.gpkg
ogr2ogr -spat {min_x} {min_y} {max_x} {max_y} -f GPKG {path/to/output}.gpkg {path/to/input}.gpkg
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY