Hi,

Many thanks for both these contributions.
Do you have a service running anywhere where I can test your patches?

Actually I've implemented custom parameters in the WCS just using the python 
**kwargs parameter. So we could do it that way in the WMS too (just to make 
them the same). 

Ok, I've made tickets for both these patches and will address them shortly - 
unless anyone else does first!

http://trac.gispython.org/lab/ticket/192
http://trac.gispython.org/lab/ticket/193

Many thanks indeed,

Dom








On Wednesday 14 October 2009 13:10:24 Servais Nabil wrote:
>  Hello,
>
> I would like to suggest 2 patchs.
> The first is  for supporting custom parameters of WMS, I don't know if it's
> normalize by OGC, but it's supported by Mapserver.
> For exemple I have this request  in openlayers:
>
> http://wmshost/cgi-bin/xyea?LAYERS=oursindep%2Cetablissement&FORMAT=jpg&IDO
>URSIN=%20uai_dger%7C%7Cinsee_resplegal%20%7C%7Cfiliere_code%7C%7Csecteur_pro
>_code%7C%7Coption_code&GROUPBYCLAUSE=%20GROUP%20BY%20%20uai_dger&WHERECLAUSE
>=%20WHERE%20secteur_code%20%3D%201&GEOMSUFFIXE=_rel&SERVICE=WMS&VERSION=1.1.
>1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPS
>G%3A27572&BBOX=-679807.84,1230100.62,1925309.84,2987770.38&WIDTH=996&HEIGHT=
>672
>
> And this is the request with my owslib patched :
>
>       url_wms = 'http://wmshost/cgi-bin/xyea'
>       layers = [ 'oursindep', 'etablissement', 'responsables_legaux',
> 'regions']
>       bbox = (-10.900634765625, 36.857250976562, 15.400634765625,
> 55.742749023437)
>       styles = ''
>       custom = {'WHERECLAUSE':'WHERE secteur_code = 1',
>                 'GROUPBYCLAUSE':'GROUP BY uai_dger',
>                 'IDOURSIN':'uai_dger||insee_resplegal
>
> ||filiere_code||secteur_pro_code||option_code'}
>
> img = wms.getmap(layers=layers,
>                        styles=styles,
>                        bbox=bbox,
>                        size=(1197, 859),
>                        format='image/jpeg',
>                        srs='EPSG:4326',
>                        custom = custom
>                        )
>
> And the second is for solve encoding problem when the return of the wms
> server is not ascii.


_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to