Global Mapper v24.1

Reposition Layer

ajita2704
ajita2704 Global Mapper User
edited December 2013 in SDK
Hello All,

Can someone tell me how to reposition layer with a given offset. Can some one give an example of it. I know we have to use GM_RepositionLayer function. After getting the offset we add the offset to the GCP List in it.

Comments

  • global_mapper
    global_mapper Administrator
    edited December 2013
    Yes you can use GM_GetLayerInfo to get the layer info include any current control point list, then update those and pass the new list to GM_RepositionLayer to update the layer position.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Guru
    geohelp@bluemarblegeo.com
    Global Mapper
  • ajita2704
    ajita2704 Global Mapper User
    edited December 2013
    Hello Mike,

    Yes I used the GM_GetLayerInfo to get the information of Control points , than according to the number of mNumGCP I added the offset to each GCP and than I passed the GCP list to the GC_RepositionLayer. But yet it did not show any effect to the layer.
  • ajita2704
    ajita2704 Global Mapper User
    edited December 2013
    Hello Mike,

    It is working. I had made a mistake.