这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@bertcoerver

Description

@bertcoerver

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions