27 #import <Foundation/Foundation.h>
28 #import <ArcGIS/AGSUnit.h>
62 #pragma mark initializers
83 +(nullable instancetype)unitWithWKID:(NSInteger)WKID;
89 -(nullable instancetype)initWithAreaUnit:(
AGSAreaUnit*)areaUnit;
95 +(nullable instancetype)linearUnitWithAreaUnit:(
AGSAreaUnit*)areaUnit;
110 +(instancetype)
miles;
118 #pragma mark properties
139 -(double)convertToMeters:(
double)value;
145 -(double)convertFromMeters:(
double)meters;
152 -(double)convert:(
double)value toUnit:(
AGSLinearUnit*)toUnit;
159 -(double)convert:(
double)value fromUnit:(
AGSLinearUnit*)fromUnit;
AGSLinearUnitID
Definition: AGSLinearUnit.h:38
@ AGSLinearUnitIDKilometers
Definition: AGSLinearUnit.h:42
@ AGSLinearUnitIDFeet
Definition: AGSLinearUnit.h:40
@ AGSLinearUnitIDMiles
Definition: AGSLinearUnit.h:44
@ AGSLinearUnitIDNauticalMiles
Definition: AGSLinearUnit.h:46
@ AGSLinearUnitIDOther
Definition: AGSLinearUnit.h:48
@ AGSLinearUnitIDCentimeters
Definition: AGSLinearUnit.h:39
@ AGSLinearUnitIDYards
Definition: AGSLinearUnit.h:47
@ AGSLinearUnitIDMeters
Definition: AGSLinearUnit.h:43
@ AGSLinearUnitIDMillimeters
Definition: AGSLinearUnit.h:45
@ AGSLinearUnitIDInches
Definition: AGSLinearUnit.h:41
Defines an area unit of measurement.
Definition: AGSAreaUnit.h:61
Defines a linear unit of measurement.
Definition: AGSLinearUnit.h:60
AGSLinearUnitID unitID
Definition: AGSLinearUnit.h:125
instancetype kilometers()
nullable AGSAreaUnit * toAreaUnit()
Defines a unit of measurement.
Definition: AGSUnit.h:68