Class GeoprocessingLinearUnit
A linear unit input or output parameter.
Namespace: Esri.ArcGISRuntime.Tasks.Geoprocessing
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class GeoprocessingLinearUnit : GeoprocessingParameter
Remarks
Corresponds to GPLinearUnit parameter type on the service. Geoprocessing tasks support a set of linear units defined in the GeoprocessingLinearUnits enumeration. When a GeoprocessingLinearUnit parameter is created with one of the supported GeoprocessingLinearUnits the value is sent to the service using defined linear unit type. When a GeoprocessingLinearUnit parameter is created with a LinearUnit, the value is converted to meters if the type is not supported. For example if provided LinearUnit is international miles, the value is converted to meters since only the US Survey Miles unit is supported in geoprocessing. After GeoprocessingLinearUnit is created, the used linear unit type can be checked from Unit. When GeoprocessingLinearUnit is created with a supported LinearUnit, then no conversion takes place and the value is sent to the service using the defined type. When GeoprocessingLinearUnit is returned as an output parameter, you can get LinearUnit using GetLinearUnit() method.
Constructors
Name | Description |
---|---|
GeoprocessingLinearUnit() | Initializes a new instance of the GeoprocessingLinearUnit class. |
GeoprocessingLinearUnit(Double) | Initializes a new instance of the GeoprocessingLinearUnit class with the given distance which is assumed to be in meters. |
GeoprocessingLinearUnit(Double, LinearUnit) | Initializes a new instance of the GeoprocessingLinearUnit class with the given distance and linear unit. |
GeoprocessingLinearUnit(Double, GeoprocessingLinearUnits) | Initializes a new instance of the GeoprocessingLinearUnit class with the given distance and linear unit. |
Properties
Name | Description |
---|---|
Distance | Gets or sets the distance value of this parameter. |
Unit | Gets or sets the GeoprocessingLinearUnit of this parameter. |
Methods
Name | Description |
---|---|
GetLinearUnit() | Gets the geometry linear unit that corresponds to the unit of this parameter. |
See Also
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |