Coordinate Systems

With TerraExplorer, the client application can use a different coordinate system from that of the terrain database. The ICoordSys interface provides a set of methods for reprojecting given coordinates between different coordinate systems. Use the SetSourceCS() method to define the coordinate system your application uses. Once a coordinate system has been set by a client, every coordinate used by the client is converted from the source coordinate system used by the client to the terrain coordinate system. Also, any coordinate returned from TerraExplorer (e.g., IPlane5::GetPosition()) is converted from the coordinate system of the terrain, to the client coordinate system.

TerraExplorer Pro also provides a number of service methods to perform advanced geographic-related tasks like converting units to metric value, calculating distances and angles between points. These methods are especially useful when working with globe databases, where the units are in degrees, but work for any database.

See:Working with Coordinate Systems” for an example code in VBScript.