Skip to content

v0.2

Compare
Choose a tag to compare
@paulmach paulmach released this 16 Jan 23:34
· 127 commits to master since this release
c6d2869

This release has breaking changes involving some GeoJSON edge cases.

  1. Foreign Members in Feature Collections

    Extra attributes in a feature collection object will now be put into featureCollection.ExtraMembers. Similarly, stuff in `ExtraMembers will be marshalled into the feature collection base. The break happens if you were decoding these foreign members using something like

    type MyFeatureCollection struct {
        geojson.FeatureCollection
        Title string `json:"title"`
    }

    The above will no longer work in this release and it never supported marshalling. See #56 for more details.

  2. Features with nil/missing geometry will no longer return an errors

    Previously missing or invalid geometry in a feature collection would return a ErrInvalidGeometry error. However missing geometry is compliant with section 3.2 of the spec. See #38 and #58 for more details.

This release also includes faster unmarshalling for Mapbox Vector Tiles (MVT) see #57

9 commits v0.1.7...v0.2