tidwall / geojson

GeoJSON for Go. Used by Tile38
MIT License
130 stars 28 forks source link

Features produce invalid geojson #10

Closed rshura closed 5 years ago

rshura commented 5 years ago

Apparently, Feature object is supposed to have both geometry and properties, according to the spec: https://tools.ietf.org/html/rfc7946#section-3.2

Currently, feature JSON is lacking properties, which makes it invalid. This makes the returned JSON unusable in e.g. geojson.io

The proposed fix is in https://github.com/tidwall/geojson/pull/9

tidwall commented 5 years ago

Looks good. I added an extra test and merged the PR.