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

Problem with "--no-duplication" and "--no-clipping" #990

Open
bertcoerver opened this issue Jan 19, 2024 · 0 comments
Open

Problem with "--no-duplication" and "--no-clipping" #990

bertcoerver opened this issue Jan 19, 2024 · 0 comments

Comments

@bertcoerver
Copy link

Hello,

I want to create pbf-tiles in which features are not clipped nor duplicated, i.e. features are allowed to extend beyond the tiles borders and should only be included in one tile.

But I have the feeling the "--no-clipping" flag is not working correctly. I'm quite new to using Tippecanoe, so maybe I'm just doing something wrong. Some examples:

1. ✅ The "default":

tippecanoe -e test1 --no-tile-compression input.geojson gives:

1

This is the border between 4 tiles, you can see that the feature in the middle is clipped and distributed over the 4 tiles.

2. ❌ Using only --no-clipping

tippecanoe -e test2 --no-tile-compression --no-clipping input.geojson gives:

2

Even though I asked to not clip the features, they still are clipped to the tile borders?

3. ✅ Using --no-duplication

tippecanoe -e test3 --no-tile-compression --no-duplication input.geojson

3

So now indeed, the features are not duplicated, but they are still clipped to the tile boundaries. (The pink background is input.geojson)

4. ❌ Using both --no-clipping and --no-duplication

tippecanoe -e test4 --no-tile-compression --no-clipping --no-duplication input.geojson

4

Again, the features aren't duplicated, but they are still clipped.

The documentation says:

  • -pc or --no-clipping: Don't clip features to the size of the tile. If a feature overlaps the tile's bounds or buffer at all, it is included completely. Be careful: this can produce very large tilesets, especially with large polygons.

But in the above examples the features are not included completely?

Thanks,
Bert

tippecanoe --version
>>> tippecanoe v2.40.0
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

1 participant