Why does my WFS filter not work?
Gregor Mosheh
gregor at HOSTGIS.COM
Sun Dec 2 12:34:17 PST 2007
Yewondwossen Assefa wrote:
> Gregor,
> I don't see anything wrong with the request.
> I did have the expected result.
Are you saying that when you run this URL, you get back a feature?
http://69.59.158.15/cgi-bin/mapserv?map=/maps/spraywatch2/wms/mapfile.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&typename=parcels&Filter=<Filter><PropertyIsEqualTo><PropertyName>gid</PropertyName><Literal>2389524</Literal></PropertyIsEqualTo></Filter>
I get a service exception: "msQueryByRect(): Search returned no results.
No matching record(s) found." This is silly since the bbox search shows
several matches, some of which would clearly match the filter.
http://69.59.158.15/cgi-bin/mapserv?map=/maps/spraywatch2/wms/mapfile.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&typename=parcels&srs=EPSG:4326&bbox=168.011840820312,-46.9196395874023,168.127075195312,-46.896656036377
I tried filtering by other fields as well, but keep getting not found
exceptions.
The parcels layer (yes, it's PostGIS) is well over 1 GB, so I'm not sure
what you want with it.
This is MS 5.0.0, FYI
--
Gregor Mosheh / Greg Allensworth
System Administrator, HostGIS cartographic development & hosting services
http://www.HostGIS.com/
"Remember that no one cares if you can back up,
only if you can restore." - AMANDA
More information about the MapServer-users
mailing list