[Geoserver-users] RE: <ogc:Touches> tag

Hi,

Could anyone kindly help me on this below (as sent to the list previously)?
Once again, thank you very much.

Regards,
Lee Wai See
ST Electronics (Info-Software Systems) Pte Ltd

  _____

From: Lee Wai See [mailto:leewse@anonymised.com]
Sent: Wednesday, May 17, 2006 2:35 PM
To: 'geoserver-users@lists.sourceforge.net'
Subject: <ogc:Touches> tag

Hi,

I am wondering whether the <ogc:Touches> tag is supported by GeoServer. I
have been trying to use this tag to filter out some features that touches a
given point. My query is as such:

<wfs:Query typeName="prrm:road">

    <wfs:PropertyName>prrm:road_name</wfs:PropertyName>

    <ogc:Filter>

      <ogc:Touches>

        <ogc:PropertyName>the_geom</ogc:PropertyName>

        <gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;

           <gml:coordinates>103.82110722,1.38459521</gml:coordinates>

        </gml:Point>

      </ogc:Touches>

   </ogc:Filter>

  </wfs:Query>

</wfs:GetFeature>

This is the result I got after submitting the request to the server:

<gml:boundedBy>

  <gml:null>unknown</gml:null>

</gml:boundedBy>

I am wondering what this means. Does it mean that there is no feature that
the point touches, or is there an error in my request? If the problem lies
with my request, please tell me where I went wrong and how I should
construct a correct one. Would really appreciate if someone could give me
some pointers. Thank you.

Regards,
Lee Wai See
ST Electronics (Info-Software Systems) Pte Ltd

[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the message
from your system; please do not copy or use it for any purpose, nor disclose
its contents to any other person. Thank you.]
---ST Electronics Group---

Apologies for missing this earlier.

Yes, the touches tag is supported.

I'm pretty positive that result means nothing was returned.

Note that touches is super exact, you may try using intersects. I'm not sure if it's actually different for points, but it may get you better results. You also could do a distance filter with a small amount of give, which would give you some margin for if the point isn't precisely touching.

Chris

Lee Wai See wrote:

Hi,

Could anyone kindly help me on this below (as sent to the list previously)?
Once again, thank you very much.

Regards, Lee Wai See ST Electronics (Info-Software Systems) Pte Ltd

  _____

From: Lee Wai See [mailto:leewse@anonymised.com] Sent: Wednesday, May 17, 2006 2:35 PM
To: 'geoserver-users@lists.sourceforge.net'
Subject: <ogc:Touches> tag

Hi,

I am wondering whether the <ogc:Touches> tag is supported by GeoServer. I
have been trying to use this tag to filter out some features that touches a
given point. My query is as such:

<wfs:Query typeName="prrm:road">

    <wfs:PropertyName>prrm:road_name</wfs:PropertyName>

    <ogc:Filter>

      <ogc:Touches>

        <ogc:PropertyName>the_geom</ogc:PropertyName>

        <gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;

           <gml:coordinates>103.82110722,1.38459521</gml:coordinates>

        </gml:Point>

      </ogc:Touches>

   </ogc:Filter>

  </wfs:Query>

</wfs:GetFeature>

This is the result I got after submitting the request to the server:

<gml:boundedBy>

  <gml:null>unknown</gml:null>

</gml:boundedBy>

I am wondering what this means. Does it mean that there is no feature that
the point touches, or is there an error in my request? If the problem lies
with my request, please tell me where I went wrong and how I should
construct a correct one. Would really appreciate if someone could give me
some pointers. Thank you.

Regards, Lee Wai See ST Electronics (Info-Software Systems) Pte Ltd

[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the message
from your system; please do not copy or use it for any purpose, nor disclose
its contents to any other person. Thank you.]
---ST Electronics Group---

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org