Why does my WFS filter not work?
Gregor Mosheh
gregor at HOSTGIS.COM
Mon Dec 3 09:27:10 PST 2007
>>> Is it possible for you to check mapserver debug messages (set DEBUG
>>> true on the layer)
> CONFIG "MS_ERRORFILE" "test.log"
> DEBUG 5
> This should write all debug informations in the file. And you should set
> DEBUG true on your postgis layer.
Big question:
This version of "enabling debugging" isn't on the website, as far as I
can see. Or if it is, it's not mentioned from the debug and log
directives in the mapfile reference. Is this new for MS4 or MS4.10,
and/or should the docs be updated?
BUT, now that the logging is working, it was somewhat informative:
SELECT
"featcode"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text
from parcels WHERE (gid= 2389524) and (the_geom && setSRID( 'BOX3D(-1
-1,-1 -1)'::BOX3D,find_srid('','parcels','the_geom') ));
See that BOX3D() for intersection testing? If I so a manual SQL query,
swapping in real coordinates such as BOX3D(168.011 -46.919,168.12
-46.89) then it finds the feature!
So: What's with this spurious bbox when one was not specified in the
URL? I tried the Subversion version as well, and got exactly the same
results.
--
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