Click or drag to resize

GM_ProjectPointList

Projects a list of points from one coordinate system to another. By default each conversion is done at the ellipsoid surface, but if you provide a list of elevation values (one for each point) you can have the calculation done at some arbitrary height relative to the ellipsoid surface. If NULL is passed for either projection parameter, the current view projection will be used. If any of the reprojections fail, GM_Error_Projection will be returned.

If you need to reproject a large number of points this is much faster than making separate calls to GM_ProjectPoint for each point feature.

For examples on how to set up projection definitions, see the documentation for the GM_SetProjection function.

Syntax
GM_Error_t32 __stdcall GM_ProjectPointList
(
GM_Point_t*             aPointList, // IN/OUT: List of points to convert and buffer to hold converted points
uint32                  aNumPoints, // IN: Number of points to convert
float*                  aElevList,  // IN: Optional list of elevations (in meeters above ellipsoid surface) to do conversions at. Use NULL for default conversion at ellipsoid surface
const GM_Projection_t*  aProjIn,    // IN: projection to convert from (NULL for current)
const GM_Projection_t*  aProjOut    // IN: projection to convert to (NULL for current)
)