Skip to content

Releases: Outdooractive/gis-tools

v1.0.0

21 Jul 13:56
fd47ec0
Compare
Choose a tag to compare

Moved all projection related code into the relevant objects.

Every GeoJSON object now has a projection and can be reprojected between EPSG:4326 and EPSG:3857.

v0.6.6

13 Jul 09:09
Compare
Choose a tag to compare
  • Added a public initializer to CoordinateXY
  • Added Maptile#metersPerPixel
  • Added clamp() and clamped() to coordinates

v0.6.3

28 Jun 10:12
Compare
Choose a tag to compare

Bugfix in the WKB/WKT decoder: Check for invalid geometries

v0.6.2

27 Jun 09:41
c8858d0
Compare
Choose a tag to compare
  • #29: Project 'ProjectedBoundingBox' to EPSG:3857 / EPSG:4326

v0.6.1

14 Jun 15:29
Compare
Choose a tag to compare
  • Added a MapTile(quadkey:) initializer
  • Added a quadkey property to MapTile
  • Added the parameter latitude to MapTile.metersPerPixel(at:latitude:tileSideLength:)

v0.6.0

01 Jun 12:39
Compare
Choose a tag to compare

Added MapTile, a helper for x/y/z map tiles

v0.5.4

13 Apr 12:23
631434e
Compare
Choose a tag to compare

Add initializer Linestring(lineSegments: [LineSegments])

v0.5.3

13 Apr 08:55
Compare
Choose a tag to compare

Finally updated the README ...

v0.5.0

06 Apr 12:39
bbf8efb
Compare
Choose a tag to compare

This release adds Codable support for all GeoJSON types:

let featureCollection = FeatureCollection([Point(Coordinate3D(latitude: 0.0, longitude: 100.0))])!
let data = try JSONEncoder().encode(featureCollection)
let fc = try JSONDecoder().decode(FeatureCollection.self, from: data)

It also adds a helper for loading unknown GeoJSONs:

let someGeoJson = GeoJsonReader.geoJsonFrom(jsonString: "{\"type\":\"Point\",\"coordinates\":[100.0,0.0]}")!
switch someGeoJson.type {
case .point: ...
}

// or

switch someGeoJson {
case let point as Point: ...
}

In general, I recommend to use the various FeatureCollection initializers since they will wrap any valid GeoJSON object into a FeatureCollectionwith which you can then work.

v0.4.0

06 Apr 11:27
abe1c43
Compare
Choose a tag to compare

Add support for GeoJSON Number Identifiers (thanks @sena-mike !)