Re: [gdal-dev] Feature Request: New -oo for VRT

2024-03-20 Thread Scott via gdal-dev

I've been doing it similar, but with awk.


On 3/20/24 13:27, Even Rouault wrote:

Hi,

assuming you use a Unix shell, and using the fact that the content of 
the VRT itself can be used as the datasource name, you can just do:


gdalinfo "$(sed 's/foo/bar/' my.vrt)"

Even

Le 20/03/2024 à 17:24, Scott via gdal-dev a écrit :
It would be nice to have an open option to substitute a string of text 
with some other value, treating .vrt something like a template. Such as:


   -oo REPLACE="'sourceString'='targetString'"

Thoughts? Thanks for listening!
Scott


___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] Feature Request: New -oo for VRT

2024-03-20 Thread Even Rouault via gdal-dev

Hi,

assuming you use a Unix shell, and using the fact that the content of 
the VRT itself can be used as the datasource name, you can just do:


gdalinfo "$(sed 's/foo/bar/' my.vrt)"

Even

Le 20/03/2024 à 17:24, Scott via gdal-dev a écrit :
It would be nice to have an open option to substitute a string of text 
with some other value, treating .vrt something like a template. Such as:


   -oo REPLACE="'sourceString'='targetString'"

Thoughts? Thanks for listening!
Scott


--
http://www.spatialys.com
My software is free, but my time generally not.

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev