GeographyPoint
open class GeographyPoint : GeographyValue, @unchecked Sendable
A geography point.
-
Constructor
Declaration
Swift
override public init() -
The coordinates of this value.
Declaration
Swift
public final var coordinates: PointCoordinates { get set } -
Declaration
Swift
override open func copyMutable() -> DataValueReturn Value
A clone of this value if it (together with all value subcomponents) is possibly mutable, or return
selfvalue if it (together with all value subcomponents) is definitely immutable. The resulting value might share mutable metadata with this query. -
Data type of the wrapped value.
Declaration
Swift
override open var dataType: DataType { get } -
Declaration
Swift
override 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 parse(_ text: String) throws -> GeographyPointParameters
textA value in GeoJSON format.
Return Value
A value parsed from text in GeoJSON format.
-
Declaration
Swift
open class func parseWKT(_ text: String, sridRequired: Bool = false) throws -> GeographyPointParameters
textA value in OData WKT format.
sridRequiredIs SRID prefix required?
Return Value
A value parsed from OData WKT (well-known text) format.
-
Declaration
Swift
open class func with(x: Double, y: Double) -> GeographyPointParameters
xX-coordinate (longitude).
yY-coordinate (latitude).
Return Value
2D geography point.
-
Declaration
Swift
open class func with(x: Double, y: Double, m: Double) -> GeographyPointParameters
xX-coordinate (longitude).
yY-coordinate (latitude).
mM-coordinate (measure).
Return Value
2D geography point with measure.
-
Declaration
Swift
open class func with(x: Double, y: Double, z: Double) -> GeographyPointParameters
xX-coordinate (longitude).
yY-coordinate (latitude).
zZ-coordinate (altitude).
Return Value
3D geography point.
-
Declaration
Swift
open class func with(x: Double, y: Double, z: Double, m: Double) -> GeographyPointParameters
xX-coordinate (longitude).
yY-coordinate (latitude).
zZ-coordinate (altitude).
mM-coordinate (measure).
Return Value
3D geography point with measure.
-
Declaration
Swift
open class func with(latitude: Double, longitude: Double) -> GeographyPointParameters
latitudeY-coordinate.
longitudeX-coordinate.
Return Value
2D geography point.