[gdal-dev] VRT pixel functions on tiled vrt

Even Rouault even.rouault at spatialys.com
Fri Apr 27 12:32:46 PDT 2018


On vendredi 27 avril 2018 12:42:16 CEST William Kyngesburye wrote:
> OK, it worked as vrt of a vrt.  Memory not an issue.
> 
> But I have a new problem.  One vrt I want to instead do > -29 (caspian sea,
> -29 in SRTM data).  The whole region evaluates to 1 (true).  It looks like
> the in_ar[] is getting truncated to an unsigned byte, 0-255, from its
> orignal Int16.  

Check the various data types mentionned in the VRT. Perhaps there's one set to 
Byte.
It would also probably be safer to define
<SourceTransferType>GDT_Int16</SourceTransferType>
at the same level than the <PixelFunction...> elements

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180427/888a08ec/attachment.html>


More information about the gdal-dev mailing list