1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

ogrmerge.py: add page (#7903)

This commit is contained in:
Jakob Miksch 2022-03-19 19:26:56 +01:00 committed by GitHub
parent c9cfd04065
commit 00e01e07ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,16 @@
# ogrmerge.py
> Merge several vector datasets into a single one.
> More information: <https://gdal.org/programs/ogrmerge.html>.
- Create a GeoPackage with a layer for each input Shapefile:
`ogrmerge.py -f {{GPKG}} -o {{path/to/output.gpkg}} {{path/to/input1.shp path/to/input2.shp ...}}`
- Create a virtual datasource (VRT) with a layer for each input GeoJSON:
`ogrmerge.py -f {{VRT}} -o {{path/to/output.vrt}} {{path/to/input1.geojson path/to/input2.geojson ...}}`
- Concatenate two vector datasets and store source name of dataset in attribute 'source_name':
`ogrmerge.py -single -f {{GeoJSON}} -o {{path/to/output.geojson}} -src_layer_field_name country {{source_name}} {{path/to/input1.shp path/to/input2.shp ...}}`