Working with Openscales – the Flex open source mapping API – I’ve been querying Geoserver using WFS GET parameters. But I have found some issues both with building the query and response times.
Flex GeoServer – WFS Query
The OGC WFS filter looks like this:
http://server/geoserver/wfs?request=getfeature&service=wfs&version=1.1.1&outputformat=GML3&typename=Sun:AddrPts_City&Filter=
Looks simple, but try adding AND OR to this and life becomes very complex. Plus the response times were 20 secs plus, just for this type of simple query. CQL or Common Query Language is a much better way to go. The above query looks like this in CQL:
http://server/geoserver/wfs?request=getfeature&service=wfs&version=1.1.1&outputformat=GML3&typename=Sun:AddrPts_City&propertyname=ADDRESS,PARCEL_NO,ADDRKEY&CQL_FILTER=ADDRKEY=12203
Much simpler. And by adding the propertyname parameter and limiting these fields, we have a response time of 7 secs!
Related Resources
Contact us to learn more about Openscales.
Recent Comments