How to get Geometry of the feature?

mg.srikanth
Global Mapper User
Hello,
Is there any function in SDK for getting the bounds, length or perimeter,area info of a selected line/area feature? or we have to do calculation using the vertices of the selected feature?
Srikanth.
Is there any function in SDK for getting the bounds, length or perimeter,area info of a selected line/area feature? or we have to do calculation using the vertices of the selected feature?
Srikanth.
Comments
-
You can do the calculation using the vertices as you are, or to add measure attributes to every feature in a layer run a script/workspace file with an ADD_MEASURE_ATTRS script command (see http://www.globalmapper.com/helpv14/ScriptReference.html#cmd_add_measure_attrs). If you create a .gmw workspace you can load it with GM_LoadLayerList, or if you have the latest v14 build you can run a script either from a file or directly as the script text using GM_RunScript.
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