Author Topic: GetShapeIndiciesIntersectingCircle - How to set the radius in meters  (Read 328 times)

theo2f

  • Newbie
  • *
  • Posts: 13
    • View Profile
Hi guys.
I need to get all shape indicies from a point with X meters of radius.
I'm using this, but it's not a precise result:

Code: [Select]

double radius = Math.Sqrt((pt1.X - pt2.X) * (pt1.X - pt2.X) + (pt1.Y - pt2.Y) * (pt1.Y - pt2.Y)) / 100;
List<int> ind = new List<int>();
map.GetShapeIndiciesIntersectingCircle(ind, pt1, radius);


Thank you.
« Last Edit: March 02, 2018, 01:06:03 am by theo2f »