[gdal-dev] ReprojectImage and nodata

Even Rouault even.rouault at mines-paris.org
Wed Apr 16 07:00:46 PDT 2014


Le mardi 15 avril 2014 11:11:36, Luca Delucchi a écrit :
> I everybody,
> 
> I'm using Python ReprojectImage function to reproject some images but
> there is no way to assign nodata value.

Calling

dst_ds.GetRasterBand(X).SetNoDataValue(nv)
dst_ds.GetRasterBand(X).Fill(nv)

before gdal.ReprojectImage() should do what you want.

> 
> There was already a request for help about one year ago [0], there are
> some news?
> Otherwise could I open a ticket? is it a bug or enhancement?
> 
> Thanks a lot for any hints
> 
> [0]
> http://osgeo-org.1560.x6.nabble.com/gdal-dev-ReprojectImage-and-nodata-td5
> 057270.html

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html


More information about the gdal-dev mailing list