How to find nearest desired feature?

mg.srikanth
Global Mapper User
Hello,
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.
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.
Comments
-
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.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com
Categories
- 12.9K All Categories
- 5.7K Features Discussion
- 346 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 645 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 419 Projection Questions
- 829 Raster Data
- 1.4K Vector Data
- 6.6K Support
- 180 Announcement and News
- 926 Bug Report
- 561 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 575 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 242 How I use Global Mapper
- 108 Global Mapper Forum Website