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

Is this a valid MultiPolygon? #12

Open
dmtucker opened this issue Aug 9, 2015 · 2 comments
Open

Is this a valid MultiPolygon? #12

dmtucker opened this issue Aug 9, 2015 · 2 comments
Labels

Comments

@dmtucker
Copy link
Member

dmtucker commented Aug 9, 2015

{
    "type": "MultiPolygon",
    "coordinates": []
}

Similar questions could be asked of MultiPoint and MultiLineString.

@dmtucker
Copy link
Member Author

dmtucker commented Aug 9, 2015

Leaflet emits this error: Cannot read property 'lat' of undefined (repro on http://geojsonlint.com/).

Edit: Leaflet/Leaflet#2642 This is expected behavior for Leaflet.

@dmtucker
Copy link
Member Author

dmtucker commented Aug 9, 2015

The value of the coordinates member is always an
array. The structure of the elements in this array is determined by
the type of geometry. GeoJSON processors MAY interpret geometry
objects with empty coordinates arrays as null objects.

https://datatracker.ietf.org/doc/draft-butler-geojson/?include_text=1

@dmtucker dmtucker removed this from the 2.1.0 milestone Aug 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant