Show / Hide Table of Contents

Class GeoprocessingLinearUnit

A linear unit input or output parameter.

Inheritance
Object
GeoprocessingParameter
GeoprocessingLinearUnit
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Object.ToString()
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

GeoprocessingLinearUnits
LinearUnit
LinearUnits

Applies to

TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.15
In This Article
Back to top Copyright © 2022 Esri.