-
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
Improve road/line merging II #1227
Comments
@bcamper said in #1191 (comment): Here's what I've found (using the new debug stats in tangrams/tangram#544) for a high-complexity NYC view at z12 (#12/40.68636570811375/-73.94691467285234): Note: line geometry counts here are the number of GL triangles Tangram had to build to render the features (lines decomposed into triangles, etc.), not the number of features in the source data - but for line features, they should scale linearly together. Tangram master / prod tiles
Tangram master / dev tiles
Tangram merge-multilines / dev tiles
Summary For reference, the client-side code I'm using is here (sorry, it's a bit more complex than it needs to be due to some premature optimization to avoid reallocating/copying LineStrings that never need to be modified). It has two steps:
This technique works particularly well for grid systems with lots of straight streets, so this NYC example may be one of the cases of best-realized gains. |
@zerebubuth said in #1191 (comment): Cool, thanks! Do you know how much of the 30% saving over dev tiles is due to |
Finally got back to this... It looks like the two phases are interdependent and both are necessary for any significant savings. Total line geometry counts for: no additional processing: 226,282 |
Is the order of these operations important?
…On Thu, May 25, 2017 at 12:20 PM, Brett Camper ***@***.***> wrote:
Finally got back to this...
It looks like the two phases are interdependent and both are necessary for
any significant savings. Total line geometry counts for:
no additional processing: 226,282
only mergeContiguousMultiLineString(): 224,749
only mergeColinearLineString(): 221,951
both steps: 156,757
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1227 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA0EOy6rPaGq7TBe-FLXEWoVubXqKLIVks5r9aoygaJpZM4NJuQC>
.
|
Yes - |
Thanks! It seems like the two transforms are much less effective individually (saving 0.7% and 2%, respectively) than they are combined (30%). My hunch is that this is because of all those short segments left over between 4-way junctions in "grid pattern" streets such as around NYC. I think if we rewrite the |
Subtask of #1350 |
More feature to be removed in #1331 will result in even more merging! |
Following up from improvements in #1191...
The text was updated successfully, but these errors were encountered: