SpatialReferenceSystem.CreateLocal

SpatialReferenceSystem.CreateLocal method

Create local Spatial Reference System.

public static LocalSpatialReferenceSystem CreateLocal(string name, LocalDatum datum, Unit unit, 
    ICollection<Axis> axises, Identifier identifier = null)
ParameterTypeDescription
nameStringName of Spatial Reference System.
datumLocalDatumDatum to be used in SRS.
unitUnitUnit to be used in SRS.
axisesICollection`1Axises to be used in SRS. Must be non empty
identifierIdentifierIdentifier, that will be attached to SRS. Attaching an Identifier will not modify other SRS parameters. Its up to you to ensure consistency of identifier and SRS parameters.

Return Value

New Local Spatial Reference System.

Exceptions

exceptioncondition
InvalidOperationExceptionThere must be at least one axis.
InvalidOperationExceptionaxises is empty.
ArgumentNullExceptionAny argument, except identifier is null.

See Also