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.
Namespace: DHI.ProjectionsAssembly: DHI.Projections (in DHI.Projections.dll) Version: 24.0.0.0 (11.1.1.1111)
public static void ProjectionOrigin(
string projstring,
out double lon,
out double lat,
bool validateProjectionString
)
static member ProjectionOrigin :
projstring : string *
lon : float byref *
lat : float byref *
validateProjectionString : bool -> unit
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).