GeoprocessingLinearUnit.withLinearUnitId constructor

GeoprocessingLinearUnit.withLinearUnitId({
  1. required double distance,
  2. required LinearUnitId linearUnitId,
})

Create a geoprocessing linear unit parameter with the given distance and linear unit WKID.

Note that if the given linear unit WKID does not correspond to any of the values in GeoprocessingLinearUnits, the unit will be converted internally to meters. This means that the distance property will return a different value to that set.

Parameters:

  • distance — The distance value of the parameter.
  • linearUnitId — The WKID of the unit of distance.