[Gdal-dev] Setting Min/Max/Null raster values on output

Frank Warmerdam warmerdam at pobox.com
Tue Dec 6 17:13:56 EST 2005


On 12/5/05, Garrett Potts <potts at cfl.rr.com> wrote:
> Hello All:
>
> I see on the writing side I can specify no data values (or NULL)  for
> each band but is there a way to specify the min max value for each
> band as well?  I use the GetRasterMinimum and Maximum when reading
> but I don't see a corresponding Set function.

Garrett,

You are right, there is no way of setting the min/max on destination
raster bands.  In some cases a CreateCopy() might copy it from
the source but generally speaking there is not way to accomplish
what you want.

Best regards,

--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list