ogr2ogr, ogrinfo: refresh (#7904)

This commit is contained in:
Jakob Miksch
2022-03-19 19:16:51 +01:00
committed by GitHub
parent 3eb4ea459a
commit c9cfd04065
2 changed files with 18 additions and 2 deletions

View File

@@ -1,12 +1,16 @@
# ogr2ogr
> Convert Simple Features data between file formats.
> Convert geospatial vector data between file formats.
> More information: <https://gdal.org/programs/ogr2ogr.html>.
- Convert a Shapefile into a GeoPackage:
`ogr2ogr -f GPKG {{path/to/output}}.gpkg {{path/to/input}}.shp`
- Reduce a GeoJSON to features matching a condition:
`ogr2ogr -where '{{myProperty > 42}}' -f {{GeoJSON}} {{path/to/output.geojson}} {{path/to/input.geojson}}`
- 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}}.gpkg`