[gdal-dev] Parameters to GDAL Pixel Functions?

Even Rouault even.rouault at mines-paris.org
Tue Jul 7 15:35:35 EDT 2009


Matt,

I don't see a way of doing what you want without hacking a bit into GDAL. You 
could easily pass the raster band object ('this') as an additionnal parameter 
to the callback. That way you could call GDALGetMetadataItem() to fetch 
additional parameters from the XML.

Le Tuesday 07 July 2009 16:39:10 Matt Klaric, vous avez écrit :
> I'm trying to make use of the GDAL Pixel Functions in the virtual dataset
> driver.  I have a situation where I would like to construct a pixel
> function that is a function of the pixel values as well as some extra piece
> of information.  This might be one of the metadata items for the image
> (which I could use if the pixel function was able to reference the
> underlying GDALDataset).  Alternatively, the pixel function could take
> these parameters in just about any other way (being specified in the XML
> document, etc).
>
> I'm flexible with regard to the mechanism by which this actually might
> occur, but I need some way to get additional parameters (that vary on an
> image-by-image basis) into the pixel function.
>
> Let me know if any of this is unclear.
>
> Thanks,
> Matt




More information about the gdal-dev mailing list