[gdal-dev] gdal vector concat fails with `Too many open files` but ogrmerge works fine

Robin Wilson robin at rtwilson.com
Mon Aug 4 04:19:12 PDT 2025


Hi,

I’ve just started experimenting with the new gdal command line tools.

I’ve tried the following command to merge a few thousand GeoJSON files into one GeoPackage:

gdal vector concat --mode=single gb-postcodes-v5/units/*.geojson all_unit_postcodes.gpkg

I get thousands of errors like:

ERROR 4: gb-postcodes-v5/units/KY4.geojson: Too many open files

Switching back to ogrmerge, I find that this command works fine:

ogrmerge -single -progress -o all_unit_postcodes_v2.gpkg gb-postcodes-v5/units/*.geojson

Has there been a change which means that gdal vector concat tries to open all the files in parallel, and then runs out of spare file handles? Is there any way around this for the new gdal vector concat command?

Best regards,

Robin

Dr Robin Wilson
www.rtwilson.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250804/68917f07/attachment.htm>


More information about the gdal-dev mailing list