How to convert logical coordinates to meters?

2 posts, 0 answers
  1. Hasan Khan
    Hasan Khan avatar
    11 posts
    Member since:
    Jan 2010

    Posted 03 Oct 2011 Link to this post

    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?
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 05 Oct 2011 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top