CoordinateReferenceSystemParse Method |
Creates and initializes a coordinate reference system.
Namespace:
Ptv.Components.Projections
Assembly:
Ptv.Components.Projections (in Ptv.Components.Projections.dll) Version: 1.7.10.0
Syntax public static CoordinateReferenceSystem Parse(
string wkt,
bool lazy = false
)
Public Shared Function Parse (
wkt As String,
Optional lazy As Boolean = false
) As CoordinateReferenceSystem
public:
static CoordinateReferenceSystem^ Parse(
String^ wkt,
bool lazy = false
)
static member Parse :
wkt : string *
?lazy : bool
(* Defaults:
let _lazy = defaultArg lazy false
*)
-> CoordinateReferenceSystem
Parameters
- wkt
- Type: SystemString
CRS parameters, specified as Proj4 well known text. - lazy (Optional)
- Type: SystemBoolean
Specifies if the transformation handles are to be created immediately or on demand.
Return Value
Type:
CoordinateReferenceSystemReturns the newly created CoordinateReferenceSystem instance.
Remarks Examples The following is an example of creating a
WGS84 like coordinate reference System:
string wkt = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs";
CoordinateReferenceSystem crs = CoordinateReferenceSystem.Parse(wkt);
...
See Also