- globalmapper.ProjectionGetBase(GM_Projection_t aProjIn) GM_Error_t32, GM_Projection_t
-
Retrieves the underlying base projection that forms the basis for a given projection. For example, the underlying Transverse Mercator projection will be returned for a UTM projection. For core projections, like Transverse Mercator, the output will just match the input.
- Parameters:
-
aProjIn (GM_Projection_t) – projection to convert from (None for current)
- Returns:
-
Error Code
- Return type:
-
GM_Error_t32
- Returns:
-
Projection on which the input projection is based
- Return type:
Example
The following is an example of ProjectionGetBase.
import globalmapper as gm
### START SAMPLE
err_ProjectionGetBase, proj = gm.ProjectionGetBase(gm.GM_Projection_t())
### END SAMPLE
assert (
gm.GM_Error_None == err_ProjectionGetBase
), f"ProjectionGetBase: Expected {gm.GM_Error_None}, got {err_ProjectionGetBase}"
For more context refer to the tutorial page on setting projections.