[gdal-dev] gdalbuildvrt cannot specify srcnodata for multiple bands

Jon Morris Jon.Morris at jbarisk.com
Fri Sep 25 09:34:52 PDT 2020


I'm trying to build a vrt and specify multiple source nodata values. It's the same problem with both gdalbuildvrt on the commandline and calling gdal.BuildVRTOptions programmatically. Looking at the doc and at the code, it seems that the srcNodata value needs to be a string of space separated values, e.g. "1 2 3". When I examine the created VRT, the nodata value for each band is 1. It's taken the first value and ignored the other two.

Am I doing this right? I'm still using GDAL 2.2.0, so apologies if this has been fixed in a more recent version.

Thanks,

Jon

Jon Morris
Software Developer

COVID-19. During the current outbreak JBA remains open for business and we continue to deliver our services. However, we have adopted flexible/remote working as required. I will be receiving and reading email as normal but I may not always be available on the office number.


[JBA COVID-19 statement]<https://www.jbagroup.co.uk/sites/www.jbagroup.co.uk/files/documents/15-030%20JBA%20Business%20Continuity%20Briefing%20-%20Latest.pdf>

T +44 (0) 1756 799919
www.jbarisk.com<http://www.jbarisk.com>

[Visit our website]<http://www.jbarisk.com> [http://www.jbagroup.co.uk/imgstore/JBA-Email-Sig-Icons-LINKEDIN.png] <https://www.linkedin.com/in/jon-morris-a2897b4/>  [Follow us on Twitter] <https://twitter.com/jbarisk>

Find out more about us here: www.jbarisk.com<http://www.jbarisk.com/> and follow us on Twitter @JBARisk<http://twitter.com/JBARisk> and LinkedIn<https://www.linkedin.com/company/2370847?trk=tyah&trkInfo=clickedVertical%3Acompany%2CclickedEntityId%3A2370847%2Cidx%3A2-1-2%2CtarId%3A1447414259786%2Ctas%3AJBA%20RISK%20MANAGEMENT>

The JBA Group supports the JBA Trust.

All JBA Risk Management's email messages contain confidential information and are intended only for the individual(s) named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system.


JBA Risk Management Limited is registered in England, company number 07732946, 1 Broughton Park, Old Lane North, Broughton, Skipton, North Yorkshire, BD23 3FD, Telephone: +441756799919


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200925/5f83c012/attachment.html>


More information about the gdal-dev mailing list