|
ArcGIS Runtime SDK for iOS
100.9
|
Represents linear units.
Instances of this class represent a linear unit of measurement.
Instance Methods | |
| (double) | - convert:fromUnit: |
| (double) | - convert:toUnit: |
| (double) | - convertFromMeters: |
| (double) | - convertToMeters: |
| (nullable instancetype) | - initWithAreaUnit: |
| (nullable instancetype) | - initWithUnitID: |
| (BOOL) | - isEqualToUnit: |
| (nullable AGSAreaUnit *) | - toAreaUnit |
Class Methods | |
| (instancetype) | + feet |
| (instancetype) | + kilometers |
| (nullable instancetype) | + linearUnitWithAreaUnit: |
| (instancetype) | + meters |
| (instancetype) | + miles |
| (nullable instancetype) | + unitWithUnitID: |
| (nullable instancetype) | + unitWithWKID: |
Properties | |
| NSString * | abbreviation |
| NSString * | displayName |
| NSString * | name |
| NSString * | pluralDisplayName |
| AGSLinearUnitID | unitID |
| - (double) convert: | (double) | value | |
| fromUnit: | (AGSLinearUnit *) | fromUnit | |
Converts the value from the specified linear unit into this unit.
| value | to convert |
| fromUnit | The units the given value is already in. |
| - (double) convert: | (double) | value | |
| toUnit: | (AGSLinearUnit *) | toUnit | |
Converts the value from this unit to the specified linear unit.
| value | to convert. |
| toUnit | The units the converted value needs to be in |
| - (double) convertFromMeters: | (double) | meters |
Converts the value from meters into this unit.
| meters | to convert |
| - (double) convertToMeters: | (double) | value |
Converts the value from this unit to meters.
| value | to convert. |
| + (instancetype) feet |
A linear unit representing feet.
| - (nullable instancetype) initWithAreaUnit: | (AGSAreaUnit *) | areaUnit |
Initializes a linear unit from an AGSAreaUnit.
| areaUnit | to use to initialize a linear unit |
| - (nullable instancetype) initWithUnitID: | (AGSLinearUnitID) | unitID |
Initializes a linear unit.
| unitID | linear unit ID |
| - (BOOL) isEqualToUnit: | (AGSUnit *) | unit |
Compares whether two units are equal.
| unit | to compare this one to |
| + (instancetype) kilometers |
A linear unit representing kilometers.
| + (nullable instancetype) linearUnitWithAreaUnit: | (AGSAreaUnit *) | areaUnit |
Initializes a linear unit from an AGSAreaUnit.
| areaUnit | to use to initialize a linear unit |
| + (instancetype) meters |
A linear unit representing meters.
| + (instancetype) miles |
A linear unit representing miles.
| - (nullable AGSAreaUnit*) toAreaUnit |
Returns the corresponding area unit for this linear unit.
| + (nullable instancetype) unitWithUnitID: | (AGSLinearUnitID) | unitID |
Initializes a linear unit.
| unitID | linear unit ID |
| + (nullable instancetype) unitWithWKID: | (NSInteger) | WKID |
Create a unit with the given well-known ID (WKID). This allows you to create a unit from a WKID that is not in the associated UnitID enumeration.
| WKID | The well-known ID of the unit |
|
readnonatomiccopyinherited |
Abbreviated name of the unit.
|
readnonatomiccopyinherited |
A user-friendly name of the measurement unit.
|
readnonatomiccopyinherited |
The name of the measurement unit.
|
readnonatomiccopyinherited |
A plural form of the user-friendly name.
|
readnonatomicassign |