All,
I am very new to GeoServer. Can anyone tell me if there is such a thing as a WFS query that uses a single Lat/Long pair plus a radius as a query? I have searched for anything related to this and have come up empty.
sg
All,
I am very new to GeoServer. Can anyone tell me if there is such a thing as a WFS query that uses a single Lat/Long pair plus a radius as a query? I have searched for anything related to this and have come up empty.
sg
Hi,
It is called DWithin filter.
-Jukka Rahkonen-
Gorman, Stephen A. wrote:
All,
I am very new to GeoServer. Can anyone tell me if there is such a
thing as a WFS query that uses a single Lat/Long pair plus a radius as a
query? I have searched for anything related to this and have come up
empty.
sg
Well the wfs spec supports various types of filters. One of them is distance within (DWithin) in which you can specify a geometry literal (your point) and a distance. It should perform how you expect. It also supports the notion of units but those are ignored by GeoServer so it will default to whatever units your projection deals with.
Something like this:
<ogc:DWithin>
<ogc:PropertyName>the_geom</ogc:PropertyName>
<ogc:Literal>
<gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
<gml:coordinates>1345.4534534,8457.2348345</gml:coordinates>
</gml:Point>
</ogc::Literal>
<ogc:Distance units="deg">100</ogc:Distance>
</ogc:DWithin>
When testing out the query on geoserver you can use the additional parameter "&strict=true" to force geoserver to validate the query contents.
Hope that helps.
-Justin
On 10-06-14 5:46 AM, Gorman, Stephen A. wrote:
All,
I am very new to GeoServer. Can anyone tell me if there is such a thing
as a WFS query that uses a single Lat/Long pair plus a radius as a
query? I have searched for anything related to this and have come up empty.sg
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.