
ogr2ogr
List of commands for ogr2ogr:
-
ogr2ogr:tldr:309b1 ogr2ogr: Clip layers of a GeoPackage file to the given bounding box.$ ogr2ogr -spat ${min_x} ${min_y} ${max_x} ${max_y} -f GPKG ${path-to-output}.gpkg ${path-to-input}.gpkgtry on your machineexplain this command
-
ogr2ogr:tldr:6395f ogr2ogr: Convert a CSV file into a GeoPackage, specifying the names of the coordinate columns and assigning a coordinate reference system.$ 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}try on your machineexplain this command
-
ogr2ogr:tldr:90ae5 ogr2ogr: Reduce a GeoJSON to features matching a condition.$ ogr2ogr -where '${myProperty > 42}' -f ${GeoJSON} ${path-to-output-geojson} ${path-to-input-geojson}try on your machineexplain this command
-
ogr2ogr:tldr:eb106 ogr2ogr: Convert a Shapefile into a GeoPackage.$ ogr2ogr -f GPKG ${path-to-output}.gpkg ${path-to-input}.shptry on your machineexplain this command
-
ogr2ogr:tldr:f6382 ogr2ogr: Load a GeoPackage into a PostGIS database.$ ogr2ogr -f PostgreSQL PG:dbname="${database_name}" ${path-to-input}.gpkgtry on your machineexplain this command
-
ogr2ogr:tldr:fcda1 ogr2ogr: Change coordinate reference system of a GeoPackage from `EPSG:4326` to `EPSG:3857`.$ ogr2ogr -s_srs ${EPSG:4326} -t_srs ${EPSG:3857} -f GPKG ${path-to-output}.gpkg ${path-to-input}.gpkgtry on your machineexplain this command