-
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
Modify gate min zoom to 17 #820
Comments
For context, we hide most gates from display in the map because the data is too funky in tiles now. |
A query like this will do the trick: SELECT
osm_id,
MAX(CASE
WHEN highway IN ('motorway', 'trunk', 'primary', 'motorway_link',
'trunk_link', 'primary_link') THEN 3
WHEN highway IN ('secondary', 'tertiary', 'secondary_link',
'tertiary_link') THEN 2
WHEN highway IN ('residential', 'unclassified') THEN 1
ELSE 0
END) AS highway_level
FROM (
SELECT
p.osm_id,
hstore(w.tags)->'highway' AS highway
FROM planet_osm_point p
JOIN planet_osm_ways w
ON ARRAY[p.osm_id] && w.nodes
WHERE
p.way && <insert bbox here>
AND p.barrier='gate'
AND hstore(w.tags) ? 'highway'
) x
GROUP BY osm_id; This will have a performance impact but hopefully, since gates are relatively rare, it might not be noticeable. The form above is good for experimentation, but it's probably best for maintainability to rewrite it as a function of |
👍 |
Is this referring to |
Only for |
Here's an example of a gate at the end of a secondary road. This one in Quantico Marine Corps base is in the middle of the road, but I'd expect to find gates on military bases, even on higher class roads. Same for this one on the University of Virginia campus. I'm using this Overpass query to find matching gates. Although a great many seem to be where footpaths join the road, suggesting that they're editing mistakes, and the gate is far more likely to be on the footpath than the secondary road. |
|
Dev's not loading many z16 tiles at the moment, and not even some z15 tiles so holding off verification until it's sorted itself out. |
I don't see the gate by Moffet field referenced in this test, did the test pass? |
(everything else checks out) |
@zerebubuth Can you please run the integration tests against dev to see if they all pass, please? |
The following tests failed (including gate):
|
Verified Moffett Gates. |
In working on #819 for
kind:toll_booth
, we've discovered the min zoom ofkind:gate
POIs to be very high at zoom 15. That should be defaulting to zoom 17 instead as many gates are digitized in fences, not just across roads.@zerebubuth How hard would it be to modify the zoom based on what road class the the gate was on?
A gate on a path &/or fence at zoom 17. But a gate on a major road zoom 14 and minor road zoom 15?
The text was updated successfully, but these errors were encountered: