<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div style="font-family:Helvetica,Arial;font-size:13px; ">Hi,</div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ">I’ve just started experimenting with the new gdal command line tools.</div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ">I’ve tried the following command to merge a few thousand GeoJSON files into one GeoPackage:</div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ">gdal vector concat --mode=single gb-postcodes-v5/units/*.geojson all_unit_postcodes.gpkg</div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ">I get thousands of errors like:</div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ">ERROR 4: gb-postcodes-v5/units/KY4.geojson: Too many open files</div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ">Switching back to ogrmerge, I find that this command works fine:</div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ">ogrmerge -single -progress -o all_unit_postcodes_v2.gpkg gb-postcodes-v5/units/*.geojson</div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ">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?</div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div class="gmail_signature"><div class="gmail_signature">Best regards,</div><div class="gmail_signature"><br></div><div class="gmail_signature">Robin</div><div class="gmail_signature"><br></div><div class="gmail_signature">Dr Robin Wilson</div><div class="gmail_signature">www.rtwilson.com</div></div></body></html>