How to find nearest desired feature?

mg.srikanthmg.srikanth Global Mapper UserPosts: 27
edited November 2012 in SDK
I need to find the nearest road feature from a location in a dgn file, I used one of the function in the sample app for finding the nearest feature but, the applicatin is giving me the nearest feature which is not required to me. Is there any solution to find out the required feature which is nearest to the given position on the map, for example a nearest road feature even though there are many other features near to the given point.


  • global_mapperglobal_mapper Administrator Posts: 17,238
    edited November 2012
    You could disable all of the other feature types except for line before doing the nearest search, or perhaps put all of the roads in their own layer and just find the nearest to that layer. Or you could of course always do your own nearest search just in the features that you want by getting their raw coordinates and finding the distance to them.


    Global Mapper Guru
Sign In or Register to comment.