-
Notifications
You must be signed in to change notification settings - Fork 826
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
Landcover low zoom cleaning #3539
Landcover low zoom cleaning #3539
Conversation
@@ -100,7 +100,6 @@ Layer: | |||
WHERE (landuse IN ('forest', 'farmland', 'residential', 'commercial', 'retail', 'industrial', 'meadow', 'vineyard', 'orchard') | |||
OR "natural" IN ('wood', 'wetland', 'mud', 'sand', 'scree', 'shingle', 'bare_rock', 'heath', 'grassland', 'scrub')) | |||
AND way_area > 0.01*!pixel_width!::real*!pixel_height!::real | |||
AND building IS NULL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you check performance implications of this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I just checked that nothing is broken. That's why I claim only code cleaning, not a performance boost.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change will probably have a performance regression. There is an important index on the polygon table (the "nobuilding" index) and the building is null
part of the query is there in order to use this index and speed up queries.
It shouldn't be removed without careful testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this change needs testing. If it hasn't been tested, we should revert this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make such test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not in the near future. I think this line should be reverted as it's outside the scope of code cleanups to the landcover SQL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, PR is ready - #3622.
Related to #3534.
Resolves #1614.
Changes proposed in this pull request:
landcover-low-zoom
data layerThis should make the query marginally faster, but it's mostly code cleaning.