DWithin filter
Bart van den Eijnden
bartvde at XS4ALL.NL
Tue Aug 30 10:18:41 PDT 2005
Try setting TOLERANCEUNITS METERS on your LAYER.
There was a bug in Mapserver but it has been fixed in CVS, this should be
a workaround.
Best regards,
Bart
On Tue, 30 Aug 2005 18:26:32 +0200, Miguel Gonçalves
<mgoncalves at DSI.UMINHO.PT> wrote:
> Hi
>
> Im am using MapServer 4.6.0 for windows.
> I am using the following WFS DWithin filter
>
> http://localhost/cgi-bin/mapserv.exe?MAP=../mymap.map&SERVICE=wfs&VERSION=1.0.0&REQUEST=getFeature&TYPENAME=cities&Filter=
> <Filter>
> <DWithin>
> <gml:Point>
> <gml:coordinates>-8.418000,41.539600</gml:coordinates>
> </gml:Point>
> <Distance units='m'>1000</Distance>
> </DWithin>
> </Filter>
>
> to get all the points in the layer cities in a range of 1000 meters.
> The Problem is that I am not obtaining accurate results.
> The points I am getting as result are in a range bigger than 1000 meters.
> Does somebody can help me?
>
> The mapfile file that I am using is:
>
>
> MAP
> SHAPEPATH "europe_1_data"
>
> WEB
> METADATA
> WFS_TITLE "Mapa da Europa"
> WFS_SRS "http://localhost/cgi-bin/mapserv.exe?"
> END
> END ############## LAYER cities
> LAYER
> NAME cities
> DATA cities
> TYPE line
> DUMP TRUE TOLERANCEUNITS
> METERS
> METADATA
> WFS_TITLE "cities layer"
> GML_INCLUDE_ITEMS "all"
> END
> END
>
> ############## LAYER mjroads
> LAYER
> NAME mjroads
> DATA mjroads
> TYPE line
> DUMP TRUE
> TOLERANCEUNITS METERS
> METADATA
> WFS_TITLE "mjroads layer"
> GML_INCLUDE_ITEMS "all"
> END
> END
>
> ##############LAYER country
> LAYER
> NAME countries
> DATA countries
> TYPE polygon
> DUMP TRUE
> TOLERANCEUNITS METERS
> METADATA
> WFS_TITLE "country layer"
> GML_INCLUDE_ITEMS "all"
> END
> END
>
> END
>
>
> Best regards.
>
> Miguel
>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
More information about the MapServer-users
mailing list