GeographyValue
open class GeographyValue : GeospatialValue, @unchecked Sendable
Abstract base class for geography data values.
-
Default Spatial Reference System Identifier for Geography Values (4326).
Declaration
Swift
public static let defaultSrid: Int -
Default initializer.
Declaration
Swift
override public init() -
Declaration
Swift
open func formatWKT(sridRequired: Bool = false) -> StringParameters
sridRequiredIs SRID prefix required?
Return Value
This value formatted in OData WKT (well-known text) format.
-
Declaration
Swift
open class func parseAnyWKT(_ text: String, sridRequired: Bool = false) throws -> GeographyValueParameters
textA value in OData WKT format.
sridRequiredIs SRID prefix required?
Return Value
A value parsed from OData WKT (well-known text) format.
-
Spatial Reference System Code, e.g. EPSG SRID. Defaults to 4326.
Declaration
Swift
override open var srsCode: Int { get set } -
Spatial Reference System Name (optional).
Declaration
Swift
override open var srsName: String? { get set } -
Convert this data value to a string. If the
dataTypeis defined by XML Schema Part 2: Datatypes, then the corresponding lexical format is used. JSON format is used for structured values (arrays and objects).Declaration
Swift
override open func toString() -> StringReturn Value
Lexical representation of this data value.