SpatialReferenceSystem.CreateFromEpsg

SpatialReferenceSystem.CreateFromEpsg method

Create a spatial reference system based the specified EPSG code.

public static SpatialReferenceSystem CreateFromEpsg(int epsg)
ParameterTypeDescription
epsgInt32EPSG code of the spatial reference system.

Return Value

A new spatial reference system with the specified EPSG code.

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionArgument is not positive.
NotSupportedExceptionThe specified EPSG code is unknown.

See Also