Opened 17 years ago

Closed 16 years ago

#2297 closed defect (fixed)

WFS Filter : DWITHIN does not respect the units parameter

Reported by: assefa Owned by: assefa
Priority: normal Milestone: 5.2 release
Component: WFS Server Version: unspecified
Severity: normal Keywords:
Cc: nsavard, szekerest@…

Description

Reported by Norm

When executing the requeste with a buffer in degre, I get the corrct result. But if I use a buffer in Meter, the results are incorrect

Requete buffer en degre # Verify DWITHIN Result: Sydney # RUN_PARMS: wfs_filter_dwithin.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=popplace&FILTER=<Filter><DWithin><PropertyName>Geometry</PropertyName><gml:Point><gml:coordinates>-60.18,46.10</gml:coordinates></gml:Point><Distance units='dd'>0.05</Distance></DWithin></Filter>" > [RESULT]

Requete buffer en metre # Verify DWITHIN Result: Sydney # RUN_PARMS: wfs_filter_dwithin.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=popplace&FILTER=<Filter><DWithin><PropertyName>Geometry</PropertyName><gml:Point><gml:coordinates>-60.18,46.10</gml:coordinates></gml:Point><Distance units='meter'>1000</Distance></DWithin></Filter>" > [RESULT]

Change History (13)

comment:1 by assefa, 17 years ago

Owner: changed from mapserverbugs to assefa
Status: newassigned

comment:2 by assefa, 16 years ago

Milestone: 5.0.1 release5.2 release

comment:3 by assefa, 16 years ago

Resolution: fixed
Status: assignedclosed

committed in r 7739

add msauto a test r7740.

Marking as fixed. Please reopen if there is an issue.

comment:4 by tomkralidis, 16 years ago

Resolution: fixed
Status: closedreopened

Assefa:

I get msautotest errors (after svn up, building) with msautotest against wfs_filter_dwithin_units.xml. See diff at http://devgeo.cciw.ca/ms_tmp/wfs_filter_dwithin_units.diff

comment:5 by assefa, 16 years ago

I can not reproduce this locally. Tom, the diff seems to indicate that the units is not used at all. Norm can you confirm this with latest mapserver svn ?

comment:6 by tomkralidis, 16 years ago

Cc: nsavard added

Norm: see comment:5

comment:7 by nsavard, 16 years ago

I'll check.

comment:8 by nsavard, 16 years ago

I got the same results as Tom.

comment:9 by assefa, 16 years ago

There was memory corruption fixed in r7748.

Tom, Norm please test if possible.

Tamas signaled today a problem with msautotest re this specific test. I am hopeful this fix would eliminate the problem. I will send an e-mail to him to do a test with the fix.

comment:10 by tomkralidis, 16 years ago

Assefa: I just tested this and it works (the only msautotest that is still broken in wfs_filter.map is test wfs_filter_equals_poly.xml).

Feel free to close unless others find issues.

comment:11 by assefa, 16 years ago

Cc: szekerest@… added

Thanks Tom,

I have added Tamas in cc on this bug. If his tests passes, I will close the bug.

comment:12 by nsavard, 16 years ago

Assefa: It works for me as well.

comment:13 by assefa, 16 years ago

Resolution: fixed
Status: reopenedclosed

Thx. closing.

Note: See TracTickets for help on using tickets.