[gdal-dev] wms driver and support for more parameters in the URL -
bug in curl?
Jachym Cepicky
jachym.cepicky at gmail.com
Mon Nov 21 11:31:41 EST 2011
Hi,
several installations of GDAL (1.8, 1.9) are having troubles acting as
WMS clients. It seems to be bug in some external library (curl?).
I need to configure the XML file for WMS input for GDAL. The URL of
the server needs to have more parameters. The resulting request has
on some GDAL installations only *one* parameter in the URL.
Example of the WMS file:
<GDAL_WMS>
<Service name="WMS">
<Version>1.1.1</Version>
<ServerUrl>http://www.habitats.cz/cgi-bin/owsproxy.cgi?FROMCRS=epsg%3A4326&OWSSERVICE=WMS&OWSURL=http%3A%2F%2Fgeoportal2.uhul.cz%2Fwms_oprl&</ServerUrl>
<SRS>EPSG:3035</SRS>
<ImageFormat>image/png</ImageFormat>
<Transparent>TRUE</Transparent>
<Styles>default</Styles>
<Layers>Lesni_typ</Layers>
</Service>
<DataWindow>
<UpperLeftX>4559666.0</UpperLeftX>
<UpperLeftY>2946494.33333</UpperLeftY>
<LowerRightX>4566270.0</LowerRightX>
<LowerRightY>2941837.66667</LowerRightY>
<SizeX>936</SizeX>
<SizeY>660</SizeY>
</DataWindow>
<BlockSizeX>1024</BlockSizeX>
<BlockSizeY>1024</BlockSizeY>
<BandsCount>4</BandsCount>
</GDAL_WMS>
See, there are 3 default aditional parameters to the ServerUrl:
FROMCRS, OWSService, OWSUrl.
I try
gdalwarp in.wms in.tiff
On my localhost, correst request with all 3 parameters arrives:
/cgi-bin/owsproxy.cgi?FROMCRS=epsg%3A4326&OWSSERVICE=WMS&OWSURL=http%3A%2F%2Fgeoportal2.uhul.cz%2Fwms_oprl&request=GetMap&version=1.1.1&layers=Lesni_typ&styles=default&srs=EPSG:3035&transparent=TRUE&format=image/png&width=936&height=660&bbox=4559666.00000000,2941837.66667000,4566270.00000000,2946494.33333000
But the our server or on other computer with *same* version of GDAL as
on my localhost, only the *first* one arrives:
/cgi-bin/owsproxy.cgi?FROMCRS=epsg%3A4326&service=WMS&request=GetMap&version=1.1.1&layers=Lesni_typ&styles=default&srs=EPSG:3035&transparent=TRUE&format=image/png&width=936&height=660&bbox=4559666.00000000,2941837.66667000,4566270.00000000,2946494.33333000
So, is there some strange bug in GDAL? In some dependence library
(like curl?) Any other way, how to pass more aditional parameters to
the server with GDAL as client?
Thanks
Jachym
--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp
More information about the gdal-dev
mailing list