<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=289105210-20092010>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=289105210-20092010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=289105210-20092010>As Steve said, you can do it with WFS.
</SPAN></FONT><FONT color=#0000ff size=2 face=Arial><SPAN
class=289105210-20092010>Send the query below to <A
href="http://demo.deegree.org/deegree-wfs/services">http://demo.deegree.org/deegree-wfs/services</A> with
http POST and you will get back a country which contains the given point
</SPAN></FONT><FONT color=#0000ff size=2 face=Arial><SPAN
class=289105210-20092010><SPAN
class=289105210-20092010><gml:pos>3.988165755918471
47.70294862553225</gml:pos> <BR>Unfortunately using WFS is a bit
tricky and there are still too much interoperability problems with
different WFS servers and clients.</SPAN></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=289105210-20092010></SPAN></FONT><FONT color=#0000ff size=2
face=Arial><SPAN class=289105210-20092010></SPAN></FONT><FONT color=#0000ff
size=2 face=Arial><SPAN class=289105210-20092010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=289105210-20092010><?xml version="1.0"
encoding="ISO-8859-1"?><BR><wfs:GetFeature xmlns:ogc="<A
href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</A>" xmlns:gml="<A
href="http://www.opengis.net/gml">http://www.opengis.net/gml</A>" xmlns:wfs="<A
href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</A>" service="WFS"
version="1.1.0" maxFeatures="1000" outputFormat="text/xml;
subtype=gml/3.1.1"><BR><wfs:Query xmlns:app="<A
href="http://www.deegree.org/app">http://www.deegree.org/app</A>"
srsName="EPSG:4326"
typeName="app:Country"><BR><ogc:Filter><BR><ogc:Contains
xmlns:gml='http://www.opengis.net/gml' ><BR><ogc:PropertyName
xmlns:app="<A
href="http://www.deegree.org/app">http://www.deegree.org/app</A>"><BR>app:geom</ogc:PropertyName><BR><gml:Point
srsName="EPSG:4326" ></SPAN></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=289105210-20092010><gml:pos><BR>3.988165755918471
47.70294862553225</gml:pos><BR></gml:Point><BR></ogc:Contains><BR></ogc:Filter><BR></wfs:Query><BR></wfs:GetFeature><BR></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2>-<SPAN
class=289105210-20092010>Jukka Rahkonen-</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=289105210-20092010></SPAN></FONT> </DIV><FONT color=#0000ff size=2
face=Arial></FONT><FONT color=#0000ff size=2 face=Arial></FONT><FONT
color=#0000ff size=2 face=Arial></FONT><FONT color=#0000ff size=2
face=Arial></FONT><FONT color=#0000ff size=2 face=Arial></FONT><FONT
color=#0000ff size=2 face=Arial></FONT><FONT color=#0000ff size=2
face=Arial></FONT><FONT color=#0000ff size=2 face=Arial></FONT><BR>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV dir=ltr lang=fi class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Lähettäjä:</B>
mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <B>Puolesta </B>Sebastian E.
Ovide<BR><B>Lähetetty:</B> 20. syyskuuta 2010 13:34<BR><B>Vastaanottaja:</B>
Lime, Steve D (DNR)<BR><B>Kopio:</B>
mapserver-users@lists.osgeo.org<BR><B>Aihe:</B> Re: [mapserver-users] get
polygons that contains a point<BR></FONT><BR></DIV>
<DIV></DIV>yes, this works wonderfully !<BR><BR>just wondering if this is a
MapServer only feature of if it is part of some OGC standard
....<BR><BR><BR><BR>
<DIV class=gmail_quote>On Thu, Sep 16, 2010 at 4:00 PM, Lime, Steve D (DNR)
<SPAN dir=ltr><<A
href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV lang=EN-US vlink="purple" link="blue" bgcolor="white">
<DIV>
<P class=MsoNormal><SPAN style="COLOR: rgb(31,73,125); FONT-SIZE: 11pt">In
addition, the standard CGI mode=nquery will do this for you and you can
craft WFS filters to do so as well.</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: rgb(31,73,125); FONT-SIZE: 11pt"></SPAN> </P>
<P class=MsoNormal><SPAN
style="COLOR: rgb(31,73,125); FONT-SIZE: 11pt">Steve</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: rgb(31,73,125); FONT-SIZE: 11pt"></SPAN> </P>
<DIV>
<DIV
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: rgb(181,196,223) 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<P class=MsoNormal><B><SPAN
style="COLOR: windowtext; FONT-SIZE: 10pt">From:</SPAN></B><SPAN
style="COLOR: windowtext; FONT-SIZE: 10pt"> <A
href="mailto:mapserver-users-bounces@lists.osgeo.org"
target=_blank>mapserver-users-bounces@lists.osgeo.org</A> [mailto:<A
href="mailto:mapserver-users-bounces@lists.osgeo.org"
target=_blank>mapserver-users-bounces@lists.osgeo.org</A>] <B>On Behalf Of
</B>Josh Hevenor<BR><B>Sent:</B> Thursday, September 16, 2010 6:50
AM<BR><B>To:</B> Sebastian E. Ovide<BR><B>Cc:</B> <A
href="mailto:mapserver-users@lists.osgeo.org"
target=_blank>mapserver-users@lists.osgeo.org</A><BR><B>Subject:</B> Re:
[mapserver-users] get polygons that contains a point</SPAN></P></DIV></DIV>
<DIV>
<DIV></DIV>
<DIV class=h5>
<P class=MsoNormal> </P>
<P class=MsoNormal>Hi Sebastian<BR>Take a look at the queryByPoint function
found here<BR><A
href="http://mapserver.org/mapscript/php/index.html#layerobj"
target=_blank>http://mapserver.org/mapscript/php/index.html#layerobj</A>
<BR><BR>Hope this helps,<BR>Josh<BR><BR>On 9/16/2010 7:35 AM, Sebastian E.
Ovide wrote: </P>
<P class=MsoNormal>Hi All<BR><BR>I have a OGR Layer. Is there any service
that I can use to retrieve all the polygons from that layer that contain a
given point ? So in the request I add the coordinates and as response I get
the polygons that own that point <BR><BR>thanks<BR><BR clear=all><BR>--
<BR>Sebastian E. Ovide<BR><BR><BR><BR><BR></P><PRE> </PRE><PRE> </PRE><PRE>_______________________________________________</PRE><PRE>mapserver-users mailing list</PRE><PRE><A href="mailto:mapserver-users@lists.osgeo.org" target=_blank>mapserver-users@lists.osgeo.org</A></PRE><PRE><A href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target=_blank>http://lists.osgeo.org/mailman/listinfo/mapserver-users</A></PRE><PRE> </PRE><PRE> </PRE><PRE> </PRE><PRE>No virus found in this incoming message.</PRE><PRE>Checked by AVG - <A href="http://www.avg.com" target=_blank>www.avg.com</A> </PRE><PRE>Version: 8.5.441 / Virus Database: 271.1.1/3136 - Release Date: 09/15/10 06:34:00</PRE><PRE> </PRE></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>Sebastian E.
Ovide<BR><BR><BR><BR><BR></BLOCKQUOTE></BODY></HTML>