All Cadcorp SIS API Methods

GetAxesFromLatLonHgt Method

Description

Gets the current axes (x,y,z) position from latitude, longitude and height above sea-level.

Syntax

Visual Basic
Public Function GetAxesFromLatLonHgt( _
   ByVal lat As Double, _
   ByVal lon As Double, _
   ByVal hgt As Double, _
   ByVal datum As String _
) As String

Parameters

lat
The latitude of the required position in degrees.
 
lon
The longitude of the required position in degrees.
 
hgt
The height of the required position in metres.
 
datum
The named Geodetic Datum for the lat and lon input arguments. This can be any named Geodetic Datum previously created using DefineNolDatum or loaded from a Named Object Library (NOL).

Return Type

A comma-delimited string containing the x, y and z coordinates of the position within the current Map Window projection. Use SplitPos to get the x, y and z values themselves. The SetAxesPrj Method cannot be used to overwrite the definition from the Map Window projection.

If the Map Window projection is geographic and not cartographic, then the return will be Lat and Lon of location on the Map Window datum.

Remarks

Available: GEO D OD OM OV SISpy

Group:

Example

sis.GetAxesFromLatLonHgt (0, 0, 10, "OGC.WGS_1984")