Hi Jukka Rahkonen thank you for your reply But the code of add2 function is in the same VRT file. Need I store in a separate file as well. -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html