Home > Working with SGWorld > CoordServices (ICoordServices6)

CoordServices (ICoordServices6)

The ICoordServices6 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  ITerrain6.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 work for any database.

 

 

Properties

 

SourceCoordinateSystem

An ICoordinateSystem6 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

Opens a high-level dialog that allows the user to create a coordinate system.

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.

MoveCoord

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

MoveCoordEx

Enables you to define an orientation for a coordinate system and move a 3D-coordinate along it by a specified Forward-Backward, Right-Left and Up-Down offset.

Reproject

Converts a given coordinate from one coordinate system to another.