mapbox / mapbox/tippecanoe

Building polygons Coalesce

Open
#788 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
3.1k
Forks
430
PR merge metrics
No merged PRs in 30d

Description

Hi,

I am trying to merge adjacent buildings.

I used --coalesce with --hilbert reordering.
Several buildings have been merged but most of them are still separated, even if they looks like to be adjacent.
It seems "coalesce" checks if two polygons are adjacent using the geoJSON geometry instead of the pixels coordinates zoom by zoom level. Isn't it?

Below screen shots show the buildings at the Z13 and Z16
![IMG_E6928 2](https://user-images.githubusercontent.com/4995563/63584199-bdb77e00-c59c-11e9-8ad5-08e1e188c799.JPG)
![IMG_6929 1](https://user-images.githubusercontent.com/4995563/63584219-c5772280-c59c-11e9-8638-aa46cfc5e594.PNG)

Is there a way to set a "tolerance" to let coalesce merge polygons are not 100% geometrically adjacent?

Thanks for your help
Giorgio

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported behavior with --coalesce and --hilbert at zoom levels 13 and 16, using the adjacent building data described in the issue. Inspect the coalesce handling and determine whether adjacency is evaluated from GeoJSON geometry or pixel coordinates. Done means the desired tolerance behavior and its scope are clearly specified and verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.