I need to calculate a position that is a specific distance away from a known point. That is easy as I can use MapPoint.Offset(dx,dy). What is complicated is that dx and dy must be specified in map units and I have a value which is defined in metres.
If the spatial reference is one that uses metres by default this is easy, and if the spatial reference is known to be, say, WGS84 I can convert the metres value into degrees.
What I can't state at design time is what the spatial reference of the map is to be at run time; that is it might be WGS84 or it might be UTM or something else. This means I need to convert a value in metres to map units based on the spatial reference of the map but I cannot find a function that does this.
Can anyone help please?