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

Dominic Lowe dominic.lowe at stfc.ac.uk
Wed Feb 22 08:03:07 PST 2012


Hi Volkan,

Are you using the latest version (0.4.0)?

You should just be able to add keyword arguments as you have done in 
your example.
(although I notice that you are missing a comma after True).

Cheers,
Dom

On 22/02/12 15:46, osmankepoglu at gmail.com wrote:
> 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
>
>

-- 
Scanned by iCritical.




More information about the OWSLib-devel mailing list