Hi,

I've been trying to get geotools' WFS client to work with the WITHIN filter
for a couple of days now but it just kept on giving an invalid
FeatureCollection size. I've done a bit more digging in the geotools' WFS
client code and found that it was actually geoserver that is preventing it
from giving me the correct info.

If you send Geoserver a getCapabilities request (this defaults to version
1.1), it won't list WITHIN filter as a supported spatial operator. On the
other hand, if you explicitly request that version 1.0.0 be used, it will
list WITHIN as a supported spatial operator.

http://e1.newcastle.edu.au/geoserver/wfs?request=GetCapabilities <-- this
doesn't list WITHIN as a supported spatial operator
http://e1.newcastle.edu.au/geoserver/wfs?request=GetCapabilities&version=1.0
.0 <-- this has WITHIN in the spatial operator list

I have a feeling that it might just be configuration somewhere that needs to
be switched on to include WITHIN operator in the supported list.  Running an
actual GetFeature query against a WFS 1.1 service I have below, I get back
the information I needed.

http://e1.newcastle.edu.au/geoserver/wfs?request=GetFeature&typeName=cfer:Au
sBySLA&propertyName=Area_Code,SLA_Id,SLA_Name&cql_filter=WITHIN%28the_geom,%
20POLYGON%20%28%28-33.980647586%20140.961681984,%20-39.159189527500004%20140
.961681984%20,%20-39.159189527500004%20149.976679008,%20-33.980647586%20149.
976679008,%20-33.980647586%20140.961681984%29%29%29

Should I add an entry to JIRA about this issue?

Thanks,

Gerson Galang
Research Software Engineer
Melbourne eResearch Group
The University of Melbourne


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to