Hello.
I'm not sure that this is the right mailing list to ask this question
but i'll give it a try.. 
Is it possible to get features that is within a specified polyggon in
the WFS getfeature-request?
Something like "&CQL_FILTER geom WITHIN POLYGON(X Y, X Y, XY)"..
Best regards: MÄrten
Hi,
I am not sure if you are interested in http POST or not, but this requests works with WFS 1.0.0 and GeoServer 1.7.0.
<?xml version="1.0" encoding="ISO-8859-1"?>
<wfs:GetFeature xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.0.0" maxFeatures="1000" outputFormat="GML2">
<wfs:Query xmlns:topp="http://www.openplans.org/topp" typeName="topp:states">
<ogc:Filter>
<ogc:Intersects xmlns:gml='http://www.opengis.net/gmlâ >
<ogc:PropertyName xmlns:topp="http://www.openplans.org/topp">
topp:the_geom</ogc:PropertyName>
<gml:Polygon srsName="EPSG:4326">
<gml:outerBoundaryIs>
<gml:LinearRing>
<gml:coordinates cs="," decimal="." ts=" ">
-106.864838,40.998489 -102.086273,42.989891 -100.950142,36.996635 -106.864838,40.998489</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</ogc:Intersects>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
-Jukka Rahkonen-
-----AlkuperÀinen viesti-----
LÀhettÀjÀ: Marten Andersson [mailto:Marten.Andersson@anonymised.com]
LĂ€hetetty: 1. joulukuuta 2008 14:45
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] getFeatures within polygyon in http-request..
Hello.
I'm not sure that this is the right mailing list to ask this
question but i'll give it a try.. 
Is it possible to get features that is within a specified
polyggon in the WFS getfeature-request?
Something like "&CQL_FILTER geom WITHIN POLYGON(X Y, X Y, XY)"..
Best regards: MÄrten
--------------------------------------------------------------
-----------
This SF.Net email is sponsored by the Moblin Your Move
Developer's challenge Build the coolest Linux based
applications with Moblin SDK & win great prizes Grand prize
is a trip for two to an Open Source event anywhere in the
world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Marten Andersson ha scritto:
Hello.
I'm not sure that this is the right mailing list to ask this question
but i'll give it a try.. 
Is it possible to get features that is within a specified polyggon in
the WFS getfeature-request?
Something like "&CQL_FILTER geom WITHIN POLYGON(X Y, X Y, XY)"..
The actual syntax is:
WITHIN(the_geom, POLYGON((-110 20, -110 45, -80 45, -80 20, -110 20)))
took me a few tentatives looking at the examples in:
http://docs.codehaus.org/display/GEOTDOC/01+CQL+Examples
Mind, this one is not part of the WFS standard, whilst the
form suggested by Jukka is.
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
Hi!
Thanks! It was primarly a http GET request that I was looking for, is
that possible?
//MÄrten
On Mon, 2008-12-01 at 15:02 +0200, Rahkonen Jukka wrote:
Hi,
I am not sure if you are interested in http POST or not, but this requests works with WFS 1.0.0 and GeoServer 1.7.0.
<?xml version="1.0" encoding="ISO-8859-1"?>
<wfs:GetFeature xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.0.0" maxFeatures="1000" outputFormat="GML2">
<wfs:Query xmlns:topp="http://www.openplans.org/topp" typeName="topp:states">
<ogc:Filter>
<ogc:Intersects xmlns:gml='http://www.opengis.net/gmlâ >
<ogc:PropertyName xmlns:topp="http://www.openplans.org/topp">
topp:the_geom</ogc:PropertyName>
<gml:Polygon srsName="EPSG:4326">
<gml:outerBoundaryIs>
<gml:LinearRing>
<gml:coordinates cs="," decimal="." ts=" ">
-106.864838,40.998489 -102.086273,42.989891 -100.950142,36.996635 -106.864838,40.998489</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</ogc:Intersects>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
-Jukka Rahkonen-
> -----AlkuperÀinen viesti-----
> LÀhettÀjÀ: Marten Andersson [mailto:Marten.Andersson@anonymised.com]
> LĂ€hetetty: 1. joulukuuta 2008 14:45
> Vastaanottaja: geoserver-users@lists.sourceforge.net
> Aihe: [Geoserver-users] getFeatures within polygyon in http-request..
>
> Hello.
> I'm not sure that this is the right mailing list to ask this
> question but i'll give it a try.. 
>
> Is it possible to get features that is within a specified
> polyggon in the WFS getfeature-request?
>
> Something like "&CQL_FILTER geom WITHIN POLYGON(X Y, X Y, XY)"..
>
> Best regards: MÄrten
>
> --------------------------------------------------------------
> -----------
> This SF.Net email is sponsored by the Moblin Your Move
> Developer's challenge Build the coolest Linux based
> applications with Moblin SDK & win great prizes Grand prize
> is a trip for two to an Open Source event anywhere in the
> world http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>