Hi,
I used the proxy.py script (equivalent to the proxy.cgi in OpenLayers example) with a WFS request, on which I applied a OGC filter. The proxy didn't work as normally, because of a space-character in middle of my OGC filter.

The solution I've applied was to quote the part of the OGC filter:
start = url.find("<ogc:Filter")
end = url.find("</ogc:Filter>")

urlPre = url[:start]
urlFilter = url[start:end+13]
urlPost = url[end+13:]
url = urlPre + urllib.quote(urlFilter) + urlPost

Could this solution be integrated in the example?

Best regards,
Daniel


--
*Daniel Degasperi*
*R3 GIS* Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
web: www.r3-gis.com <http://www.r3-gis.com/>
Email: [email protected] <mailto:[email protected]>
Tel. : +39 0473 494949
Fax : +39 0473 069902

*ATTENZIONE!* Le informazioni contenute nella presente e-mail e nei documenti eventualmente allegati sono confidenziali. La loro diffusione, distribuzione e/o riproduzione da parte di terzi, senza autorizzazione del mittente è vietata e può violare il D. Lgs. 196/2003. In caso di ricezione per errore, Vogliate immediatamente informare il mittente del messaggio e distruggere la e-mail.

*ACHTUNG!* Die in dieser Nachricht oder in den beigelegten Dokumenten beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders verboten und verstößt gegen das Legislativdekret 196/2003. Sollten Sie diese Mitteilung irrtümlicherweise erhalten haben, bitten wir Sie uns umgehend zu informieren und anschließend die Mitteilung zu vernichten.

*WARNING!* This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclousure or distribution of the material in this e-mail is strictly forbidden and could be against the law (D. Lgs. 196/2003)





_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to