You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a lot of random (orphaned) unclassified and residential road segments included at zooms 10 and 11 in dense cities. These seem to be "bike" related.
Fix in in 5 parts.
Zoom 10 in London (256px tile size or 512px at 10/511/340 for research):
Zoom 11 in London
Zoom 12 in London
Zoom 10 in Paris: (256px tile size):
Zoom 11 in Paris
Zoom 12 in Paris
Part of this stems from #1250 and #1462, which solved for the rural unclassified case where those are actually regional connectors. But in the process too many random tiny urban roads (especially in Europe see London and Paris) were added. That min_zoom of 11 should be reverted to 12, those tests updated, and documentation changed.
Some of the other roads are bike or walking related, where they get promoted up a zoom or two depending on what type or bicycle or walking relation (international, national, regional, and local) it's a member of, via #1172 and #1198.
CREATE OR REPLACEFUNCTIONmz_calculate_path_major_route(osm_id BIGINT, dummy INTEGER)
RETURNS SMALLINTAS $$
BEGIN
RETURN (
SELECT
MIN(
CASE WHEN hstore(tags)->'network'IN ('icn', 'ncn') THEN 8
WHEN hstore(tags)->'network'IN ('iwn', 'nwn') THEN 9
WHEN hstore(tags)->'network'IN ('rcn') THEN 10
WHEN hstore(tags)->'network'IN ('rwn') THEN 11
WHEN hstore(tags)->'network'IN ('lcn') THEN 11
WHEN hstore(tags)->'network'IN ('lwn') THEN 12
ELSE NULL
END
)
AS p
FROM planet_osm_rels
WHERE
parts && ARRAY[osm_id] AND
parts[way_off+1:rel_off] && ARRAY[osm_id] AND
mz_is_path_major_route_relation(hstore(tags))
);
END;
$$ LANGUAGE plpgsql STABLE;
Specifically:
CASE WHEN hstore(tags)->'network' IN ('icn', 'ncn') THEN 8
WHEN hstore(tags)->'network' IN ('iwn', 'nwn') THEN 9
WHEN hstore(tags)->'network' IN ('rcn') THEN 11
WHEN hstore(tags)->'network' IN ('rwn') THEN 11
WHEN hstore(tags)->'network' IN ('lcn') THEN 12
WHEN hstore(tags)->'network' IN ('lwn') THEN 12
Additionally we should drop more feature properties at zoom 12, too (changing 12 to 13), to allow more feature merging at zoom 11 and 12:
There are a lot of random (orphaned) unclassified and residential road segments included at zooms 10 and 11 in dense cities. These seem to be "bike" related.
Fix in in 5 parts.
Zoom 10 in London (256px tile size or 512px at 10/511/340 for research):
Zoom 11 in London
Zoom 12 in London
Zoom 10 in Paris: (256px tile size):
Zoom 11 in Paris
Zoom 12 in Paris
Part of this stems from #1250 and #1462, which solved for the rural
unclassified
case where those are actually regional connectors. But in the process too many random tiny urban roads (especially in Europe see London and Paris) were added. That min_zoom of11
should be reverted to12
, those tests updated, and documentation changed.Specifically:
vector-datasource/yaml/roads.yaml
Line 397 in 024909e
Some of the other roads are bike or walking related, where they get promoted up a zoom or two depending on what type or bicycle or walking relation (international, national, regional, and local) it's a member of, via #1172 and #1198.
This was done for Walkabout map style at Mapzen, but introduces extra features for a general purpose map. Let's relax those a single zoom, per https://github.com/tilezen/vector-datasource/blob/master/docs/SEMANTIC-VERSIONING.md#minor-version-increments to keep with MINOR version change.
The code to change is:
vector-datasource/data/functions.sql
Lines 678 to 701 in 15a8fb3
Specifically:
Additionally we should drop more feature properties at zoom 12, too (changing 12 to 13), to allow more feature merging at zoom 11 and 12:
Finally, we should drop surface tags from minor roads and paths at early zooms:
We do a transform here:
Right after that we should dup the logic for
And apply that to minor roads and paths until zoom 14.
We should drop more properties from all kinds of roads, too:
Something more like:
The text was updated successfully, but these errors were encountered: