On Thu, Jun 2, 2011 at 7:00 AM, Phil Scadden <[email protected]> wrote:
> I am making a WFS query against geoserver 2.0.2, talking to oracle SDE.
> The post looking like:
> <wfs:GetFeaturexmlns:wfs="http://www.opengis.net/wfs"service="WFS"version="1.1.0"xsi:schemaLocation="http://www.opengis.net/wfs
> http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> <wfs:QuerytypeName="MARINE.DSDP_ODP_VIEW"srsName="EPSG:900913">
> <ogc:Filterxmlns:ogc="http://www.opengis.net/ogc";>
> <ogc:DWithin>
> <ogc:PropertyName>SHAPE</ogc:PropertyName>
> <gml:Pointxmlns:gml="http://www.opengis.net/gml"srsName="EPSG:900913";>
> <gml:pos>18671222.484796 -4939227.1111046</gml:pos>
> </gml:Point>
> <ogc:Distanceunits="meters">270</ogc:Distance>
> </ogc:DWithin>
> </ogc:Filter>
> </wfs:Query>
> </wfs:GetFeature>
>
> The problem is it picks up points in the coverage from thousands of
> miles around. The native EPSG of the features is 4326. If I get distance
> down less than 1m, then it selects the right point. It looks
> suspiciously like distance is being interpreted as degrees.

Indeed that's likely what's going on. There is no support whatsoever for unit
interpretation in GeoServer distance filters.
Adding it is possible, but quite a bit of work too

Cheers
Andrea


-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to