Re: [gdal-dev] Advice on `GDALCreateAndReprojectImage` and destination no-data value.

2023-11-04 Thread Fitch, Simeon via gdal-dev
Thanks Even & Javier! Very helpful advice! Much appreciated. Simeon On Fri, Nov 3, 2023 at 7:02 PM Even Rouault wrote: > Simeon, > > Band 1 Block=210x39 Type=Byte, ColorInterp=Gray > > > > The only way I've been able to get the behavior I need is to open the > > written dataset from the fi

Re: [gdal-dev] Advice on `GDALCreateAndReprojectImage` and destination no-data value.

2023-11-03 Thread Even Rouault via gdal-dev
Simeon,     Band 1 Block=210x39 Type=Byte, ColorInterp=Gray The only way I've been able to get the behavior I need is to open the written dataset from the filesystem and set the no-data value explicitly in the band, which is inefficient and awkward. You don't have much alternative than doing

Re: [gdal-dev] Advice on `GDALCreateAndReprojectImage` and destination no-data value.

2023-11-03 Thread Javier Jimenez Shaw via gdal-dev
I do not know that code. But having a look I have the impression that you have to set the nodata also to papszCreateOptions, so the created dataset has it. On Fri, 3 Nov 2023 at 21:36, Fitch, Simeon via gdal-dev < gdal-dev@lists.osgeo.org> wrote: > Hi, > > I'm one of the maintainers at the `georu

[gdal-dev] Advice on `GDALCreateAndReprojectImage` and destination no-data value.

2023-11-03 Thread Fitch, Simeon via gdal-dev
Hi, I'm one of the maintainers at the `georust/gdal` bindings project. 👋 I'm currently working on exposing some of the GDAL Warp functionality in Rust, starting with a simple wrapper around `GDALCreateAndReprojectImage`. I'm having trouble getting the output file to include a no-data value in the