-
Notifications
You must be signed in to change notification settings - Fork 120
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
landuse_kind not always present on buildings #1226
Comments
We think this is because the centroid for the building is calculated on a larger clip than the landuse polygon (buildings include overlap into adjoining tiles, landuse doesn't). They both need to be based on the same clip for this calculation, and then the later step to clip features to exact format tile bounds would need to have current behavior to keep the buildings extra bits, but clip landuse to tile extent. |
Not the centroid, but the landuse polygon must overlap at least 80% of the building area. The effect is the same, though. |
Also affects /cc @sensescape |
Related: #1142 Should we clip buildings completely to tile boundaries? |
Subtask of #1348. |
This looks to be the root cause of tangrams/tangram-es#1653 building flicker z-fighting in Cinnabar on ES (also kinda observable on JS). |
Discussion from today's Tile sync meeting:
Deferring action on this issue until after basic RAWR tiles are in production. |
This checks that buildings which cross tile boundaries are more likely to be assigned the correct landuse kind. The issue was that, before the change from query-per-layer to query-per-table, we were clipping the landuse to the tile but the building to a 3x3 tile area. This meant that large buildings had much less overlap with landuse polygons, and some would not be assigned a `landuse_kind`. Now we clip all inputs (except water) to the tile, which solves this problem, but means that the same building in adjacent tiles could be assigned different `landuse_kind`s. Additionally, it looks like `kind: building_part`s weren't being assigned a `landuse_kind`, although the test now passes, so something we changed has fixed that too.
Looks like building_part features (#1226 (comment)) still aren't getting the landuse_kind correctly, but the airport examples are so "good enough", with followup in new issue. |
Verified on prod, filed new issue #1495 for building_part followup. |
What did you see?
Reported via support, the buildings at LAX Airport in Los Angeles mostly have the expected
landuse_kind
properties, but not always, and even the same building can include or not include the property at different zooms.What did you expect to see?
All buildings on the airport landuse polygon should get
landuse_kind
consistently.What map location are you having problems with?
zoom 14 has the main international terminal without, while terminal 2 includes it:
While zoom 14 didn't include the property, now zoom 16 does on nearby United building:
The text was updated successfully, but these errors were encountered: