globalmapper.RepositionLayer¶
- globalmapper.RepositionLayer(GM_LayerHandle_t32 aLayer, GM_GroundControlPoint_t aGCPList, uint32 aNumGCPs, GM_Projection_t aProj) GM_Error_t32 [source]¶
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 None for the aGCPList parameter and provide the new native projection with the aProj parameter.
- Parameters
aLayer (GM_LayerHandle_t32) – the layer you want to reposition
aGCPList (GM_GroundControlPoint_t) – the list of ground control points to use to reposition the layer
aNumGCPs (uint32) – the size of aGCPList
aProj (GM_Projection_t) – the projection to use for the layer and GCPs
- Returns
Error Code
- Return type
GM_Error_t32