Skip to content

Releases: Outdooractive/gis-tools

v1.8.3

12 Aug 15:07
a8118bc
Compare
Choose a tag to compare

Added MapTile(boundingBox:maxZoom:)

v1.8.2

30 Jul 09:09
98feada
Compare
Choose a tag to compare

Added FeatureCollection.propertiesSummary()

v1.8.1

29 Jul 15:31
32b933f
Compare
Choose a tag to compare
  • Bugfix: Holes in polygons where not subtracted from the outer ring area
  • Added FeatureCollection.enumerateProperties()

v1.8.0

25 Jul 12:42
8303092
Compare
Choose a tag to compare

Added GISTool.convertToDegrees(fromMeters:atLatitude:)

Also added GISTool.convertToCoordinate(fromPixelX:pixelY:atZoom:tileSideLength:projection:) and GISTool.metersPerPixel(atZoom:latitude:tileSideLength:) (they were in MapTile before)

v1.7.1

03 Jul 07:12
Compare
Choose a tag to compare

Add accessor for RFC compliant JSON in Coordinate3D

v1.7.0

02 Jul 12:24
831a87e
Compare
Choose a tag to compare

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

14 Jun 14:32
Compare
Choose a tag to compare
  • Some Swift 6 updates
  • Added BoundingBox.tileCover(atZoom:)
  • Added Identifiable conformance to Feature

v1.5.0

23 May 11:23
3555473
Compare
Choose a tag to compare

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?
    ...
}

v1.4.0

08 Apr 11:39
3a72a66
Compare
Choose a tag to compare

Switch from Int ids to UInt ids if overflow happens and the id is not negative (#45) (Thanks @JeffLutzenberger!)

v1.3.0

11 Mar 15:55
30e1e1f
Compare
Choose a tag to compare

Encode and decode Polylines