Jachym: there's a Filter parser in pycsw 
(https://pycsw.svn.sourceforge.net/svnroot/pycsw/trunk/server/fes.py) which 
does this (transforms OGC filters to SQL).  Note that there is work to do to 
support infinite level of recursion or And/Or/Not statements (currently goes 
two levels deep).  Any enhancements are welcome!

..Tom


-----Original Message-----
From: [email protected] on behalf of Jachym Cepicky
Sent: Sun 31-Jul-11 07:37
To: [email protected]
Subject: [Community] convert between ogc and ogr filters
 
hi,

is there a way, how to easy parse OGC Filter and eventually transform
it to OGR filter?

Example

<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc";><ogc:PropertyIsEqualTo
matchCase="true"><ogc:PropertyName>VLAST</ogc:PropertyName><ogc:Literal>obce</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter>

to

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

Reply via email to