This is a migrated thread and some comments may be shown as answers.

How to convert logical coordinates to meters?

1 Answer 104 Views
Map
This is a migrated thread and some comments may be shown as answers.
Hasan Khan
Top achievements
Rank 1
Hasan Khan asked on 03 Oct 2011, 05:34 AM
GeographicToLogical gives us value from 0 to 1. I am using this method to project the points using Mercator projection but I want the result in meters. How can we convert the 0-1 value to meters?

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 05 Oct 2011, 02:24 PM
Hello Hasan Khan,

Unfortunately the map projection does not support converting logical coordinates to meters.
If you want calculating distances between two geographical points on the map, then I would recommend that you use the LocationRect structure. It has the Width and Height properties which are calculated according to the DistanceUnit property of the MapControl (kilometers or miles).
The sample code is below.
LocationRect rect = new LocationRect(location1, location2);
rect.MapControl = this.RadMap1;
// rect.Width is x-axis distance between points
// rect.Height is y-axis distance between points

Regards,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Map
Asked by
Hasan Khan
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or