ogr2ogr
Verified for current stable LTS
Ogr2ogr Commands
Ogr2ogr command syntax with verified terminal examples.
Commands
6 commands for Ogr2ogr
ogr2ogr Operations
Ogr2ogr Command: Change Coordinate Reference System Geopackage
ogr2ogr -s_srs {EPSG:4326} -t_srs {EPSG:3857} -f GPKG <path/to/output.gpkg> <path/to/input.gpkg> ogr2ogr Operations
Ogr2ogr Command: Clip Geopackage Layers To Bounding Box
ogr2ogr -spat <min_x> <min_y> <max_x> <max_y> -f GPKG <path/to/output.gpkg> <path/to/input.gpkg> ogr2ogr Operations
Ogr2ogr Command: Convert Csv To Geopackage With Coordinates
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 Operations
Ogr2ogr Command: Convert Shapefile To Geopackage
ogr2ogr -f GPKG <path/to/output.gpkg> <path/to/input.shp> ogr2ogr HTTP
Ogr2ogr Command: Load Geopackage Into Postgis Database
ogr2ogr -f PostgreSQL PG:dbname="<database_name>" <path/to/input.gpkg> ogr2ogr HTTP
Ogr2ogr Command: Reduce Geojson Features By Condition
ogr2ogr -where '<myProperty > 42>' -f <GeoJSON> <path/to/output.geojson> <path/to/input.geojson> Suggest a Ogr2ogr Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Ogr2ogr workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.