Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap raw geometries in feature collections #30

Open
1ec5 opened this issue Apr 7, 2017 · 0 comments
Open

Wrap raw geometries in feature collections #30

1ec5 opened this issue Apr 7, 2017 · 0 comments

Comments

@1ec5
Copy link

1ec5 commented Apr 7, 2017

This library assumes that a GeoJSON object can only contain Feature and FeatureCollection objects, but it can also contain raw Geometry objects such as Point or MultiPolygon:

{
  "type": "Point",
  "coordinates": [0, 0],
}

We haven’t been running into these geometries because we rely on geojson-normalize to wrap them in FeatureCollections via static-map-string-format. We should either make geojson-normalize a dependency of this library or duplicate its functionality here.

/cc @bsudekum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant