Re: [gdal-dev] -sql switch in gdal_rasterize

2023-02-12 Thread Scott
Thanks Even! On 2/12/23 08:36, Even Rouault wrote: Implemented in https://github.com/OSGeo/gdal/pull/7235 Le 12/02/2023 à 17:16, Scott a écrit : The hope was to have the gdal_rasterize -sql switch work like it does in the other gdal utilities, ie, -sql @/path/to/source.sql. That consistency

Re: [gdal-dev] -sql switch in gdal_rasterize

2023-02-12 Thread Even Rouault
Implemented in https://github.com/OSGeo/gdal/pull/7235 Le 12/02/2023 à 17:16, Scott a écrit : The hope was to have the gdal_rasterize -sql switch work like it does in the other gdal utilities, ie, -sql @/path/to/source.sql. That consistency would be really nice. All my .sql files live in a si

Re: [gdal-dev] -sql switch in gdal_rasterize

2023-02-12 Thread Scott
The hope was to have the gdal_rasterize -sql switch work like it does in the other gdal utilities, ie, -sql @/path/to/source.sql. That consistency would be really nice. All my .sql files live in a single directory and things are structured around the @ syntax. Further, these .sql quieries can

Re: [gdal-dev] -sql switch in gdal_rasterize

2023-02-12 Thread Rahkonen Jukka
Hi, Optfile will work if you use it right. Optfile is flexible and it can be used for anything, not only for saving a SQL query into a file. Therefore optfile must have the same literal content that user would write by hand to the command. With optfile optfile.txt -sql "select * from