Click or drag to resize

GM_UtilityCalcProjectedLocation Method

Calculates the location of a new point projected from a start point along a given bearing.

Namespace:  GlobalMapper
Assembly:  GlobalMapperWrapperNET45 (in GlobalMapperWrapperNET45.dll) Version: 19.1.0.0 (19.1.0.0)
Syntax
public static GM_Error_t32 CalcProjectedLocation(
	double aFromX,
	double aFromY,
	double aBearing,
	double aDist,
	out double aToX,
	out double aToY,
	bool aLatLon
)

Parameters

aFromX
Type: SystemDouble
IN: start X/longitude coordinate
aFromY
Type: SystemDouble
IN: start Y/latitude coordinate
aBearing
Type: SystemDouble
IN: bearing in degrees to project along (0 is north, 90 is east, 180 is south, 270 is west)
aDist
Type: SystemDouble
IN: distance to project along bearing in meters
aToX
Type: SystemDouble
OUT: stop X/longitude coordinate
aToY
Type: SystemDouble
OUT: stop Y/latitude coordinate
aLatLon
Type: SystemBoolean
IN: TRUE - coordinates are lat/lon, FALSE - coordinates are in the current projection

Return Value

Type: GM_Error_t32
A GM Error Code
See Also