Blaz
November 19, 2008, 2:15pm
1
Hey list!
I'm trying to do a WfsGetFeature with Intersection filter. The request looks
like this:
<wfs:GetFeature service="WFS" version="1.1.0"
xmlns:topp="http://www.openplans.org/topp" ;
xmlns:wfs="http://www.opengis.net/wfs" ;
xmlns="http://www.opengis.net/ogc" ;
xmlns:gml="http://www.opengis.net/gml" ;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ;
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"> ;
<wfs:Query typeName="topp:layer_test">
<Filter>
<Intersects>
<PropertyName>the_geom</PropertyName>
<gml:MultiPolygon
srsName="http://www.opengis.net/gml/srs/epsg.xml#2170"> ;
<gml:polygonMember>
<gml:Polygon>
<gml:outerBoundaryIs>
<gml:LinearRing>
<gml:coordinates>53.....862.19340034</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</gml:polygonMember>
</gml:MultiPolygon>
</Intersects>
</Filter>
</wfs:Query>
</wfs:GetFeature>
As the result of the operation i get no features. The GS says:
filter: [ the_geom intersects MULTIPOLYGON EMPTY ]
So my guess is that it doesn't read the filter poly points? Why? Is my
filter constructed badly?
thnx!
btw. I'm using GS 1.6.3
--
View this message in context: http://www.nabble.com/Intersection-tests-tp20580657p20580657.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
GeoUser ha scritto:
Hey list!
I'm trying to do a WfsGetFeature with Intersection filter. The request looks
like this:
<wfs:GetFeature service="WFS" version="1.1.0"
xmlns:topp="http://www.openplans.org/topp" ;
xmlns:wfs="http://www.opengis.net/wfs" ;
xmlns="http://www.opengis.net/ogc" ;
xmlns:gml="http://www.opengis.net/gml" ;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ;
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"> ;
<wfs:Query typeName="topp:layer_test">
<Filter>
<Intersects>
<PropertyName>the_geom</PropertyName>
<gml:MultiPolygon
srsName="http://www.opengis.net/gml/srs/epsg.xml#2170"> ;
<gml:polygonMember>
<gml:Polygon>
<gml:outerBoundaryIs>
<gml:LinearRing>
<gml:coordinates>53.....862.19340034</gml:coordinates> </gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</gml:polygonMember>
</gml:MultiPolygon>
</Intersects>
</Filter>
</wfs:Query>
</wfs:GetFeature>
As the result of the operation i get no features. The GS says:
filter: [ the_geom intersects MULTIPOLYGON EMPTY ]
So my guess is that it doesn't read the filter poly points? Why? Is my
filter constructed badly?
You should use GML3 for the geometries, as WFS 1.1 requires it.
From the looks of it you're specifying the geometry as GML2.
Either that, or use WFS 1.0
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
Blaz
November 19, 2008, 6:33pm
3
Thanks Andrea you are absolutely correct. D*mn how could have i missed that.
Thanks again!
--
View this message in context: http://www.nabble.com/Intersection-tests-tp20580657p20586263.html
Sent from the GeoServer - User mailing list archive at Nabble.com.