[gdal-dev] driver.GetMetadataItem in Java

Even Rouault even.rouault at mines-paris.org
Wed Sep 26 10:45:44 PDT 2012


Le mercredi 26 septembre 2012 07:44:57, Ivan Lucena a écrit :
> Hi there,
> 
> Is there any particular reason why that this code in Java results nulls
> 
> Driver driver = gdal.GetDriver(1);
> String a = driver.GetMetadataItem(gdalconstConstants.DCAP_CREATE);
> String b = driver.GetMetadataItem(gdalconstConstants.DCAP_CREATECOPY);
> System.out.println(a + " - " + b);
> 
> null - null

Fixed by http://trac.osgeo.org/gdal/ticket/4828

The issue was that the gdalconstConstants.DCAP_CREATE constant expanded to 
"GDAL_DCAP_CREATE" instead of "DCAP_CREATE".


More information about the gdal-dev mailing list