gdal
gdal copied to clipboard
allow gdaltindex to use -lco
Right now (in 3.2.2) its not possible to pass layer creation options to gdaltindex (if its possible, then its not documented..) - it would be nice to have -lco
to be able to pass options when building the index.
My usecase is directly creating the tileindex in postgis, not in the default schema, and afaict i need -lco SCHEMA=foo
for that... of course you can create the tindex as GPKG or SHP then transfer it to postgis via ogr2ogr
but .. :)
i can of course use -lyr_name
to acheive what i need in the psql case, but still that would be a generic nice improvement:
gdaltindex -f postgresql -lyr_name ign.orthohr_2020 -write_absolute_path "PG:host=xxx dbname=gisdata user=postgis" O*/ORTHOHR/1*/OHR*/*.jp2
nice ! thanks @rouault