[mapserver-users] Are WMS GetFeatureInfo results ordered by distance?

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Fri Aug 17 06:27:48 PDT 2012


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-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi]
Sent: Friday, August 17, 2012 3:26 AM
To: 'mapserver-users at 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 at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users





More information about the MapServer-users mailing list