Opened 21 years ago

Last modified 17 years ago

#291 new enhancement

calculate distance with UNITS

Reported by: woodbri@… Owned by: sdlime
Priority: high Milestone: FUTURE
Component: MapScript Version: 4.0
Severity: minor Keywords:
Cc:

Description (last modified by hobu)

Enhance Mapscript functions distanceToPoint, distanceToLine, distanceToShape to 
return results in UNITs. Currently, these function return the distance in the 
shapeObj units so when working in DD you get back the number of degrees of 
length which is not real useful.

Change History (2)

comment:1 by hobu, 17 years ago

Description: modified (diff)

Steve,

I don't see how this is possible. With just the units and data in DD, should we reproject to be able to calculate a distance? If so, to what projection? Should we do great circle calculations? If you are doing your work in MapScript, you have the flexibility to project to something that is reasonable for your situation and get a number you expect. Any guess MapServer tries to make is going to be wrong for somebody.

Howard

comment:2 by sdlime, 17 years ago

Milestone: FUTURE

This only makes sense for DD and great circle calculations. Not a high priority so marking as "FUTURE"...

Steve

Note: See TracTickets for help on using tickets.