From: Justin D. <jde...@op...> - 2008-05-01 18:08:41
|
Hi Christopher, This post on the geotools users list will be of interest to you: http://www.mail-archive.com/geo...@li.../msg04131.html The short of it is that distance only really works in projected coordinate systems where things are flat. -Justin Christopher Condit wrote: > I'm trying to query the GeoServer WFS service for all point records > within some distance of a given point. My CQL_FILTER clause ends up > looking something like: > &CQL_FILTER=name LIKE 'foo' and DWithin(the_geom, POINT(-84.375 > 26.4312280645), 10, kilometers) > > This, of course, does not work because I just found this: > http://jira.codehaus.org/browse/GEOS-937 > > So I presume that the units in this case (epsg:4326) are dd. But I'm > still getting very strange query results (returning huge numbers of > results in some cases, and none in others). So I'm wondering if there's > a preferred way to write this query in GeoServer... > > Thanks, > -Chris > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Geoserver-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geoserver-users > > !DSPAM:4007,4818b85174635219720167! > -- Justin Deoliveira The Open Planning Project jde...@op... |