WFS: distance not working with DWithin?

Bart van den Eijnden bartvde at XS4ALL.NL
Thu Apr 28 12:10:19 PDT 2005


Okay, found out this was a bug in mapogcfilter.c (line 294).

else if (FLTIsLineFilter(psNode) || FLTIsPolygonFilter(psNode))
{
   bShapeQuery = 1;
   // psQueryShape = FLTGetShape(psNode, NULL);
   psQueryShape = FLTGetShape(psNode, &dfDistance);
}

Details in bug report 1335.

Best regards,
Bart

On Thu, 28 Apr 2005 13:45:36 +0200, Bart van den Eijnden
<BEN at SYNCERA-ITSOLUTIONS.NL> wrote:

> Hi list,
>
> I am trying to specify a distance for the DWithin operator but I always
> get back the exact same results (2 results to be exact) irrespective of
> what distance I am using. Is the distance parameter working?
>
> This is the request I am using:
>
> <GetFeature maxfeatures="1000" service="WFS" version="1.0.0"
> xmlns="http://www.opengis.net/wfs"
> xmlns:gml="http://www.opengis.net/gml"
> xmlns:ogc="http://www.opengis.net/ogc"
> xmlns:xlink="http://www.w3.org/1999/xlink"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://schemas.opengis.net/wfs/1.0.0
> WFS-basic.xsd"><Query xmlns=""
> typename="bislocaties"><ogc:Filter><ogc:DWithin><ogc:PropertyName>Geometry</ogc:PropertyName><gml:Polygon
> srsName="EPSG:28992"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>73999.999950,446376.397950
> 74013.112050,446359.819150 74031.775050,446374.369000
> 74074.128000,446321.128050 74005.396050,446262.444950
> 73999.999950,446260.640000 73998.679950,446260.199000
> 73971.634050,446263.116950 73968.018000,446264.092050
> 73920.037950,446320.924000 73921.153050,446322.223900
> 73951.420950,446348.322000 73964.763000,446359.727100
> 73995.931050,446381.542950
> 73999.999950,446376.397950</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon><ogc:Distance
> units="m">5000</ogc:Distance></ogc:DWithin></ogc:Filter></Query></GetFeature>
>
> Thanks in advance.
>
> Best regards,
> Bart
>
> Bart van den Eijnden
> Syncera-ITSolutions
> Postbus 270
> 2600 AG  DELFT
>
> tel.nr.: 015-7512436
> email: BEN at Syncera-ITSolutions.nl
>
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/



More information about the MapServer-users mailing list