[gdal-dev] driver.GetMetadataItem in Java
Ivan Lucena
ivan.lucena at princeton-ma.us
Wed Sep 26 10:52:12 PDT 2012
Hi Even,
I figured that I could use *driver.GetMetadataItem("DCAP_CREATECOPY")* but it is nice to have that bug fixed.
Thanks,
Ivan
> -------Original Message-------
> From: Even Rouault <even.rouault at mines-paris.org>
> To: gdal-dev at lists.osgeo.org, Ivan Lucena <ivan.lucena at princeton-ma.us>
> Subject: Re: [gdal-dev] driver.GetMetadataItem in Java
> Sent: Sep 26 '12 12:45
>
> 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