Skip to content

Commit

Permalink
Revert "Merge pull request #2510 from sommerluk/junctionareas02"
Browse files Browse the repository at this point in the history
This reverts commit 755b15d, reversing
changes made to 4ce7c87.

The query changes were causing sequential scans on all rendering tables
  • Loading branch information
pnorman committed Dec 23, 2016
1 parent a9389ce commit 14eedbb
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -1924,33 +1924,10 @@ Layer:
highway,
junction,
ref,
name,
NULL AS way_pixels
name
FROM planet_osm_point
WHERE highway = 'motorway_junction' OR highway = 'traffic_signals' OR junction = 'yes'
UNION(
SELECT
ST_BuildArea(way),
highway,
junction,
ref,
name,
NULL AS way_pixels
FROM planet_osm_line
WHERE junction = 'yes'
UNION
SELECT
way,
highway,
junction,
ref,
name,
way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels
FROM planet_osm_polygon
WHERE junction = 'yes'
ORDER BY way_pixels DESC NULLS LAST
)
) AS junctions
) AS junctions
properties:
minzoom: 11
advanced: {}
Expand Down

0 comments on commit 14eedbb

Please sign in to comment.