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

Features dropping when creating tiles from GeoJSON containing GeometryCollections #286

Open
fullbit-tech opened this issue Jul 5, 2018 · 1 comment

Comments

@fullbit-tech
Copy link

As per my discussion with @springmeyer in #284 there appears to be an issue with the support of GeometryCollections when creating tiles from geojson.

In some cases the features appear to be dropped across tile boundaries, though I have been unable to determine what the exact offending circumstances are. I isolated a cleaner test case from one of the culprit data sets, which you can get here.

I am using https://github.com/mapbox/mapbox-tile-copy v5.1.1 to generate the tiles but I tested with the latest release as well, and the issue persists.

Here is what the feature is supposed to look like (I flattened the geojson in this example using https://github.com/Turfjs/turf/tree/master/packages/turf-flatten):

not-clipped

And here is what it looks like without flattening the geojson:

clipped

I've created a working example here.

Please let me know if there is anything else I can provide to help isolate the problem.

Cheers.

@springmeyer
Copy link
Contributor

Thanks @fullbit-tech - going to tag in @flippmoke to take a look as I'm unavailable to debug this going forward.

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

No branches or pull requests

2 participants