GM_SetProjection(Ex)

Sets the new projection. This is the projection that all draws and exports will be done in. It is also the projection that all world bound rectangles will be in.

Syntax

C++
Copy
GM_Error_t32 GM_SetProjection
                    (
                    const GM_Projection_t* aProj
                    );
Copy
GM_Error_t32 GM_SetProjectionEx
                    (
                    const GM_Projection_t* aProj,
                    const GM_Rectangle_t* aLatLonRect, // IN: Optional lat/lon/degrees rectangle for automatic selection
                    of zone for zoned projections
                    void* aReserved // IN: Reserved for future use, must be NULL
                    );
                

 

Remarks

If you pass in a zoned projection, like UTM, with no ZONE attribute or a ZONE or 0, the lat/lon rectangle (if provided) will be used to automatically select the best zone for the provided bounds. If no rectangle is provided, the last drawn rectangle will be used.