gdal icon indicating copy to clipboard operation
gdal copied to clipboard

allow gdaltindex to use -lco

Open landryb opened this issue 3 years ago • 1 comments

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 .. :)

landryb avatar Mar 29 '21 13:03 landryb

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

landryb avatar Mar 29 '21 13:03 landryb

nice ! thanks @rouault

landryb avatar Feb 26 '24 12:02 landryb