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.8K Features Discussion
- 349 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 651 GM Script Language
- 55 User Scripts
- 115 GPS Features
- 420 Projection Questions
- 835 Raster Data
- 1.4K Vector Data
- 6.6K Support
- 181 Announcement and News
- 936 Bug Report
- 561 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 578 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 244 How I use Global Mapper
- 109 Global Mapper Forum Website
