Click or drag to resize

MapProjection.ProjectionOrigin Method (String, Double, Double, Boolean)

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.

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

Parameters

projstring
Type: System.String
A string the the WKT format for a spatial reference system
lon
Type: System.Double
Longitude coordinate of the projection origin
lat
Type: System.Double
Latitude coordinate of the projection origin
validateProjectionString
Type: System.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