API Reference > OdDb Classes > OdDbGeoData Class > OdDbGeoData Methods > transformToLonLatAlt Method > OdDbGeoData::transformToLonLatAlt Method (OdGePoint3d&, OdGePoint3d&)
OdDbGeoData::transformToLonLatAlt Method (OdGePoint3d&, OdGePoint3d&)
Syntax
C++
OdResult transformToLonLatAlt(const OdGePoint3d& dwgPt, OdGePoint3d& geoPt) const;
Parameters 
Description 
const OdGePoint3d& dwgPt 
[in] Point, in design coordinates, to be transformed.  
OdGePoint3d& geoPt 
[out] Geographic equivalent of the dwgPt.
 

Returns eOK if successful, or an appropriate error code if not.

Transforms the design point into an equivalent geographic point. 

 

Longitude ordinate is transformed in the X member of the OdGePoint3d object, latitude ordinate is transformed in the Y member of the OdGePoint3d object and the elevation (altitude) is transformed in the Z member of the OdGePoint3d object.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.