SpatialReferenceSystem.TryCreateFromEpsg

SpatialReferenceSystem.TryCreateFromEpsg method

Create a spatial reference system based the specified EPSG code.

public static bool TryCreateFromEpsg(int epsg, out SpatialReferenceSystem value)
ParameterTypeDescription
epsgInt32EPSG code of the spatial reference system.
valueSpatialReferenceSystem&When this methods returns true, contains a SRS with the specified EPSG code; otherwise, contains null.

Return Value

true if specified EPSG code is known and SRS was created; false otherwise.

See Also