[gdal-dev] Open WMS datasets with GDAL Java

Fabio Rinnone fabio.rinnone0 at gmail.com
Fri Mar 28 04:06:32 PDT 2014


Il 28/03/2014 11:54, Even Rouault ha scritto:
> Does gdal.GetDriverByName("WMS") return a non null pointer ?

It returns an org.gdal.gdal.Driver object. I think this is correctly, right?

>> Il 27/03/2014 20:09, Etienne Tourigny ha scritto:
>>> Have you tried running in debug mode (CPL_DEBUG=ON)?
>>
>> Can I do this? I have added the following:
>>
>> gdal.SetConfigOption("CPL_DEBUG", "ON");
>>
>> before calling of gdal.AllRegister() but does not seem to appear new log
>> messages in standard error when I try to open WMS dataset.
>>
>>> On Thu, Mar 27, 2014 at 3:37 PM, Fabio Rinnone <fabio.rinnone0 at gmail.com
>>> <mailto:fabio.rinnone0 at gmail.com>> wrote:
>>>
>>>     Il 27/03/2014 18:27, Even Rouault ha scritto:
>>>     > Selon Fabio Rinnone <fabio.rinnone0 at gmail.com
>>>     <mailto:fabio.rinnone0 at gmail.com>>:
>>>     >> Hi, I'm trying to open datasets of WMS service with GDAL Java
>>>     warp in an
>>>     >> Android app project with native support. Opening datasets always
>>>     returns
>>>     >> null datasets. An example WMS is the following:
>>>     >>
>>>     >> http://kaart.maakaart.ee/geoserver/wms
>>>     >>
>>>     >> I use following statements:
>>>     >>
>>>     >> name = "WMS:http://kaart.maakaart.ee/geoserver/wms";
>>>     >> gdal.Open(name);
>>>     >>
>>>     >> For my implementation I have adapted python sample code found
>>>     here[2].
>>>     >
>>>     > I guess you lack a call to gdal.AllRegister(); that will register
>>>     the WMS driver
>>>     > (in Python the registration of drivers is automatically done)
>>>
>>>     I'm tried but I have no solved the issue.
>>>
>>>     I thought the problem could be related to the inclusion of curl
>>>     libraries (which are required to support WMS), but they are correctly
>>>     included in Android.mk makefile.
>>>
>>>     Do you have other suggestions?
>>>
>>>     --
>>>     Fabio Rinnone
>>>     93015 Niscemi CL, Italia
>>>     Skype: fabiorinnone
>>>     Web: http://www.fabiorinnone.eu
>>>
>>>
>>>     _______________________________________________
>>>     gdal-dev mailing list
>>>     gdal-dev at lists.osgeo.org <mailto:gdal-dev at lists.osgeo.org>
>>>     http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
>> --
>> Fabio Rinnone
>> 93015 Niscemi CL, Italia
>> Skype: fabiorinnone
>> Web: http://www.fabiorinnone.eu

-- 
Fabio Rinnone
93015 Niscemi CL, Italia
Skype: fabiorinnone
Web: http://www.fabiorinnone.eu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140328/3398c2ba/attachment.pgp>


More information about the gdal-dev mailing list