[owslib-devel] how to add custom parameter in wms.getmap()

Osman Kepoglu osmankepoglu at gmail.com
Wed Feb 22 08:04:30 PST 2012


Answer is very easy like added below as sample. sorry for inconvenience.

2012/2/22 Osman Kepoglu <osmankepoglu at gmail.com>

> Dear all,
>
> Is there a way to add custom parameter to wms.getmap?
>
> >>> img = wms.getmap(   layers=['global_mosaic'],
> ...                     styles=['visual_bright'],
> ...                     srs='EPSG:4326',
> ...                     bbox=(-112, 36, -106, 41),
> ...                     size=(300, 250),
> ...                     format='image/jpeg',
> ...                     transparent=True
> project='WEBGIS_PROJECT' # like this one
> ...                     )
>
> project is the custom parameter which is required at getmap of wms server
> customized in our ims program. It is not standard in wms specifications. We
> need this parameter, without this parameter wms server is not running.
> Could you help please?
>
> I am trying to produce the url something like this way:
>
>
> http://localhost:8282/WebGISServer/servlet/WebServer?project=WEBGIS_PROJECT&layers=MAHALLE&styles=&srs=EPSG%3A4230&format=image%2Fjpeg&request=GetMap&bgcolor=0xFFFFFF&height=768&width=1366&version=1.1.1&bbox=536164.885068099%2C4396764.68375911%2C560241.905665657%2C4406020.19140838&exceptions=application%2Fvnd.ogc.se_xml&transparent=TRUE
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/owslib-devel/attachments/20120222/52d17dfa/attachment.html>


More information about the OWSLib-devel mailing list