MapProjectionProjectionOrigin 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
)
Public Shared Sub ProjectionOrigin (
projstring As String,
<OutAttribute> ByRef lon As Double,
<OutAttribute> ByRef lat As Double,
validateProjectionString As Boolean
)
public:
static void ProjectionOrigin(
String^ projstring,
[OutAttribute] double% lon,
[OutAttribute] double% lat,
bool validateProjectionString
)
static member ProjectionOrigin :
projstring : string *
lon : float byref *
lat : float byref *
validateProjectionString : bool -> unit
Parameters
- projstring
- Type: SystemString
A string the the WKT format for a spatial reference system - lon
- Type: SystemDouble
Longitude coordinate of the projection origin - lat
- Type: SystemDouble
Latitude coordinate of the projection origin - validateProjectionString
- Type: SystemBoolean
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