I have a gdb folder which contains ~3000 multipolygon layers (with very few features on each layer). I would like to take around 100 of those layers and merge them together while adding a field to the features to indicate what layer they originate from.
I think that ogrmerge.py
can help me with the merge and with feature labeling. But I haven't found a way to either select specific layers to merge (ogrmerge
seems to take an entire dataset as its input) or to extract the relevant layers to create a sub-dataset to pass to ogrmerge
.
Any idea how this could be achieved (preferably with command line open source tools)?