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

Drop MultiPolygon parts outside the tile #171

Merged
merged 1 commit into from
Mar 14, 2017

Conversation

zerebubuth
Copy link
Member

Drop parts of multipolygon inputs which lie outside the boundary of the tile, and clip to the clip boundary.

This can occur because we merge buildings with the same properties into large MultiPolygons. We want large buildings, such as the High Line, to continue beyond the bounds of the tile, but we don't need to keep other parts of the MultiPolygon which are completely outside of the tile. They'll be present in the neighbouring tile anyway.

This saves about 70% of the work of formatting the child tiles of a "512px" tile.

Copy link
Member

@rmarianski rmarianski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea here!

@zerebubuth zerebubuth merged commit 607ecd2 into master Mar 14, 2017
@zerebubuth zerebubuth deleted the zerebubuth/2x2-metatile-speedup branch March 14, 2017 19:15
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

Successfully merging this pull request may close these issues.

2 participants