Closed rshura closed 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
Feature
geometry
properties
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
Looks good. I added an extra test and merged the PR.
Apparently,
Feature
object is supposed to have bothgeometry
andproperties
, according to the spec: https://tools.ietf.org/html/rfc7946#section-3.2Currently, 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