Order is determined by the order of the features in the underlying data source. 
To do what you suggest, a good idea BTW, we'd need to change things a bit:

  - need to log distance computation
  - need to develop a sort utility
  - need to alter certain query code to apply a feature count at the very end, 
after all candidates are found and a distance sort is done

Probably RFC worthy.

Steve

________________________________________
From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Rahkonen Jukka 
[jukka.rahko...@mmmtike.fi]
Sent: Friday, August 17, 2012 3:26 AM
To: 'mapserver-users@lists.osgeo.org'
Subject: [mapserver-users] Are WMS GetFeatureInfo results ordered by    
distance?

Hi,

What results will be selected if GetFeatureInfo finds more features within the 
tolerance than used as FEATURE_COUNT parameter?  Are they selected by distance 
are they just the first hits?  If they were ordered by distance then 
GetFeatureInfo could be used for finding N nearest features which might be nice 
sometimes.

-Jukka Rahkonen-
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to