MapProjectionProjectionOrigin(String, Double, Double, Boolean) Method

Returns the geographical origin of the projection defined by the projstring

If the projection string is not a valid WKT string, an exception is thrown.

Definition

Namespace: DHI.Projections
Assembly: DHI.Projections (in DHI.Projections.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public static void ProjectionOrigin(
	string projstring,
	out double lon,
	out double lat,
	bool validateProjectionString
)

Parameters

projstring  String
A string the the WKT format for a spatial reference system
lon  Double
Longitude coordinate of the projection origin
lat  Double
Latitude coordinate of the projection origin
validateProjectionString  Boolean
Bool specifying if projectionstrings should be validated or not. It is fairly expensive to validate the projection strings, and the validation can be skipped by setting this flag to false. Then the user must beforehand check that the projection is valid by calling IsValid(String).

See Also