SpatialReferenceSystem.CreateVertical

SpatialReferenceSystem.CreateVertical method

创建垂直 SRS。

public static VerticalSpatialReferenceSystem CreateVertical(string name, 
    VerticalDatum verticalDatum, Unit verticalUnit = null, Axis verticalAxis = null, 
    Identifier identifier = null)
参数类型描述
名称StringSRS 的名称。如果为 null
verticalDatumVerticalDatum在 SRS 中使用的基准面。
verticalUnitUnit在 SRS 中使用的单位。如果 null,将使用 Meter
verticalAxis在 SRS 中使用的轴,方向为 up 或 down。如果 null,将使用向上的轴。
标识符标识符标识符,将附加到 SRS。附加标识符不会修改其他 SRS 参数。由您自行确保标识符与 SRS 参数的一致性。

返回值

新的垂直 SRS。

异常

异常条件
InvalidOperationExceptionverticalAxis 方向不是 up 或 down。
ArgumentNullException某些必需的参数为 null。

另见