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

Control number of polygons in merge #1176

Merged
merged 2 commits into from
Mar 15, 2017

Conversation

zerebubuth
Copy link
Member

Add configuration option to limit the number of shapes that can all be merged into one MultiPolygon.

This brings the time taken to call geom.is_valid down from 228s to 3s. The former means checking a 15,000 element MultiPolygon, the latter is checking 15 1,000 element MultiPolygons.

This cuts 80% of the time when generating tile 13/1314/3165, near Oakland, which is particularly building-heavy.

@zerebubuth zerebubuth merged commit e9d92ea into master Mar 15, 2017
@zerebubuth zerebubuth deleted the zerebubuth/split-massive-multipolygons branch March 15, 2017 09:59
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