[gdal-dev] GDAL & WMS

Baumann, Konstantin Konstantin.Baumann at hpi.uni-potsdam.de
Mon Jun 30 11:19:08 EDT 2008


> -----Original Message-----
> From: Adam Nowacki [mailto:nowak at xpam.de] 
> Sent: Thursday, June 26, 2008 12:19 AM
> Cc: gdal-dev at lists.osgeo.org
> Subject: Re: [gdal-dev] GDAL & WMS
> 
> Baumann, Konstantin wrote:
> >    1. I would like to use the GDAL WMS driver. But without doing a
> >       GetCapabilities request out of the box and with the need of
> >       creating a special XML file for each server, the 
> driver seems to
> >       be a little bit useless to me (from an end user's 
> point of view).
> >       Is there somewhere the GetCapabilities-script mentioned here:
> >       http://trac.osgeo.org/gdal/wiki/SoCWMSDriver? Where 
> do I get the
> >       needed <SizeX> and <SizeY> values from? The GetCapabilities
> >       request of a WMS does not return these values...
> 
> Exactly, GetCapabilities doesnt provide all the required 
> values and they are quite hard to guess without human help. 
> Set SizeX and SizeY based on expected data resolution.

That is not very satisfactory but there seems to be really no way to get
to this information via the standarized WMS interface... :-((

> >    2. I have tried to use the first WMS-XML-file from here:
> >       http://www.gdal.org/frmt_wms.html, to access a WMS 
> server; however
> >       the GDALOpen()-call fails (returns NULL). The WMS driver is
> >       available (verified with "gdalinfo --formats"). Are there any
> >       requirements to the filename used for the XML filename (I used
> >       "D:\wms-test.xml" and inside of my C++-code 
> "D:\\wms-test.xml")?
> 
> Run gdalinfo D:\wms-test.xml, if it works its a problem with 
> your code (are you calling GDALAllRegister, linking with the 
> correct gdal dll, etc). If it doesnt it should at least print 
> some error messages ...

Problem solved: the subdir for the spatial reference system infos was
not found... :-(


More information about the gdal-dev mailing list