[gdal-dev] Python gdal catch ERROR 6

Luca Delucchi lucadeluge at gmail.com
Wed Oct 7 06:15:20 PDT 2015


Hi devs,

PDF driver is actually supporting only 8 bit band, and if I try to
create a layer using CreateCopy function with a dataset different from
8 bit I get "ERROR 6: PDF driver doesn't support data type UInt16.
Only eight bit byte bands supported."

I try to catch this error using try/except but it doesn't work, should
I test if the result of CreateCopy is not None? Is there any other
better way to catch this error?

thanks

-- 
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org


More information about the gdal-dev mailing list