All,
I'm using GS 1.4.0 RC5. When I try a spatial filter like this:
&Filter=<Filter><Contains><PropertyName>Geometry</PropertyName><gml:Point><g
ml:Pos>28.0,40.0</gml:Pos></gml:Point></Contains></Filter>
Or this:
Filter=<Filter><Overlaps><PropertyName>the_geom</PropertyName><gml:Polygon><
gml:exterior><gml:LinearRing><gml:posList>25 25 26 26 25 26 25
25</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></Overlaps></F
ilter>
I get exceptions saying "Attempted to construct illegal filter - I dont
understand the tag: gml:Point." (or gml:Polygon)
Any ideas?
Thanks,
Steve
Stephen Crawford
Center for Environmental Informatics
GeoVISTA Center
The Pennsylvania State University
814.865.9905
src176@anonymised.com
You need to define the gml namespace. I believe something like the following should work:
> &Filter=<Filter xmlns:gml="http://www.opengis.net/gml"><Contains><PropertyName>Geometry</PropertyName><gml:Point><g
> ml:Pos>28.0,40.0</gml:Pos></gml:Point></Contains></Filter>
Chris
Stephen Crawford wrote:
All,
I'm using GS 1.4.0 RC5. When I try a spatial filter like this:
&Filter=<Filter><Contains><PropertyName>Geometry</PropertyName><gml:Point><g
ml:Pos>28.0,40.0</gml:Pos></gml:Point></Contains></Filter>
Or this:
Filter=<Filter><Overlaps><PropertyName>the_geom</PropertyName><gml:Polygon><
gml:exterior><gml:LinearRing><gml:posList>25 25 26 26 25 26 25
25</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></Overlaps></F
ilter>
I get exceptions saying "Attempted to construct illegal filter - I dont
understand the tag: gml:Point." (or gml:Polygon)
Any ideas?
Thanks,
Steve
Stephen Crawford
Center for Environmental Informatics
GeoVISTA Center
The Pennsylvania State University
814.865.9905
src176@anonymised.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:1003,457edcef294292207481331!
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org