[gdal-dev] Error in Derived Band in Virtual raster
jratike80
jukka.rahkonen at maanmittauslaitos.fi
Mon Dec 2 00:04:56 PST 2019
Hi,
It seems that you have defined a Python function "add2" that does nothing
because it has no code
<PixelFunctionType>add2</PixelFunctionType>
<PixelFunctionLanguage>Python</PixelFunctionLanguage>
<PixelFunctionCode>
</PixelFunctionCode>
You have perhaps tried to modify the example from
https://gdal.org/drivers/raster/vrt.html
<PixelFunctionType>add</PixelFunctionType>
<PixelFunctionLanguage>Python</PixelFunctionLanguage>
<PixelFunctionCode>
</PixelFunctionCode>
Have you saved your add2 function into a separate Python script? In that
case follow the hillshading.py example.
-Jukka Rahkonen-
bhandari wrote
> Hell All
>
> I have defined a derived Virtual Raster as follows.
> <VRTDataset rasterXSize="25828" rasterYSize="16749">
>
> <SRS>
> GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS
> 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4326"]]
> </SRS>
>
> <GeoTransform>
> 7.8318056012634287e+01, 1.1839023066784193e-04,
> 0.0000000000000000e+00, 3.0866547275126596e+01, 0.0000000000000000e+00,
> -7.3767782488687317e-05
> </GeoTransform>
>
> <VRTRasterBand dataType="Float32" band="1"
> subClass="VRTDerivedRasterBand">
>
> <PixelFunctionType>
> add2
> </PixelFunctionType>
>
> <PixelFunctionLanguage>
> Python
> </PixelFunctionLanguage>
>
> <PixelFunctionCode>
>
> </PixelFunctionCode>
>
> <SimpleSource>
>
....
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
More information about the gdal-dev
mailing list