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

Add additional SQL condition for very low admin logic #1

Merged
merged 2 commits into from
Nov 22, 2015

Conversation

pnorman
Copy link

@pnorman pnorman commented Nov 22, 2015

Adding p.way && !bbox! drastically helps query planning for some
reason. Having added !bbox! once, it needs to be added for both
tables.

osm_id < 0 doesn't change much, but would help if there was a
partial index.

@@ -1333,10 +1333,13 @@ Layer:
AND admin_level = '2'
AND way_area > 9e+12
AND ST_Within(ST_Centroid(l.way), p.way)
AND p.way && !bbox!
Copy link
Author

Choose a reason for hiding this comment

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

I was actually wrong about this line. It has a marginal impact, so I'll remove it to simplify.

@pnorman pnorman force-pushed the admin_planning branch 2 times, most recently from d6aaed1 to c46de5b Compare November 22, 2015 05:40
This helps significantly with the use of appropriate partial indexes
This avoids getting it wrong in cases of highly-concave regions.
nebulon42 added a commit that referenced this pull request Nov 22, 2015
Add additional SQL condition for very low admin logic
@nebulon42 nebulon42 merged commit fd43ba0 into nebulon42:admin Nov 22, 2015
@nebulon42
Copy link
Owner

Thanks.

@pnorman pnorman deleted the admin_planning branch November 23, 2015 01:08
nebulon42 pushed a commit that referenced this pull request Apr 22, 2018
* added rendering for shop=video games (#1)

* Update amenity-points.mss

* Update project.mml

* Create video_games.svg

* Update video_games.svg

* added line breaks for better readability
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