Global Mapper SDK
GM_RepositionLayer
Repositions/reprojects the given layer.
The layer will be positioned according to the ground control point (GCP) list provided. The ground coordinates in the GCP list must be given in the projection specified by aProj. If you just want to change the native projection of the layer, provide NULL for the aGCPList parameter and provide the new native projection with the aProj parameter.
Syntax
C++
Copy
GM_DLL_EXPORTED GM_Error_t32 GM_RepositionLayer
(
GM_LayerHandle_t32 aLayer,
const GM_GroundControlPoint_t* aGCPList,
uint32 aNumGCPs,
const GM_Projection_t* aProj
);