Projection.TryGetParameterValue
Projection.TryGetParameterValue method
获取此投影中指定名称的参数。如果不存在此类参数,则返回 null。
public double? TryGetParameterValue(string name, ParameterType type = ParameterType.Other)
| 参数 | 类型 | 描述 |
|---|---|---|
| 名称 | 字符串 | 参数的名称。 |
| type | ParameterType | 参数的类型。定义将被撤销的单位因子:如果类型是 Linear,则会撤销 LinearParametersUnit 并且结果以米为单位。如果类型是 Angular,则会撤销 AngularParametersUnit 并且结果以弧度为单位。如果类型是 Other,则参数值将原样返回。 |
返回值
具有指定名称的参数,若不存在则为 null。
异常
| 异常 | 条件 |
|---|---|
| ArgumentNullException | 参数为 null。 |
另见
- enum ParameterType
- class Projection
- namespace Aspose.Gis.SpatialReferencing
- assembly Aspose.GIS