Enumeration
GridType
public enum GridType: Int, CaseIterable
- Grid type enumeration
Relationships
Conforms To
CaseIterable
Int
Enumeration Cases
Methods
accuracy()
public func accuracy() -> Int
- Get the Grid Type accuracy number of digits in the easting and northing
- values
- @return accuracy digits
withAccuracy(_:)
public static func withAccuracy(_ accuracy: Int) -> GridType
- Get the Grid Type with the accuracy number of digits in the easting and
- northing values. Accuracy must be inclusively between 0
- (GridType.HUNDRED_KILOMETER) and 5 (GridType.METER).
- @param accuracy
-
accuracy digits between 0 (inclusive) and 5 (inclusive)
- @return grid type
precision(_:)
public static func precision(_ value: Double) -> GridType
- Get the precision of the value in meters based upon trailing 0's
- @param value
-
value in meters
- @return precision grid type
lessPrecise(_:)
- Get the less precise (larger precision value) grid types
- @param type
-
grid type
- @return grid types less precise
morePrecise(_:)
- Get the more precise (smaller precision value) grid types
- @param type
-
grid type
- @return grid types more precise