Global Mapper v25.0

Geo referencing jpegs with the SDK

kalden
kalden Global Mapper User
edited August 2010 in SDK
I would like to be able to take a set of pixel to lat/long mappings and apply them to a raw jpeg file. The goal is to then output a geotiff file.

I can see that GM_ExportRaster will export a loaded layer to a geotiff, but I guess the part I am missing is creating the proper loaded layer. Any suggestions?

Thanks.

Comments

  • global_mapper
    global_mapper Administrator
    edited August 2010
    Use the GM_LoadRectifiedLayer function to load your JPG file and provide your list of pixel to lat/lon mappings as the control points. Once that is loaded you can use the GM_ExportRaster function to export that to a new GeoTIFF file.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • kalden
    kalden Global Mapper User
    edited August 2010
    will global mapper load and render a JPG wthout any control points?
  • global_mapper
    global_mapper Administrator
    edited August 2010
    If you load the JPG with the normal GM_LoadLayerList function and pass in the GM_LoadFlags_UseDefaultPos flag as one of the load flags, then a default position will be used for the layer.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com