Cartography(String, Double, Double, Double, Boolean) Constructor
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, rotated
orientation.
Namespace: DHI.ProjectionsAssembly: DHI.Projections (in DHI.Projections.dll) Version: 24.0.0.0 (11.1.1.1111)
public Cartography(
string projectionString,
double lonOrigin,
double latOrigin,
double orientation,
bool validateProjectionString = true
)
new :
projectionString : string *
lonOrigin : float *
latOrigin : float *
orientation : float *
?validateProjectionString : bool
(* Defaults:
let _validateProjectionString = defaultArg validateProjectionString true
*)
-> Cartography
Parameters
- projectionString String
- A string in the WKT format for a spatial reference system, or one of the abbreviations
- lonOrigin Double
- Longitude coordinate of the local grid origin
- latOrigin Double
- Latitude coordinate of the local grid origin
- orientation Double
- Orientation of the cartography class grid, rotation in degreesn clockwise from geographical north
- validateProjectionString Boolean (Optional)
- 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).