Cartography Constructor (String, Double, Double, Boolean) |
Create and initialize a cartography object using the
specified projection string, setting the origin of the user
defined local grid coordinates to the
lonOrigin, latOrigin
Namespace:
DHI.Projections
Assembly:
DHI.Projections (in DHI.Projections.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax public Cartography(
string projectionString,
double lonOrigin,
double latOrigin,
bool validateProjectionString = true
)
Public Sub New (
projectionString As String,
lonOrigin As Double,
latOrigin As Double,
Optional validateProjectionString As Boolean = true
)
public:
Cartography(
String^ projectionString,
double lonOrigin,
double latOrigin,
bool validateProjectionString = true
)
new :
projectionString : string *
lonOrigin : float *
latOrigin : float *
?validateProjectionString : bool
(* Defaults:
let _validateProjectionString = defaultArg validateProjectionString true
*)
-> Cartography
Parameters
- projectionString
- Type: SystemString
A string in the WKT format for a spatial reference system, or one of the abbreviations - lonOrigin
- Type: SystemDouble
Longitude coordinate of the local grid origin - latOrigin
- Type: SystemDouble
Latitude coordinate of the local grid origin - validateProjectionString (Optional)
- 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