Move point position

pfothergill
pfothergill Global Mapper User
edited April 2008 in Technical Support
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

Comments

  • global_mapper
    global_mapper Administrator
    edited April 2008
    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