💾 Archived View for freeshell.de › tldr › ogr2ogr.gmi captured on 2023-07-10 at 14:48:12. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
Convert geospatial vector data between file formats.
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).