On Sat, Dec 11, 2010 at 11:27 AM, Hajo Kliemeck <[email protected]> wrote:
> Hi,
>
> i want to filter against a circle, but the only thing i will always get
> is a nullpointer exception. Any Ideas? I'm using GeoServer 2.0.2.
>
> <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs";
> xmlns:ogc="http://www.opengis.net/ogc";
> xmlns:gml="http://www.opengis.net/gml"; version="1.1.0"
> service="WFS">
>        <wfs:Query typeName="mmw:germany-zipcode">
>                <ogc:Filter>
>                        <ogc:Intersects>
>                                <ogc:PropertyName>the_geom</ogc:PropertyName>
>                                <gml:CircleByCenterPoint numArc="1">
>                                        <gml:pos>8.406452 49.393737</gml:pos>
>                                        <gml:radius uom="km">5</gml:radius>
>                                </gml:CircleByCenterPoint>
>                        </ogc:Intersects>
>                </ogc:Filter>
>        </wfs:Query>
> </wfs:GetFeature>

We only support flat geometries made of straight segments, circle is not
part of what GeoServer can understand.

That said, the same filter can be expressed as a ogc:DWithin.

However I see you are using mixed unit of measures, data in geographic
coordinates,
distances in km. We don't have good support for that either, as far as
I know the only
store that has code to properly support dwithin filters with a unit of
measure is
Oracle.
In theory also PostGIS 1.5 would be able to natively support a dwithin filter
on lat/lon data, afaik provided the column is defined as a geographic one,
but the code to encode the proper sql is not there.

For stores that do not have such a native ability I guess we could compute an
approximate buffer in memory and then transform the filter into an
overlaps/intersects
one.

I'd really love to add these missing abilities, but it would take a
significant amount of time,
so I guess that will have to wait until someone that can code
GeoTools/GeoServer actually
needs this ability in one of his projects, or someone provides funding
to have the
implementation happen

Cheers
Andrea

-----------------------------------------------------
Ing. Andrea Aime
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584962313
fax:     +39 0584962313

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

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

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to