Releases: Outdooractive/gis-tools
Releases · Outdooractive/gis-tools
v1.8.3
v1.8.2
v1.8.1
v1.8.0
v1.7.1
v1.7.0
Always include the m value of Coordinate3D in JSON
The m
value of Coordinate3D
will now always be includeded in the JSON dump of a coordinate. This means that a null
value will be added for the altitude
if the coordinate's altitude
is nil
.
let coordinateM = Coordinate3D(latitude: 15.0, longitude: 10.0, altitude: nil, m: 1234)
let coordinateDataM = try JSONEncoder().encode(coordinateM)
print(String(data: coordinateDataM, encoding: .utf8)) // [10,15,null,1234]
v1.6.0
v1.5.0
SwiftData compatibility
This release adds compatiblity with SwiftData. Use it like this:
GeoJsonTransformer.register()
@Model
class GeoJsonModel {
@Attribute(.transformable(by: GeoJsonTransformer.name.rawValue)) var geoJson: GeoJson?
@Attribute(.transformable(by: GeoJsonTransformer.name.rawValue)) var point: Point?
...
}