CoordServices (ICoordServices80)

The ICoordServices80 interface provides a set of methods for reprojecting given coordinates between different coordinate systems. Use the SourceCoordinateSystem property 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. You can retrieve the terrain coordinate system with ITerrain80.CoordinateSystem.

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

 

 

Properties

 

SourceCoordinateSystem

An ICoordinateSystem80 representing the source’s coordinate system.

 

Methods

 

ChooseCSDialog

Opens a high-level dialog that allows the user to select, view, edit, and create a coordinate system.

ConvertCoordinateToMGRS

Converts a given coordinate from the coordinate system of the terrain database to Military Grid Reference System coordinates.

ConvertMGRSToCoordinate

Converts a given Military Grid Reference System coordinate to the coordinate system of the terrain database.

CreateCoordinateSystem

Creates a coordinate system from a Well-Known Text string.

GetAimingAngles

Returns the calculated angle between two specified 3D-coordinates.

GetDistance

Returns the horizontal distance between two given coordinates.

GetDistance3D

Returns the actual aerial distance between two given points.

GetParam

Reserved. Currently not used.

MoveCoord

Moves a 2D-coordinate by a specified west-east and south-north offset.

MoveCoordEx

Deprecated.

Reproject

Converts a given coordinate from one coordinate system to another.

ReprojectEx

Converts a given 3D-coordinate from one coordinate system to another.

SetParam

Reserved. Currently not used.