Move point position
pfothergill
Global Mapper User
Mike,
Using the digitizer tool icon you can right click on a selected point and in the selection list select the Set Point Feature Position and then edit its Lat/Long to automatically update it to that position. How can we do the same edit type process using the SDK or script to change a point feature position as we are importing the new position via external file?
Also can we assign separate features such as points lines etc to a separate layer for each type?
Paul
Using the digitizer tool icon you can right click on a selected point and in the selection list select the Set Point Feature Position and then edit its Lat/Long to automatically update it to that position. How can we do the same edit type process using the SDK or script to change a point feature position as we are importing the new position via external file?
Also can we assign separate features such as points lines etc to a separate layer for each type?
Paul
Comments
-
Paul,
If you are using the SDK you can use the GM_SetPointFeaturePosition function to change the location of a loaded point feature. There is not a way to modify feature positions via the scripting language.
To assign layers by type using the SDK you would need to use the GM_CreateCustomVectorLayer function to create a separate vector layer for each type, then use the GM_AddPointToCustomVectorLayer (similar functions exist for lines and areas) to add features to the appropriate layer based on type.
With the script what you can do is an export to Shapefile with the export split into different files based on the type assigned in Global Mapper. The EXPORT_VECTOR command now (with the v9.03 release) takes a SPLIT_BY_LAYER parameter that enables this behavior.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com
Categories
- 13K All Categories
- 5.8K Features Discussion
- 350 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 652 GM Script Language
- 56 User Scripts
- 115 GPS Features
- 421 Projection Questions
- 835 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 181 Announcement and News
- 939 Bug Report
- 562 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 579 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 244 How I use Global Mapper
- 110 Global Mapper Forum Website
