SpatialReferenceSystem.CreateFromWkt

SpatialReferenceSystem.CreateFromWkt method

Creates a new SpatialReferenceSystem based on WKT (Well-Known Text) string.

public static SpatialReferenceSystem CreateFromWkt(string wkt)
ParameterTypeDescription
wktStringWKT string.

Return Value

New SpatialReferenceSystem.

Exceptions

exceptioncondition
ArgumentNullExceptionArgument is null.
FormatExceptionHierarchy of wkt values, their order or types, is wrong.
NotSupportedExceptionWKT root element is not supported (for examples it is FITTED_CS).

See Also