Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

initial (public) commit

  • Loading branch information...
commit 659451fb1180a247a2bd9e81a4ab3ffd6c7c33fd 0 parents
straup authored
Showing with 7,830 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +19 −0 mapnik/area-colors.mss
  3. BIN  mapnik/dot.png
  4. BIN  mapnik/fonts/Arial Bold Italic.ttf
  5. BIN  mapnik/fonts/Arial Bold.ttf
  6. BIN  mapnik/fonts/Arial Italic.ttf
  7. BIN  mapnik/fonts/Arial.ttf
  8. BIN  mapnik/gray-point.png
  9. BIN  mapnik/halftone2.png
  10. +228 −0 mapnik/line-colors.mss
  11. +243 −0 mapnik/line-widths.mss
  12. +164 −0 mapnik/low-zoom-world.html
  13. +271 −0 mapnik/naturalearth-lowzooms.mss
  14. +24 −0 mapnik/osm-midzooms.mss
  15. BIN  mapnik/purple-point.png
  16. +74 −0 mapnik/road-labels.mss
  17. BIN  mapnik/shp/admin_0_countries_110m-points.dbf
  18. +1 −0  mapnik/shp/admin_0_countries_110m-points.prj
  19. BIN  mapnik/shp/admin_0_countries_110m-points.shp
  20. BIN  mapnik/shp/admin_0_countries_110m-points.shx
  21. BIN  mapnik/shp/city-labels-z4.dbf
  22. +1 −0  mapnik/shp/city-labels-z4.prj
  23. BIN  mapnik/shp/city-labels-z4.shp
  24. BIN  mapnik/shp/city-labels-z4.shx
  25. BIN  mapnik/shp/city-labels-z5.dbf
  26. +1 −0  mapnik/shp/city-labels-z5.prj
  27. BIN  mapnik/shp/city-labels-z5.shp
  28. BIN  mapnik/shp/city-labels-z5.shx
  29. BIN  mapnik/shp/city-labels-z6.dbf
  30. +1 −0  mapnik/shp/city-labels-z6.prj
  31. BIN  mapnik/shp/city-labels-z6.shp
  32. BIN  mapnik/shp/city-labels-z6.shx
  33. BIN  mapnik/shp/city-labels-z7.dbf
  34. +1 −0  mapnik/shp/city-labels-z7.prj
  35. BIN  mapnik/shp/city-labels-z7.shp
  36. BIN  mapnik/shp/city-labels-z7.shx
  37. BIN  mapnik/shp/city-labels-z8.dbf
  38. +1 −0  mapnik/shp/city-labels-z8.prj
  39. BIN  mapnik/shp/city-labels-z8.shp
  40. BIN  mapnik/shp/city-labels-z8.shx
  41. BIN  mapnik/shp/city-points-z4.dbf
  42. +1 −0  mapnik/shp/city-points-z4.prj
  43. BIN  mapnik/shp/city-points-z4.shp
  44. BIN  mapnik/shp/city-points-z4.shx
  45. BIN  mapnik/shp/city-points-z5.dbf
  46. +1 −0  mapnik/shp/city-points-z5.prj
  47. BIN  mapnik/shp/city-points-z5.shp
  48. BIN  mapnik/shp/city-points-z5.shx
  49. BIN  mapnik/shp/city-points-z6.dbf
  50. +1 −0  mapnik/shp/city-points-z6.prj
  51. BIN  mapnik/shp/city-points-z6.shp
  52. BIN  mapnik/shp/city-points-z6.shx
  53. BIN  mapnik/shp/city-points-z7.dbf
  54. +1 −0  mapnik/shp/city-points-z7.prj
  55. BIN  mapnik/shp/city-points-z7.shp
  56. BIN  mapnik/shp/city-points-z7.shx
  57. BIN  mapnik/shp/city-points-z8.dbf
  58. +1 −0  mapnik/shp/city-points-z8.prj
  59. BIN  mapnik/shp/city-points-z8.shp
  60. BIN  mapnik/shp/city-points-z8.shx
  61. BIN  mapnik/shp/continents.dbf
  62. +1 −0  mapnik/shp/continents.prj
  63. BIN  mapnik/shp/continents.shp
  64. BIN  mapnik/shp/continents.shx
  65. BIN  mapnik/star.png
  66. +1,093 −0 mapnik/style.mml
  67. +5,672 −0 mapnik/style.xml
  68. +26 −0 tilestache/dotspotting.json
  69. +3 −0  tilestache/run.sh
1  .gitignore
@@ -0,0 +1 @@
+*~
19 mapnik/area-colors.mss
@@ -0,0 +1,19 @@
+Map { map-bgcolor: #000000; }
+#water-bodies[zoom>=9] { polygon-fill: #000000; }
+
+#processed-coast-background[zoom>=9] { polygon-fill: #ffffff; }
+
+#green-areas[zoom>=9][kind=forest],
+#green-areas[zoom>=10][kind=park],
+#green-areas[zoom>=12]
+{
+ polygon-pattern-file: url('halftone2.png');
+}
+
+/*
+#civic-areas[zoom>=12] { polygon-pattern-file: url('halftone2.png'); }
+
+#parking-areas[zoom>=12] { polygon-pattern-file: url('halftone2.png'); }
+
+#building-areas[zoom>=12] { polygon-pattern-file: url('halftone2.png'); }
+*/
BIN  mapnik/dot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  mapnik/fonts/Arial Bold Italic.ttf
Binary file not shown
BIN  mapnik/fonts/Arial Bold.ttf
Binary file not shown
BIN  mapnik/fonts/Arial Italic.ttf
Binary file not shown
BIN  mapnik/fonts/Arial.ttf
Binary file not shown
BIN  mapnik/gray-point.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  mapnik/halftone2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
228 mapnik/line-colors.mss
@@ -0,0 +1,228 @@
+/*
+ Zoom Level 9
+*/
+.lo-sublines[highway=trunk][zoom=9] { line-color: #000; }
+
+.lo-inlines[highway=motorway][zoom=9] { line-color: #000; }
+.lo-outlines[highway=motorway][zoom=9] { line-color: #fff; }
+
+
+/*
+ Zoom Level 10
+*/
+
+.lo-inlines[highway=motorway][zoom=10] { line-color: #000; }
+.lo-outlines[highway=motorway][zoom=10] { line-color: #fff; }
+
+.lo-inlines[highway=trunk][zoom=10] { line-color: #000; }
+.lo-inlines[highway=primary][zoom=10] { line-color: #000; }
+.lo-inlines[highway=secondary][zoom=10] { line-color: #000; }
+
+
+/*
+ Zoom Level 11
+*/
+
+.med-inlines[highway=motorway][zoom=11] { line-color: #000; }
+.med-outlines[highway=motorway][zoom=11] { line-color: #fff; }
+
+.med-inlines[highway=trunk][zoom=11] { line-color: #000; }
+.med-outlines[highway=trunk][zoom=11] { line-color: #fff; }
+
+.med-inlines[highway=primary][zoom=11] { line-color: #000; }
+.med-inlines[highway=secondary][zoom=11] { line-color: #000; }
+.med-inlines[highway=tertiary][zoom=11] { line-color: #000; }
+.med-inlines[kind=minor_road][highway!=service][zoom=11] { line-color: #000; }
+.med-inlines[highway=service][zoom=11] { line-color: #000; }
+
+
+/*
+ Zoom Level 12
+*/
+.med-inlines[highway=motorway][zoom=12] { line-color: #000; }
+.med-outlines[highway=motorway][zoom=12] { line-color: #fff; }
+.med-inlines[highway=motorway_link][zoom=12] { line-color: #000; }
+
+.med-inlines[highway=trunk][zoom=12] { line-color: #000; }
+.med-outlines[highway=trunk][zoom=12] { line-color: #fff; }
+.med-inlines[highway=trunk_link][zoom=12] { line-color: #000; }
+
+.med-inlines[highway=primary][zoom=12] { line-color: #000; }
+.med-outlines[highway=primary][zoom=12] { line-color: #fff; }
+.med-inlines[highway=primary_link][zoom=12] { line-color: #000; }
+
+.med-inlines[highway=secondary][zoom=12] { line-color: #000; }
+.med-inlines[highway=tertiary][zoom=12] { line-color: #000; }
+.med-inlines[kind=minor_road][highway!=service][zoom=12] { line-color: #000; }
+.med-inlines[highway=service][zoom=12] { line-color: #000; }
+.med-inlines[kind=path][zoom=12] { line-color: #000; }
+
+
+/*
+ Zoom Level 13
+*/
+.med-inlines[highway=motorway][zoom=13] { line-color: #000; }
+.med-outlines[highway=motorway][zoom=13] { line-color: #fff; }
+.med-inlines[highway=motorway_link][zoom=13] { line-color: #000; }
+.med-outlines[highway=motorway_link][zoom=13] { line-color: #fff; }
+
+.med-inlines[highway=trunk][zoom=13] { line-color: #000; }
+.med-outlines[highway=trunk][zoom=13] { line-color: #fff; }
+.med-inlines[highway=trunk_link][zoom=13] { line-color: #000; }
+.med-outlines[highway=trunk_link][zoom=13] { line-color: #fff; }
+
+.med-inlines[highway=primary][zoom=13] { line-color: #000; }
+.med-outlines[highway=primary][zoom=13] { line-color: #fff; }
+.med-inlines[highway=primary_link][zoom=13] { line-color: #000; }
+
+.med-inlines[highway=secondary][zoom=13] { line-color: #000; }
+.med-outlines[highway=secondary][zoom=13] { line-color: #fff; }
+.med-inlines[highway=secondary_link][zoom=13] { line-color: #000; }
+
+.med-inlines[highway=tertiary][zoom=13] { line-color: #000; }
+.med-inlines[kind=minor_road][highway!=service][zoom=13] { line-color: #000; }
+.med-inlines[highway=service][zoom=13] { line-color: #000; }
+.med-inlines[kind=path][zoom=13] { line-color: #000; }
+
+
+/*
+ Zoom Level 14
+*/
+.hi-inlines[highway=motorway][zoom=14] { line-color: #000; }
+.hi-outlines[highway=motorway][zoom=14] { line-color: #fff; }
+.hi-inlines[highway=motorway_link][zoom=14] { line-color: #000; }
+.hi-outlines[highway=motorway_link][zoom=14] { line-color: #fff; }
+
+.hi-inlines[highway=trunk][zoom=14] { line-color: #000; }
+.hi-outlines[highway=trunk][zoom=14] { line-color: #fff; }
+.hi-inlines[highway=trunk_link][zoom=14] { line-color: #000; }
+.hi-outlines[highway=trunk_link][zoom=14] { line-color: #fff; }
+
+.hi-inlines[highway=primary][zoom=14] { line-color: #000; }
+.hi-outlines[highway=primary][zoom=14] { line-color: #fff; }
+.hi-inlines[highway=primary_link][zoom=14] { line-color: #000; }
+
+.hi-inlines[highway=secondary][zoom=14] { line-color: #000; }
+.hi-outlines[highway=secondary][zoom=14] { line-color: #fff; }
+.hi-inlines[highway=secondary_link][zoom=14] { line-color: #000; }
+
+.hi-inlines[highway=tertiary][zoom=14] { line-color: #000; }
+.hi-outlines[highway=tertiary][zoom=14] { line-color: #fff; }
+
+.hi-inlines[kind=minor_road][highway!=service][zoom=14] { line-color: #000; }
+.hi-inlines[highway=service][zoom=14] { line-color: #000; }
+.hi-inlines[kind=path][zoom=14] { line-color: #000; }
+
+
+/*
+ Zoom Level 15
+*/
+.hi-sublines[zoom=15] { line-color: #afb0ae; }
+
+.hi-inlines[highway=motorway][zoom=15] { line-color: #000; }
+.hi-outlines[highway=motorway][zoom=15] { line-color: #fff; }
+.hi-inlines[highway=motorway_link][zoom=15] { line-color: #000; }
+.hi-outlines[highway=motorway_link][zoom=15] { line-color: #fff; }
+
+.hi-inlines[highway=trunk][zoom=15] { line-color: #000; }
+.hi-outlines[highway=trunk][zoom=15] { line-color: #fff; }
+.hi-inlines[highway=trunk_link][zoom=15] { line-color: #000; }
+.hi-outlines[highway=trunk_link][zoom=15] { line-color: #fff; }
+
+.hi-inlines[highway=primary][zoom=15] { line-color: #000; }
+.hi-outlines[highway=primary][zoom=15] { line-color: #fff; }
+.hi-inlines[highway=primary_link][zoom=15] { line-color: #000; }
+.hi-outlines[highway=primary_link][zoom=15] { line-color: #fff; }
+
+.hi-inlines[highway=secondary][zoom=15] { line-color: #000; }
+.hi-outlines[highway=secondary][zoom=15] { line-color: #fff; }
+.hi-inlines[highway=secondary_link][zoom=15] { line-color: #000; }
+.hi-outlines[highway=secondary_link][zoom=15] { line-color: #fff; }
+
+.hi-inlines[highway=tertiary][zoom=15] { line-color: #000; }
+.hi-outlines[highway=tertiary][zoom=15] { line-color: #fff; }
+
+.hi-inlines[kind=minor_road][highway!=service][zoom=15] { line-color: #000; }
+.hi-outlines[kind=minor_road][highway!=service][zoom=15] { line-color: #fff; }
+
+.hi-inlines[highway=service][zoom=15] { line-color: #000; }
+
+.hi-inlines[kind=minor_road][zoom=15] { line-color: #000; }
+
+.hi-inlines[kind=path][zoom=15] { line-color: #000; }
+
+
+/*
+ Zoom Level 16
+*/
+.hi-sublines[zoom=16] { line-color: #000; }
+
+.hi-inlines[highway=motorway][zoom=16] { line-color: #fff; }
+.hi-outlines[highway=motorway][zoom=16] { line-color: #000; }
+.hi-inlines[highway=motorway_link][zoom=16] { line-color: #fff; }
+.hi-outlines[highway=motorway_link][zoom=16] { line-color: #000; }
+
+.hi-inlines[highway=trunk][zoom=16] { line-color: #fff; }
+.hi-outlines[highway=trunk][zoom=16] { line-color: #000; }
+.hi-inlines[highway=trunk_link][zoom=16] { line-color: #fff; }
+.hi-outlines[highway=trunk_link][zoom=16] { line-color: #000; }
+
+.hi-inlines[highway=primary][zoom=16] { line-color: #fff; }
+.hi-outlines[highway=primary][zoom=16] { line-color: #000; }
+.hi-inlines[highway=primary_link][zoom=16] { line-color: #fff; }
+.hi-outlines[highway=primary_link][zoom=16] { line-color: #000; }
+
+.hi-inlines[highway=secondary][zoom=16] { line-color: #fff; }
+.hi-outlines[highway=secondary][zoom=16] { line-color: #000; }
+.hi-inlines[highway=secondary_link][zoom=16] { line-color: #fff; }
+.hi-outlines[highway=secondary_link][zoom=16] { line-color: #000; }
+
+.hi-inlines[highway=tertiary][zoom=16] { line-color: #fff; }
+.hi-outlines[highway=tertiary][zoom=16] { line-color: #000; }
+
+.hi-inlines[kind=minor_road][zoom=16] { line-color: #fff; }
+.hi-outlines[kind=minor_road][zoom=16] { line-color: #000; }
+
+.hi-inlines[highway=service][zoom=16] { line-color: #fff; }
+.hi-outlines[highway=service][zoom=16] { line-color: #000; }
+
+.hi-inlines[kind=path][zoom=16] { line-color: #fff; }
+.hi-outlines[kind=path][zoom=16] { line-color: #000; }
+
+
+/*
+ Zoom Level 17
+*/
+.hi-sublines[zoom=17] { line-color: #000; }
+
+.hi-inlines[highway=motorway][zoom=17] { line-color: #fff; }
+.hi-outlines[highway=motorway][zoom=17] { line-color: #000; }
+.hi-inlines[highway=motorway_link][zoom=17] { line-color: #fff; }
+.hi-outlines[highway=motorway_link][zoom=17] { line-color: #000; }
+
+.hi-inlines[highway=trunk][zoom=17] { line-color: #fff; }
+.hi-outlines[highway=trunk][zoom=17] { line-color: #000; }
+.hi-inlines[highway=trunk_link][zoom=17] { line-color: #fff; }
+.hi-outlines[highway=trunk_link][zoom=17] { line-color: #000; }
+
+.hi-inlines[highway=primary][zoom=17] { line-color: #fff; }
+.hi-outlines[highway=primary][zoom=17] { line-color: #000; }
+.hi-inlines[highway=primary_link][zoom=17] { line-color: #fff; }
+.hi-outlines[highway=primary_link][zoom=17] { line-color: #000; }
+
+.hi-inlines[highway=secondary][zoom=17] { line-color: #fff; }
+.hi-outlines[highway=secondary][zoom=17] { line-color: #000; }
+.hi-inlines[highway=secondary_link][zoom=17] { line-color: #fff; }
+.hi-outlines[highway=secondary_link][zoom=17] { line-color: #000; }
+
+.hi-inlines[highway=tertiary][zoom=17] { line-color: #fff; }
+.hi-outlines[highway=tertiary][zoom=17] { line-color: #000; }
+
+.hi-inlines[kind=minor_road][zoom=17] { line-color: #fff; }
+.hi-outlines[kind=minor_road][zoom=17] { line-color: #000; }
+
+.hi-inlines[highway=service][zoom=17] { line-color: #fff; }
+.hi-outlines[highway=service][zoom=17] { line-color: #000; }
+
+.hi-inlines[kind=path][zoom>=17] { line-color: #fff; }
+.hi-outlines[kind=path][zoom>=17] { line-color: #000; }
243 mapnik/line-widths.mss
@@ -0,0 +1,243 @@
+.lo-lines,
+.med-lines,
+.hi-lines
+{
+ line-join: round;
+ line-cap: round;
+}
+
+
+/*
+ Zoom Level 9
+*/
+
+.lo-sublines[highway=trunk][zoom=9] { line-width: 1; }
+
+.lo-inlines[highway=motorway][zoom=9] { line-width: 1.6; }
+.lo-outlines[highway=motorway][zoom=9] { line-width: 4; }
+
+/*
+ Zoom Level 10
+*/
+
+.lo-inlines[highway=motorway][zoom=10] { line-width: 2; }
+.lo-outlines[highway=motorway][zoom=10] { line-width: 6; }
+
+.lo-lines[highway=trunk][zoom=10] { line-width: 1; }
+.lo-lines[highway=primary][zoom=10] { line-width: 1; }
+.lo-lines[highway=secondary][zoom=10] { line-width: 0.15; }
+
+
+/*
+ Zoom Level 11
+*/
+
+.med-inlines[highway=motorway][zoom=11] { line-width: 2.5; }
+.med-outlines[highway=motorway][zoom=11] { line-width: 7; }
+
+.med-lines[highway=trunk][zoom=11] { line-width: 1.25; }
+.med-outlines[highway=trunk][zoom=11] { line-width: 4; }
+
+.med-lines[highway=primary][zoom=11] { line-width: 1; }
+.med-lines[highway=secondary][zoom=11] { line-width: 0.15; }
+/*
+.med-lines[highway=tertiary][zoom=11] { line-width: 0.15; }
+.med-lines[kind=minor_road][highway!=service][zoom=11] { line-width: 0.15; }
+.med-lines[highway=service][zoom=11] { line-width: 0.15; }
+*/
+
+
+/*
+ Zoom Level 12
+*/
+.med-inlines[highway=motorway][zoom=12] { line-width: 3.2; }
+.med-outlines[highway=motorway][zoom=12] { line-width: 8; }
+.med-inlines[highway=motorway_link][zoom=12] { line-width: 1; }
+
+.med-inlines[highway=trunk][zoom=12] { line-width: 1.5; }
+.med-outlines[highway=trunk][zoom=12] { line-width: 4; }
+.med-inlines[highway=trunk_link][zoom=12] { line-width: 1; }
+
+.med-inlines[highway=primary][zoom=12] { line-width: 2; }
+.med-outlines[highway=primary][zoom=12] { line-width: 6; }
+.med-inlines[highway=primary_link][zoom=12] { line-width: 1; }
+
+.med-inlines[highway=secondary][zoom=12] { line-width: 1; }
+
+.med-inlines[highway=tertiary][zoom=12] { line-width: 0.15; }
+/*
+.med-inlines[kind=minor_road][highway!=service][zoom=12] { line-width: 0.2; }
+.med-inlines[highway=service][zoom=12] { line-width: 0.2; }
+.med-inlines[kind=path][zoom=12] { line-width: 0.15; }
+*/
+
+
+/*
+ Zoom Level 13
+*/
+.med-inlines[highway=motorway][zoom=13] { line-width: 4; }
+.med-outlines[highway=motorway][zoom=13] { line-width: 10; }
+.med-inlines[highway=motorway_link][zoom=13] { line-width: 1.1; }
+.med-outlines[highway=motorway_link][zoom=13] { line-width: 2.5; }
+
+.med-inlines[highway=trunk][zoom=13] { line-width: 2; }
+.med-outlines[highway=trunk][zoom=13] { line-width: 5; }
+.med-inlines[highway=trunk_link][zoom=13] { line-width: 1; }
+.med-outlines[highway=trunk_link][zoom=13] { line-width: 3; }
+
+.med-inlines[highway=primary][zoom=13] { line-width: 2; }
+.med-outlines[highway=primary][zoom=13] { line-width: 4; }
+.med-inlines[highway=primary_link][zoom=13] { line-width: 1; }
+
+.med-inlines[highway=secondary][zoom=13] { line-width: 2; }
+.med-outlines[highway=secondary][zoom=13] { line-width: 4; }
+.med-inlines[highway=secondary_link][zoom=13] { line-width: 1; }
+
+.med-inlines[highway=tertiary][zoom=13] { line-width: 0.15; }
+.med-inlines[kind=minor_road][highway!=service][zoom=13] { line-width: 0.15; }
+/*
+.med-inlines[highway=service][zoom=13] { line-width: 0.4; }
+.med-inlines[kind=path][zoom=13] { line-width: 0.25; }
+*/
+
+
+/*
+ Zoom Level 14
+*/
+.hi-inlines[highway=motorway][zoom=14] { line-width: 5; }
+.hi-outlines[highway=motorway][zoom=14] { line-width: 10; }
+.hi-inlines[highway=motorway_link][zoom=14] { line-width: 2.2; }
+.hi-outlines[highway=motorway_link][zoom=14] { line-width: 3.8; }
+
+.hi-inlines[highway=trunk][zoom=14] { line-width: 2.2; }
+.hi-outlines[highway=trunk][zoom=14] { line-width: 3.8; }
+.hi-inlines[highway=trunk_link][zoom=14] { line-width: 1.1; }
+.hi-outlines[highway=trunk_link][zoom=14] { line-width: 2; }
+
+.hi-inlines[highway=primary][zoom=14] { line-width: 2.2; }
+.hi-outlines[highway=primary][zoom=14] { line-width: 3.8; }
+.hi-inlines[highway=primary_link][zoom=14] { line-width: 1; }
+
+.hi-inlines[highway=secondary][zoom=14] { line-width: 2.2; }
+.hi-outlines[highway=secondary][zoom=14] { line-width: 3.8; }
+.hi-inlines[highway=secondary_link][zoom=14] { line-width: 1; }
+
+.hi-inlines[highway=tertiary][zoom=14] { line-width: 2; }
+.hi-outlines[highway=tertiary][zoom=14] { line-width: 2.4; }
+
+.hi-inlines[kind=minor_road][highway!=service][zoom=14] { line-width: 0.25; }
+.hi-inlines[highway=service][zoom=14] { line-width: 0.25; }
+.hi-inlines[kind=path][zoom=14] { line-width: 0.15; }
+
+
+/*
+ Zoom Level 15
+*/
+.hi-sublines[zoom=15] { line-width: .5; }
+
+.hi-inlines[highway=motorway][zoom=15] { line-width: 6; }
+.hi-outlines[highway=motorway][zoom=15] { line-width: 10.4; }
+.hi-inlines[highway=motorway_link][zoom=15] { line-width: 3; }
+.hi-outlines[highway=motorway_link][zoom=15] { line-width: 5; }
+
+.hi-inlines[highway=trunk][zoom=15] { line-width: 6; }
+.hi-outlines[highway=trunk][zoom=15] { line-width: 10.4; }
+.hi-inlines[highway=trunk_link][zoom=15] { line-width: 3; }
+.hi-outlines[highway=trunk_link][zoom=15] { line-width: 5; }
+
+.hi-inlines[highway=primary][zoom=15] { line-width: 6; }
+.hi-outlines[highway=primary][zoom=15] { line-width: 10.4; }
+.hi-inlines[highway=primary_link][zoom=15] { line-width: 1; }
+.hi-outlines[highway=primary_link][zoom=15] { line-width: 1.6; }
+
+.hi-inlines[highway=secondary][zoom=15] { line-width: 5.5; }
+.hi-outlines[highway=secondary][zoom=15] { line-width: 9.5; }
+.hi-inlines[highway=secondary_link][zoom=15] { line-width: 1; }
+.hi-outlines[highway=secondary_link][zoom=15] { line-width: 1.6; }
+
+.hi-inlines[highway=tertiary][zoom=15] { line-width: 2; }
+.hi-outlines[highway=tertiary][zoom=15] { line-width: 2.4; }
+
+.hi-inlines[kind=minor_road][highway!=service][zoom=15] { line-width: 2; }
+.hi-outlines[kind=minor_road][highway!=service][zoom=15] { line-width: 2.4; }
+
+.hi-inlines[highway=service][zoom=15] { line-width: 0.5; }
+
+.hi-inlines[kind=minor_road][zoom=15] { line-width: 6; }
+
+.hi-inlines[kind=path][zoom=15] { line-width: 1; }
+
+
+/*
+ Zoom Level 16
+*/
+.hi-sublines[zoom=16] { line-width: .5; }
+
+.hi-inlines[highway=motorway][zoom=16] { line-width: 14; }
+.hi-outlines[highway=motorway][zoom=16] { line-width: 20; }
+.hi-inlines[highway=motorway_link][zoom=16] { line-width: 7; }
+.hi-outlines[highway=motorway_link][zoom=16] { line-width: 9; }
+
+.hi-inlines[highway=trunk][zoom=16] { line-width: 14; }
+.hi-outlines[highway=trunk][zoom=16] { line-width: 20; }
+.hi-inlines[highway=trunk_link][zoom=16] { line-width: 7; }
+.hi-outlines[highway=trunk_link][zoom=16] { line-width: 9; }
+
+.hi-inlines[highway=primary][zoom=16] { line-width: 12; }
+.hi-outlines[highway=primary][zoom=16] { line-width: 16; }
+.hi-inlines[highway=primary_link][zoom=16] { line-width: 4; }
+.hi-outlines[highway=primary_link][zoom=16] { line-width: 6; }
+
+.hi-inlines[highway=secondary][zoom=16] { line-width: 12; }
+.hi-outlines[highway=secondary][zoom=16] { line-width: 16; }
+.hi-inlines[highway=secondary_link][zoom=16] { line-width: 4; }
+.hi-outlines[highway=secondary_link][zoom=16] { line-width: 6; }
+
+.hi-inlines[highway=tertiary][zoom=16] { line-width: 9; }
+.hi-outlines[highway=tertiary][zoom=16] { line-width: 11; }
+
+.hi-inlines[kind=minor_road][zoom=16] { line-width: 9; }
+.hi-outlines[kind=minor_road][zoom=16] { line-width: 11; }
+
+.hi-inlines[highway=service][zoom=16] { line-width: 9; }
+.hi-outlines[highway=service][zoom=16] { line-width: 11; }
+
+.hi-inlines[kind=path][zoom=16] { line-width: 1; }
+.hi-outlines[kind=path][zoom=16] { line-width: 2; }
+
+/*
+ Zoom Level 17
+*/
+.hi-sublines[zoom=17] { line-width: .5; }
+
+.hi-inlines[highway=motorway][zoom=17] { line-width: 22; }
+.hi-outlines[highway=motorway][zoom=17] { line-width: 30; }
+.hi-inlines[highway=motorway_link][zoom=17] { line-width: 13; }
+.hi-outlines[highway=motorway_link][zoom=17] { line-width: 19; }
+
+.hi-inlines[highway=trunk][zoom=17] { line-width: 18; }
+.hi-outlines[highway=trunk][zoom=17] { line-width: 22; }
+.hi-inlines[highway=trunk_link][zoom=17] { line-width: 6; }
+.hi-outlines[highway=trunk_link][zoom=17] { line-width: 8; }
+
+.hi-inlines[highway=primary][zoom=17] { line-width: 18; }
+.hi-outlines[highway=primary][zoom=17] { line-width: 22; }
+.hi-inlines[highway=primary_link][zoom=17] { line-width: 6; }
+.hi-outlines[highway=primary_link][zoom=17] { line-width: 8; }
+
+.hi-inlines[highway=secondary][zoom=17] { line-width: 18; }
+.hi-outlines[highway=secondary][zoom=17] { line-width: 22; }
+.hi-inlines[highway=secondary_link][zoom=17] { line-width: 6; }
+.hi-outlines[highway=secondary_link][zoom=17] { line-width: 8; }
+
+.hi-inlines[highway=tertiary][zoom=17] { line-width: 13; }
+.hi-outlines[highway=tertiary][zoom=17] { line-width: 15; }
+
+.hi-inlines[kind=minor_road][zoom=17] { line-width: 11; }
+.hi-outlines[kind=minor_road][zoom=17] { line-width: 13; }
+
+.hi-inlines[highway=service][zoom=17] { line-width: 11; }
+.hi-outlines[highway=service][zoom=17] { line-width: 13; }
+
+.hi-inlines[kind=path][zoom>=17] { line-width: 2; }
+.hi-outlines[kind=path][zoom>=17] { line-width: 3; }
164 mapnik/low-zoom-world.html
@@ -0,0 +1,164 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <title>Map preview for Low Zoom World</title>
+ <style type="text/css" title="text/css">
+ <!--
+
+ body
+ {
+ font-family: Helvetica, Arial, sans-serif;
+ font-size: 13px;
+ background-color: white;
+ color: black;
+ }
+
+ table
+ {
+ border-collapse: collapse;
+ }
+
+ table tr td
+ {
+ text-align: left;
+ padding: 0 1em 1em .25em;
+ }
+
+ table tr td:first-child
+ {
+ text-align: right;
+ vertical-align: top;
+ padding-right: 0;
+ font-size: 3em;
+ }
+
+ -->
+ </style>
+</head>
+<body>
+
+<table>
+ <tr>
+ <td>1</td>
+ <td><img src="low-zoom-world-1.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-1.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-1.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-1.png" border="1" width="1024" height="600"></td>
+ </tr>
+ <tr>
+ <td>2</td>
+ <td><img src="low-zoom-world-2.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-2.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-2.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-2.png" border="1" width="1024" height="600"></td>
+ </tr>
+ <tr>
+ <td>3</td>
+ <td><img src="low-zoom-world-usa-3.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-usa-3.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-berlin-3.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-tokyo-3.png" border="1" width="1024" height="600"></td>
+ </tr>
+ <tr>
+ <td>4</td>
+ <td><img src="low-zoom-world-usa-4.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-usa-4.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-berlin-4.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-tokyo-4.png" border="1" width="1024" height="600"></td>
+ </tr>
+ <tr>
+ <td>5</td>
+ <td><img src="low-zoom-world-oakland-5.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-dc-5.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-berlin-5.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-tokyo-5.png" border="1" width="1024" height="600"></td>
+ </tr>
+ <tr>
+ <td>6</td>
+ <td><img src="low-zoom-world-oakland-6.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-dc-6.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-berlin-6.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-tokyo-6.png" border="1" width="1024" height="600"></td>
+ </tr>
+ <tr>
+ <td>7</td>
+ <td><img src="low-zoom-world-oakland-7.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-dc-7.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-berlin-7.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-tokyo-7.png" border="1" width="1024" height="600"></td>
+ </tr>
+ <tr>
+ <td>8</td>
+ <td><img src="low-zoom-world-oakland-8.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-dc-8.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-berlin-8.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-tokyo-8.png" border="1" width="1024" height="600"></td>
+ </tr>
+ <tr>
+ <td>9</td>
+ <td><img src="high-zoom-cities-9.png" border="1" width="1024" height="512"></td>
+ <td><img src="low-zoom-world-dc-9.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-berlin-9.png" border="1" width="1024" height="600"></td>
+ <td><img src="low-zoom-world-tokyo-9.png" border="1" width="1024" height="600"></td>
+ </tr>
+ <tr>
+ <td>10</td>
+ <td><img src="high-zoom-cities-10.png" border="1" width="1024" height="512"></td>
+ <td></td>
+ <td></td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>11</td>
+ <td><img src="high-zoom-cities-11.png" border="1" width="1024" height="512"></td>
+ <td></td>
+ <td></td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>12</td>
+ <td><img src="high-zoom-cities-12.png" border="1" width="1024" height="512"></td>
+ <td></td>
+ <td></td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>13</td>
+ <td><img src="high-zoom-cities-13.png" border="1" width="1024" height="512"></td>
+ <td></td>
+ <td></td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>14</td>
+ <td><img src="high-zoom-cities-14.png" border="1" width="1024" height="512"></td>
+ <td></td>
+ <td></td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>15</td>
+ <td><img src="high-zoom-cities-15.png" border="1" width="1024" height="512"></td>
+ <td></td>
+ <td></td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>16</td>
+ <td><img src="high-zoom-cities-16.png" border="1" width="1024" height="512"></td>
+ <td></td>
+ <td></td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>17</td>
+ <td><img src="high-zoom-cities-17.png" border="1" width="1024" height="512"></td>
+ <td></td>
+ <td></td>
+ <td></td>
+ </tr>
+</table>
+
+</body>
+</html>
271 mapnik/naturalearth-lowzooms.mss
@@ -0,0 +1,271 @@
+Map
+{
+ map-bgcolor: #000000;
+}
+
+/*
+"shore" is a general class for layers with continents, coastlines,
+lakes, and other kinds of meeting points between water and land.
+*/
+.shore
+{
+ line-color: #000000;
+ line-cap: round;
+ line-join: round;
+}
+
+
+#country-shapes-110m[zoom>=2][zoom<3]
+{
+ line-width: 0.25;
+ polygon-fill: #fff;
+}
+
+
+#land-shapes-110m[zoom<2],
+#country-shapes-50m[zoom>=3][zoom<6],
+#country-shapes-10m[zoom>=6][zoom<8],
+#processed-coast-outline[zoom>=8],
+#processed-coast-inline[zoom>=8]
+{
+ line-width: 0.75;
+ polygon-fill: #fff;
+}
+
+/*
+Adjust the inner and outer line-widths and fatten up the inner shap
+with some land color to account for tiled data in the coastline tab
+*/
+#processed-coast-outline[zoom>=8] { line-width: 2.5; }
+#processed-coast-inline[zoom>=8] { line-width: 0.5; line-color: #fff; }
+
+#admin1-lines-50m[zoom>=3][zoom<6]
+{
+ line-width: 0.35;
+ line-color: #000;
+}
+
+#admin1-lines-10m[zoom>=6][zoom<=8]
+{
+ line-width: 0.6;
+ line-color: #000;
+}
+
+#lakes-110m[zoom<3],
+#lakes-50m[zoom>=3][zoom<6][scalerank<3],
+#lakes-50m[zoom>=6][zoom<6],
+#lakes-10m[zoom>=6][zoom<8]
+{
+ line-width: 1;
+ polygon-fill: #000;
+}
+
+/*
+Continent labels are just points.
+*/
+#continent-labels[zoom>=1][zoom<3] name
+{
+ text-face-name: 'Arial Bold';
+ text-wrap-width: 32;
+ text-size: 14;
+ text-fill: #000;
+ text-halo-radius: 3;
+ text-halo-fill: #fff;
+}
+
+
+/*
+Ocean, Sea, Bay and other marine labels. Some use of scalerank column
+here helps define exactly which features come in at which zoom levels.
+*/
+#marine-labels-110m[zoom=2][scalerank=0] name,
+#marine-labels-110m[zoom=3] name,
+#marine-labels-50m[zoom=4][scalerank<4] name
+{
+ text-face-name: 'Arial Bold Italic';
+ text-wrap-width: 80;
+ text-size: 14;
+ text-fill: #fff;
+ text-halo-radius: 1;
+ text-halo-fill: #000;
+}
+
+#marine-labels-50m[zoom>=5][zoom<6] name,
+#marine-labels-10m[zoom>=6] name
+{
+ text-face-name: 'Arial Italic';
+ text-wrap-width: 80;
+ text-size: 14;
+ text-fill: #fff;
+ text-halo-radius: 1;
+ text-halo-fill: #000;
+}
+
+/*
+Todo: draw names of small countries at higher zoom levels?
+*/
+#country-labels-110m[zoom=3][longfrom<=3] name,
+#country-labels-110m[zoom=3][longfrom>3] shortname
+{
+ text-face-name: 'Arial Regular';
+ text-wrap-width: 80;
+ text-size: 13;
+ text-fill: #000;
+ text-halo-radius: 2;
+ text-halo-fill: #fff;
+}
+
+#country-labels-110m[zoom=4][longfrom<=4] name,
+#country-labels-110m[zoom=4][longfrom>4] shortname
+{
+ text-face-name: 'Arial Bold';
+ text-wrap-width: 80;
+ text-size: 14;
+ text-fill: #000;
+ text-halo-radius: 2;
+ text-halo-fill: #fff;
+}
+
+#country-labels-110m[zoom=5][longfrom<=5] name,
+#country-labels-110m[zoom=5][longfrom>5] shortname
+{
+ text-face-name: 'Arial Bold';
+ text-wrap-width: 80;
+ text-size: 16;
+ text-fill: #000;
+ text-halo-radius: 2;
+ text-halo-fill: #fff;
+}
+
+#country-labels-110m[zoom>=6][zoom<7][longfrom<=6] name,
+#country-labels-110m[zoom>=6][zoom<7][longfrom>6] shortname
+{
+ text-face-name: 'Arial Bold';
+ text-wrap-width: 80;
+ text-size: 18;
+ text-fill: #000;
+ text-halo-radius: 2;
+ text-halo-fill: #fff;
+}
+
+
+
+#admin1-labels-50m[zoom>=4][zoom<6] abbr,
+#admin1-labels-50m[zoom>=6][zoom<8] name
+{
+ text-face-name: 'Arial Regular';
+ text-wrap-width: 80;
+ text-fill: #000;
+ text-halo-radius: 2;
+ text-halo-fill: #fff;
+}
+
+#admin1-labels-50m[zoom=4]{ text-size: 12; }
+#admin1-labels-50m[zoom=5]{ text-size: 16; }
+#admin1-labels-50m[zoom=6]{ text-size: 18; }
+#admin1-labels-50m[zoom=7]{ text-size: 20; }
+#admin1-labels-50m[zoom=8]{ text-size: 20; }
+
+#city-points-z4[zoom=4],
+#city-points-z5[zoom=5],
+#city-points-z6[zoom=6],
+#city-points-z7[zoom=7],
+#city-points-z8[zoom=8]
+{
+ point-file: url('dot.png');
+}
+
+/*
+#city-points-z6[name="Washington"][zoom=6]
+{
+ point-file: url('star.png');
+}
+
+#city-points-z6[name="Berlin"][zoom=6]
+{
+ point-file: url('star.png');
+}
+
+#city-points-z6[name="Prague"][zoom=6]
+{
+ point-file: url('star.png');
+}
+
+#city-points-z6[name="Warsaw"][zoom=6]
+{
+ point-file: url('star.png');
+}
+
+#city-points-z6[name="Brussels"][zoom=6]
+{
+ point-file: url('star.png');
+}
+
+#city-points-z6[name="Paris"][zoom=6]
+{
+ point-file: url('star.png');
+}
+*/
+
+
+
+#city-labels-z4[zoom=4] name,
+#city-labels-z5[zoom=5] name,
+#city-labels-z6[zoom=6] name
+{
+ text-allow-overlap: true;
+ text-face-name: 'Arial Regular';
+ text-fill: #000;
+ text-halo-radius: 2;
+ text-halo-fill: #fff;
+}
+
+#city-labels-z7[zoom=7] name,
+#city-labels-z8[zoom=8] name
+{
+ text-allow-overlap: true;
+ text-face-name: 'Arial Bold';
+ text-fill: #000;
+ text-halo-radius: 2;
+ text-halo-fill: #fff;
+}
+
+/*
+City Labels ZOOM 4
+*/
+.city-labels[zoom=4] name { text-size: 10; }
+.city-labels[zoom=4][population>=25000] name { text-size: 10; }
+.city-labels[zoom=4][population>=100000] name { text-size: 10; }
+.city-labels[zoom=4][population>=1000000] name { text-size: 14; }
+
+/*
+City Labels ZOOM 5
+*/
+.city-labels[zoom=5] name { text-size: 12; }
+.city-labels[zoom=5][population>=25000] name { text-size: 12; }
+.city-labels[zoom=5][population>=100000] name { text-size: 12; }
+.city-labels[zoom=5][population>=1000000] name { text-size: 16; }
+
+/*
+City Labels ZOOM 6
+*/
+.city-labels[zoom=6] name { text-size: 12; }
+.city-labels[zoom=6][population>=25000] name { text-size: 12; }
+.city-labels[zoom=6][population>=100000] name { text-size: 12; }
+.city-labels[zoom=6][population>=1000000] name { text-size: 18; }
+
+/*
+City Labels ZOOM 7
+*/
+.city-labels[zoom=7] name { text-size: 12; }
+.city-labels[zoom=7][population>=25000] name { text-size: 12; }
+.city-labels[zoom=7][population>=100000] name { text-size: 12; }
+.city-labels[zoom=7][population>=1000000] name { text-size: 18; }
+
+/*
+City Labels ZOOM 8
+*/
+.city-labels[zoom=8] name { text-size: 13; }
+.city-labels[zoom=8][population>=25000] name { text-size: 13; }
+.city-labels[zoom=8][population>=100000] name { text-size: 20; }
+.city-labels[zoom=8][population>=1000000] name { text-size: 20; }
24 mapnik/osm-midzooms.mss
@@ -0,0 +1,24 @@
+#motorways-z6[zoom=6]
+{
+ line-width: 0.05;
+ line-color: #000;
+}
+
+#motorways-z7[zoom=7]
+{
+ line-width: 0.12;
+ line-color: #000;
+}
+
+#motorways-z8[zoom=8]
+{
+ line-width: .25;
+ line-color: #000;
+}
+
+/*
+#motorways-z9[zoom=9]
+{
+ line-width: .25;
+ line-color: #000;
+*/
BIN  mapnik/purple-point.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 mapnik/road-labels.mss
@@ -0,0 +1,74 @@
+
+#major-road-labels[zoom>=12] name
+{
+ text-face-name: 'Arial Regular';
+ text-placement: line;
+ text-max-char-angle-delta: 30;
+ text-fill: #000;
+ text-halo-radius: 1;
+ text-halo-fill: #fff;
+ text-spacing: 100;
+}
+
+#major-road-labels[highway=trunk][zoom>=14] name
+{
+ text-face-name: 'Arial Bold';
+ text-placement: line;
+ text-max-char-angle-delta: 30;
+ text-fill: #000;
+ text-halo-radius: 1;
+ text-halo-fill: #fff;
+ text-spacing: 100;
+}
+
+#major-road-labels[highway=primary][zoom>=14] name
+{
+ text-face-name: 'Arial Bold';
+ text-placement: line;
+ text-max-char-angle-delta: 30;
+ text-fill: #000;
+ text-halo-radius: 1;
+ text-halo-fill: #fff;
+ text-spacing: 100;
+}
+
+#minor-road-labels[zoom>=16] name
+{
+ text-face-name: 'Arial Regular';
+ text-placement: line;
+ text-max-char-angle-delta: 30;
+ text-fill: #000;
+ text-halo-radius: 1;
+ text-halo-fill: #fff;
+ text-spacing: 100;
+}
+
+
+#major-road-labels[zoom=12] name { text-dy: 7; }
+#major-road-labels[highway=trunk][zoom=12] name { text-size: 12; }
+#major-road-labels[highway=primary][zoom=12] name { text-size: 12; }
+
+#major-road-labels[zoom=13] name { text-dy: 8; }
+#major-road-labels[highway=trunk][zoom=13] name { text-size: 13; }
+#major-road-labels[highway=primary][zoom=13] name { text-size: 13; }
+
+#major-road-labels[highway=trunk][zoom=14] name { text-dy: 9; text-size: 14; }
+#major-road-labels[highway=primary][zoom=14] name { text-dy: 9; text-size: 14; }
+#major-road-labels[highway=secondary][zoom=14] name { text-dy: 7; text-size: 12; }
+
+#major-road-labels[highway=trunk][zoom=15] name { text-dy: 12; text-size: 15; }
+#major-road-labels[highway=primary][zoom=15] name { text-dy: 12; text-size: 15; }
+#major-road-labels[highway=secondary][zoom=15] name { text-dy: 11; text-size: 13; }
+#major-road-labels[highway=tertiary][zoom=15] name { text-dy: 11; text-size: 13; }
+
+#major-road-labels[highway=trunk][zoom=16] name { text-size: 14; }
+#major-road-labels[highway=primary][zoom=16] name { text-size: 14; }
+#major-road-labels[highway=secondary][zoom=16] name { text-size: 13; }
+#major-road-labels[highway=tertiary][zoom=16] name { text-size: 13; }
+#minor-road-labels[zoom=16] name { text-size: 9; }
+
+#major-road-labels[highway=trunk][zoom=17] name { text-size: 16; }
+#major-road-labels[highway=primary][zoom=17] name { text-size: 14; }
+#major-road-labels[highway=secondary][zoom=17] name { text-size: 14; }
+#major-road-labels[highway=tertiary][zoom=17] name { text-size: 12; }
+#minor-road-labels[zoom=17] name { text-size: 12; }
BIN  mapnik/shp/admin_0_countries_110m-points.dbf
Binary file not shown
1  mapnik/shp/admin_0_countries_110m-points.prj
@@ -0,0 +1 @@
+PROJCS["Google Maps Global Mercator",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Mercator_2SP"],PARAMETER["standard_parallel_1",0],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1]]
BIN  mapnik/shp/admin_0_countries_110m-points.shp
Binary file not shown
BIN  mapnik/shp/admin_0_countries_110m-points.shx
Binary file not shown
BIN  mapnik/shp/city-labels-z4.dbf
Binary file not shown
1  mapnik/shp/city-labels-z4.prj
@@ -0,0 +1 @@
+GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
BIN  mapnik/shp/city-labels-z4.shp
Binary file not shown
BIN  mapnik/shp/city-labels-z4.shx
Binary file not shown
BIN  mapnik/shp/city-labels-z5.dbf
Binary file not shown
1  mapnik/shp/city-labels-z5.prj
@@ -0,0 +1 @@
+GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
BIN  mapnik/shp/city-labels-z5.shp
Binary file not shown
BIN  mapnik/shp/city-labels-z5.shx
Binary file not shown
BIN  mapnik/shp/city-labels-z6.dbf
Binary file not shown
1  mapnik/shp/city-labels-z6.prj
@@ -0,0 +1 @@
+GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
BIN  mapnik/shp/city-labels-z6.shp
Binary file not shown
BIN  mapnik/shp/city-labels-z6.shx
Binary file not shown
BIN  mapnik/shp/city-labels-z7.dbf
Binary file not shown
1  mapnik/shp/city-labels-z7.prj
@@ -0,0 +1 @@
+GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
BIN  mapnik/shp/city-labels-z7.shp
Binary file not shown
BIN  mapnik/shp/city-labels-z7.shx
Binary file not shown
BIN  mapnik/shp/city-labels-z8.dbf
Binary file not shown
1  mapnik/shp/city-labels-z8.prj
@@ -0,0 +1 @@
+GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
BIN  mapnik/shp/city-labels-z8.shp
Binary file not shown
BIN  mapnik/shp/city-labels-z8.shx
Binary file not shown
BIN  mapnik/shp/city-points-z4.dbf
Binary file not shown
1  mapnik/shp/city-points-z4.prj
@@ -0,0 +1 @@
+GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
BIN  mapnik/shp/city-points-z4.shp
Binary file not shown
BIN  mapnik/shp/city-points-z4.shx
Binary file not shown
BIN  mapnik/shp/city-points-z5.dbf
Binary file not shown
1  mapnik/shp/city-points-z5.prj
@@ -0,0 +1 @@
+GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
BIN  mapnik/shp/city-points-z5.shp
Binary file not shown
BIN  mapnik/shp/city-points-z5.shx
Binary file not shown
BIN  mapnik/shp/city-points-z6.dbf
Binary file not shown
1  mapnik/shp/city-points-z6.prj
@@ -0,0 +1 @@
+GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
BIN  mapnik/shp/city-points-z6.shp
Binary file not shown
BIN  mapnik/shp/city-points-z6.shx
Binary file not shown
BIN  mapnik/shp/city-points-z7.dbf
Binary file not shown
1  mapnik/shp/city-points-z7.prj
@@ -0,0 +1 @@
+GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
BIN  mapnik/shp/city-points-z7.shp
Binary file not shown
BIN  mapnik/shp/city-points-z7.shx
Binary file not shown
BIN  mapnik/shp/city-points-z8.dbf
Binary file not shown
1  mapnik/shp/city-points-z8.prj
@@ -0,0 +1 @@
+GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
BIN  mapnik/shp/city-points-z8.shp
Binary file not shown
BIN  mapnik/shp/city-points-z8.shx
Binary file not shown
BIN  mapnik/shp/continents.dbf
Binary file not shown
1  mapnik/shp/continents.prj
@@ -0,0 +1 @@
+GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
BIN  mapnik/shp/continents.shp
Binary file not shown
BIN  mapnik/shp/continents.shx
Binary file not shown
BIN  mapnik/star.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,093 mapnik/style.mml
@@ -0,0 +1,1093 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE Map[
+ <!ENTITY epsg4326 "+proj=longlat +datum=WGS84">
+ <!ENTITY epsg900913 "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
+ <!ENTITY epsg900913_extent "-20037508,-20037508,20037508,20037508">
+ <!ENTITY nev_host "localhost">
+ <!ENTITY nev_name "naturalearth1.1_merc">
+ <!ENTITY nev_user "nev">
+ <!ENTITY osm_host "localhost">
+ <!ENTITY osm_port "5432">
+ <!ENTITY osm_name "planet_osm">
+ <!ENTITY osm_user "osm">
+ <!ENTITY osm_pass "">
+]>
+<Map srs="&epsg900913;">
+ <Stylesheet src="naturalearth-lowzooms.mss"/>
+ <Stylesheet src="osm-midzooms.mss"/>
+ <Stylesheet src="area-colors.mss"/>
+ <Stylesheet src="line-colors.mss"/>
+ <Stylesheet src="line-widths.mss"/>
+ <Stylesheet src="road-labels.mss"/>
+
+ <Layer class="shore" id="land-shapes-110m" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&nev_host;</Parameter>
+ <Parameter name="dbname">&nev_name;</Parameter>
+ <Parameter name="user">&nev_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">land_110m</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer class="shore" id="country-shapes-110m" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&nev_host;</Parameter>
+ <Parameter name="dbname">&nev_name;</Parameter>
+ <Parameter name="user">&nev_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">admin_0_countries_110m</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer class="shore" id="country-shapes-50m" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&nev_host;</Parameter>
+ <Parameter name="dbname">&nev_name;</Parameter>
+ <Parameter name="user">&nev_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">admin_0_countries_50m</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer class="shore" id="country-shapes-10m" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&nev_host;</Parameter>
+ <Parameter name="dbname">&nev_name;</Parameter>
+ <Parameter name="user">&nev_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">admin_0_countries_10m</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer class="shore" id="processed-coast-outline" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">coastline</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer class="shore" id="processed-coast-inline" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">coastline</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+
+ <Layer id="admin1-lines-110m" status="off" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&nev_host;</Parameter>
+ <Parameter name="dbname">&nev_name;</Parameter>
+ <Parameter name="user">&nev_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">admin_1_states_provinces_lines_110m</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="admin1-lines-50m" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&nev_host;</Parameter>
+ <Parameter name="dbname">&nev_name;</Parameter>
+ <Parameter name="user">&nev_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">admin_1_states_provinces_lines_50m</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="admin1-lines-10m" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&nev_host;</Parameter>
+ <Parameter name="dbname">&nev_name;</Parameter>
+ <Parameter name="user">&nev_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">admin_1_states_provinces_lines_10m</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+
+ <Layer class="shore" id="lakes-110m" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&nev_host;</Parameter>
+ <Parameter name="dbname">&nev_name;</Parameter>
+ <Parameter name="user">&nev_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">lakes_110m</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer class="shore" id="lakes-50m" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&nev_host;</Parameter>
+ <Parameter name="dbname">&nev_name;</Parameter>
+ <Parameter name="user">&nev_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">lakes_50m</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer class="shore" id="lakes-10m" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&nev_host;</Parameter>
+ <Parameter name="dbname">&nev_name;</Parameter>
+ <Parameter name="user">&nev_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">lakes_10m</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+
+ <Layer id="motorways-z6" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="geometry_field">way_zoom6</Parameter>
+ <Parameter name="table">planet_osm_motorways</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="motorways-z7" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="geometry_field">way_zoom7</Parameter>
+ <Parameter name="table">planet_osm_motorways</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="motorways-z8" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="geometry_field">way_zoom8</Parameter>
+ <Parameter name="table">planet_osm_motorways</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="motorways-z9" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="geometry_field">way_zoom9</Parameter>
+ <Parameter name="table">planet_osm_motorways</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+
+ <Layer id="city-points-z4" class="city-points" srs="&epsg4326;">
+ <Datasource>
+ <Parameter name="type">shape</Parameter>
+ <Parameter name="file">shp/city-points-z4</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="city-labels-z4" class="city-labels" srs="&epsg4326;">
+ <Datasource>
+ <Parameter name="type">shape</Parameter>
+ <Parameter name="file">shp/city-labels-z4</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="city-points-z5" class="city-points" srs="&epsg4326;">
+ <Datasource>
+ <Parameter name="type">shape</Parameter>
+ <Parameter name="file">shp/city-points-z5</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="city-labels-z5" class="city-labels" srs="&epsg4326;">
+ <Datasource>
+ <Parameter name="type">shape</Parameter>
+ <Parameter name="file">shp/city-labels-z5</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="city-points-z6" class="city-points" srs="&epsg4326;">
+ <Datasource>
+ <Parameter name="type">shape</Parameter>
+ <Parameter name="file">shp/city-points-z6</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="city-labels-z6" class="city-labels" srs="&epsg4326;">
+ <Datasource>
+ <Parameter name="type">shape</Parameter>
+ <Parameter name="file">shp/city-labels-z6</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="city-points-z7" class="city-points" srs="&epsg4326;">
+ <Datasource>
+ <Parameter name="type">shape</Parameter>
+ <Parameter name="file">shp/city-points-z7</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="city-labels-z7" class="city-labels" srs="&epsg4326;">
+ <Datasource>
+ <Parameter name="type">shape</Parameter>
+ <Parameter name="file">shp/city-labels-z7</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="city-points-z8" class="city-points" srs="&epsg4326;">
+ <Datasource>
+ <Parameter name="type">shape</Parameter>
+ <Parameter name="file">shp/city-points-z8</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="city-labels-z8" class="city-labels" srs="&epsg4326;">
+ <Datasource>
+ <Parameter name="type">shape</Parameter>
+ <Parameter name="file">shp/city-labels-z8</Parameter>
+ </Datasource>
+ </Layer>
+
+ <Layer id="admin1-labels-50m" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&nev_host;</Parameter>
+ <Parameter name="dbname">&nev_name;</Parameter>
+ <Parameter name="user">&nev_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">(SELECT *, SUBSTRING(hasc FROM 4) AS abbr FROM admin_1_states_provinces_50m) AS admin_1_states_provinces</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="admin1-labels-10m" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&nev_host;</Parameter>
+ <Parameter name="dbname">&nev_name;</Parameter>
+ <Parameter name="user">&nev_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">admin_1_states_provinces_10m</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+
+ <Layer id="country-labels-110m" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">shape</Parameter>
+ <Parameter name="file">shp/admin_0_countries_110m-points</Parameter>
+ </Datasource>
+ </Layer>
+
+ <Layer id="marine-labels-110m" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&nev_host;</Parameter>
+ <Parameter name="dbname">&nev_name;</Parameter>
+ <Parameter name="user">&nev_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">(SELECT * FROM geography_marine_polys_110m ORDER BY ScaleRank ASC) AS marine_polys</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="marine-labels-50m" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&nev_host;</Parameter>
+ <Parameter name="dbname">&nev_name;</Parameter>
+ <Parameter name="user">&nev_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">(SELECT * FROM geography_marine_polys_50m ORDER BY ScaleRank ASC) AS marine_polys</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="marine-labels-10m" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&nev_host;</Parameter>
+ <Parameter name="dbname">&nev_name;</Parameter>
+ <Parameter name="user">&nev_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">(SELECT * FROM geography_marine_polys_10m ORDER BY ScaleRank ASC) AS marine_polys</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+
+ <Layer id="continent-labels" srs="&epsg4326;">
+ <Datasource>
+ <Parameter name="type">shape</Parameter>
+ <Parameter name="file">shp/continents</Parameter>
+ </Datasource>
+ </Layer>
+
+ <Layer id="processed-coast-background" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">coastline</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+
+ <Layer id="civic-areas" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="port">&osm_port;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password">&osm_pass;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+
+ <Parameter name="table"><![CDATA[
+ (SELECT way,
+ name
+ FROM planet_osm_polygon
+ WHERE amenity IN ('school', 'college', 'university', 'bus_station',
+ 'ferry_terminal', 'hospital', 'kindergarten',
+ 'place_of_worship', 'public_building', 'townhall')
+ ORDER BY z_order ASC, way_area DESC
+
+ ) AS civic]]></Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="green-areas" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="port">&osm_port;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password">&osm_pass;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+
+ <Parameter name="table"><![CDATA[
+ (SELECT way,
+ name,
+ (CASE WHEN leisure IN ('park', 'water_park', 'marina',
+ 'nature_reserve', 'playground',
+ 'garden', 'common') THEN 'park'
+ WHEN amenity IN ('graveyard') THEN 'cemetery'
+ WHEN landuse IN ('cemetery') THEN 'cemetery'
+ WHEN leisure IN ('sports_centre', 'golf_course',
+ 'stadium', 'track', 'pitch') THEN 'sport'
+ WHEN landuse IN ('recreation_ground') THEN 'sport'
+ WHEN landuse IN ('forest', 'wood') THEN 'forest'
+ ELSE '' END) AS kind
+ FROM planet_osm_polygon
+ WHERE leisure IN ('park', 'water_park', 'marina', 'nature_reserve',
+ 'playground', 'garden', 'common')
+ OR amenity IN ('graveyard')
+ OR landuse IN ('cemetery')
+ OR leisure IN ('sports_centre', 'golf_course', 'stadium',
+ 'track', 'pitch')
+ OR landuse IN ('recreation_ground')
+ OR landuse IN ('forest', 'wood')
+ ORDER BY z_order ASC, way_area DESC
+
+ ) AS greens]]></Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="parking-areas" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="port">&osm_port;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password">&osm_pass;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+
+ <Parameter name="table"><![CDATA[
+ (SELECT way,
+ name
+ FROM planet_osm_polygon
+ WHERE amenity IN ('parking')
+ ORDER BY z_order ASC, way_area DESC
+
+ ) AS parking]]></Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="water-bodies" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="port">&osm_port;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password">&osm_pass;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+
+ <Parameter name="table"><![CDATA[
+ (SELECT way,
+ name
+ FROM planet_osm_polygon
+ WHERE "natural" IN ('water', 'bay')
+ OR waterway IN ('riverbank')
+ ORDER BY z_order ASC, way_area DESC
+
+ ) AS water]]></Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="building-areas" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="port">&osm_port;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password">&osm_pass;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+
+ <Parameter name="table"><![CDATA[
+ (SELECT way,
+ name
+ FROM planet_osm_polygon
+ WHERE building IS NOT NULL
+ ORDER BY z_order ASC, way_area DESC
+
+ ) AS building]]></Parameter>
+ </Datasource>
+ </Layer>
+
+ <Layer id="processed-coast-shoreline" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password"></Parameter>
+ <Parameter name="table">coastline</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+ </Datasource>
+ </Layer>
+ <Layer id="water-body-shorelines" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="port">&osm_port;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password">&osm_pass;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+
+ <Parameter name="table"><![CDATA[
+ (SELECT way,
+ name
+ FROM planet_osm_polygon
+ WHERE "natural" IN ('water', 'bay')
+ OR waterway IN ('riverbank')
+ ORDER BY z_order ASC, way_area DESC
+
+ ) AS water]]></Parameter>
+ </Datasource>
+ </Layer>
+
+ <!--
+ Low-zoom lines, used at zoom=10 and below where
+ only motorways and major roads should appear.
+ -->
+ <Layer class="lo-lines lo-sublines" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="port">&osm_port;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password">&osm_pass;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+
+ <Parameter name="table"><![CDATA[
+ (SELECT way,
+ highway,
+ railway,
+ (CASE WHEN highway IN ('motorway') THEN 0
+ WHEN highway IN ('motorway_link') THEN 1
+ WHEN highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway') THEN 2
+ WHEN railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail') THEN 3
+ WHEN highway IN ('trunk', 'trunk_link', 'primary', 'primary_link') THEN 4
+ WHEN highway = 'secondary' THEN 5
+ WHEN highway = 'tertiary' THEN 6
+ ELSE 9 END) AS priority,
+ (CASE WHEN highway IN ('secondary', 'trunk', 'trunk_link', 'primary', 'primary_link', 'motorway', 'motorway_link') THEN 'major_road'
+ WHEN highway IN ('residential', 'unclassified', 'service', 'minor', 'road', 'tertiary') THEN 'minor_road'
+ WHEN railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail') THEN 'rail'
+ WHEN highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway') THEN 'path'
+ ELSE '' END) AS kind,
+ (CASE WHEN tunnel IN ('yes', 'true') THEN 'yes'
+ ELSE 'no' END) AS is_tunnel,
+ (CASE WHEN bridge IN ('yes', 'true') THEN 'yes'
+ ELSE 'no' END) AS is_bridge
+
+ FROM planet_osm_line
+
+ WHERE railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail')
+ OR highway IN ('secondary', 'trunk', 'trunk_link', 'primary', 'primary_link', 'motorway', 'motorway_link')
+
+ ORDER BY priority DESC)
+
+ AS lines]]></Parameter>
+ </Datasource>
+ </Layer>
+ <Layer class="lo-lines lo-outlines" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="port">&osm_port;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password">&osm_pass;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+
+ <Parameter name="table"><![CDATA[
+ (SELECT way,
+ highway,
+ railway,
+ (CASE WHEN highway IN ('motorway') THEN 0
+ WHEN highway IN ('motorway_link') THEN 1
+ WHEN highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway') THEN 2
+ WHEN railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail') THEN 3
+ WHEN highway IN ('trunk', 'trunk_link', 'primary', 'primary_link') THEN 4
+ WHEN highway = 'secondary' THEN 5
+ WHEN highway = 'tertiary' THEN 6
+ ELSE 9 END) AS priority,
+ (CASE WHEN highway IN ('secondary', 'trunk', 'trunk_link', 'primary', 'primary_link', 'motorway', 'motorway_link') THEN 'major_road'
+ WHEN highway IN ('residential', 'unclassified', 'service', 'minor', 'road', 'tertiary') THEN 'minor_road'
+ WHEN railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail') THEN 'rail'
+ WHEN highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway') THEN 'path'
+ ELSE '' END) AS kind,
+ (CASE WHEN tunnel IN ('yes', 'true') THEN 'yes'
+ ELSE 'no' END) AS is_tunnel,
+ (CASE WHEN bridge IN ('yes', 'true') THEN 'yes'
+ ELSE 'no' END) AS is_bridge
+
+ FROM planet_osm_line
+
+ WHERE railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail')
+ OR highway IN ('secondary', 'trunk', 'trunk_link', 'primary', 'primary_link', 'motorway', 'motorway_link')
+
+ ORDER BY priority DESC)
+
+ AS lines]]></Parameter>
+ </Datasource>
+ </Layer>
+ <Layer class="lo-lines lo-inlines" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="port">&osm_port;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password">&osm_pass;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+
+ <Parameter name="table"><![CDATA[
+ (SELECT way,
+ highway,
+ railway,
+ (CASE WHEN highway IN ('motorway') THEN 0
+ WHEN highway IN ('motorway_link') THEN 1
+ WHEN highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway') THEN 2
+ WHEN railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail') THEN 3
+ WHEN highway IN ('trunk', 'trunk_link', 'primary', 'primary_link') THEN 4
+ WHEN highway = 'secondary' THEN 5
+ WHEN highway = 'tertiary' THEN 6
+ ELSE 9 END) AS priority,
+ (CASE WHEN highway IN ('secondary', 'trunk', 'trunk_link', 'primary', 'primary_link', 'motorway', 'motorway_link') THEN 'major_road'
+ WHEN highway IN ('residential', 'unclassified', 'service', 'minor', 'road', 'tertiary') THEN 'minor_road'
+ WHEN railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail') THEN 'rail'
+ WHEN highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway') THEN 'path'
+ ELSE '' END) AS kind,
+ (CASE WHEN tunnel IN ('yes', 'true') THEN 'yes'
+ ELSE 'no' END) AS is_tunnel,
+ (CASE WHEN bridge IN ('yes', 'true') THEN 'yes'
+ ELSE 'no' END) AS is_bridge
+
+ FROM planet_osm_line
+
+ WHERE railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail')
+ OR highway IN ('secondary', 'trunk', 'trunk_link', 'primary', 'primary_link', 'motorway', 'motorway_link')
+
+ ORDER BY priority DESC)
+
+ AS lines]]></Parameter>
+ </Datasource>
+ </Layer>
+
+
+ <!--
+ Medium-zoom lines, used at zoom=11-13 where all
+ roads should appear but no bridge casings are used.
+ -->
+ <Layer class="med-lines med-sublines" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="port">&osm_port;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password">&osm_pass;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+
+ <Parameter name="table"><![CDATA[
+ (SELECT way,
+ highway,
+ railway,
+ (CASE WHEN highway IN ('motorway', 'motorway_link') THEN 0
+ WHEN highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway') THEN 1
+ WHEN railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail') THEN 2
+ WHEN highway IN ('trunk', 'trunk_link', 'primary', 'primary_link') THEN 3
+ WHEN highway = 'secondary' THEN 4
+ WHEN highway = 'tertiary' THEN 5
+ ELSE 9 END) AS priority,
+ (CASE WHEN highway IN ('secondary', 'trunk', 'trunk_link', 'primary', 'primary_link', 'motorway', 'motorway_link') THEN 'major_road'
+ WHEN highway IN ('residential', 'unclassified', 'service', 'minor', 'road', 'tertiary') THEN 'minor_road'
+ WHEN railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail') THEN 'rail'
+ WHEN highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway') THEN 'path'
+ ELSE '' END) AS kind,
+ (CASE WHEN tunnel IN ('yes', 'true') THEN 'yes'
+ ELSE 'no' END) AS is_tunnel,
+ (CASE WHEN bridge IN ('yes', 'true') THEN 'yes'
+ ELSE 'no' END) AS is_bridge
+
+ FROM planet_osm_line
+
+ WHERE railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail')
+ OR highway IN ('secondary', 'trunk', 'trunk_link', 'primary', 'primary_link', 'motorway', 'motorway_link')
+ OR highway IN ('residential', 'unclassified', 'service', 'minor', 'road', 'tertiary')
+ OR highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway')
+
+ ORDER BY priority DESC)
+
+ AS collected_lines]]></Parameter>
+ </Datasource>
+ </Layer>
+ <Layer class="med-lines med-outlines" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="port">&osm_port;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password">&osm_pass;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+
+ <Parameter name="table"><![CDATA[
+ (SELECT way,
+ highway,
+ railway,
+ (CASE WHEN highway IN ('motorway', 'motorway_link') THEN 0
+ WHEN highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway') THEN 1
+ WHEN railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail') THEN 2
+ WHEN highway IN ('trunk', 'trunk_link', 'primary', 'primary_link') THEN 3
+ WHEN highway = 'secondary' THEN 4
+ WHEN highway = 'tertiary' THEN 5
+ ELSE 9 END) AS priority,
+ (CASE WHEN highway IN ('secondary', 'trunk', 'trunk_link', 'primary', 'primary_link', 'motorway', 'motorway_link') THEN 'major_road'
+ WHEN highway IN ('residential', 'unclassified', 'service', 'minor', 'road', 'tertiary') THEN 'minor_road'
+ WHEN railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail') THEN 'rail'
+ WHEN highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway') THEN 'path'
+ ELSE '' END) AS kind,
+ (CASE WHEN tunnel IN ('yes', 'true') THEN 'yes'
+ ELSE 'no' END) AS is_tunnel,
+ (CASE WHEN bridge IN ('yes', 'true') THEN 'yes'
+ ELSE 'no' END) AS is_bridge
+
+ FROM planet_osm_line
+
+ WHERE railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail')
+ OR highway IN ('secondary', 'trunk', 'trunk_link', 'primary', 'primary_link', 'motorway', 'motorway_link')
+ OR highway IN ('residential', 'unclassified', 'service', 'minor', 'road', 'tertiary')
+ OR highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway')
+
+ ORDER BY priority DESC)
+
+ AS collected_lines]]></Parameter>
+ </Datasource>
+ </Layer>
+ <Layer class="med-lines med-inlines" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="port">&osm_port;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password">&osm_pass;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+
+ <Parameter name="table"><![CDATA[
+ (SELECT way,
+ highway,
+ railway,
+ (CASE WHEN highway IN ('motorway', 'motorway_link') THEN 0
+ WHEN highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway') THEN 1
+ WHEN railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail') THEN 2
+ WHEN highway IN ('trunk', 'trunk_link', 'primary', 'primary_link') THEN 3
+ WHEN highway = 'secondary' THEN 4
+ WHEN highway = 'tertiary' THEN 5
+ ELSE 9 END) AS priority,
+ (CASE WHEN highway IN ('secondary', 'trunk', 'trunk_link', 'primary', 'primary_link', 'motorway', 'motorway_link') THEN 'major_road'
+ WHEN highway IN ('residential', 'unclassified', 'service', 'minor', 'road', 'tertiary') THEN 'minor_road'
+ WHEN railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail') THEN 'rail'
+ WHEN highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway') THEN 'path'
+ ELSE '' END) AS kind,
+ (CASE WHEN tunnel IN ('yes', 'true') THEN 'yes'
+ ELSE 'no' END) AS is_tunnel,
+ (CASE WHEN bridge IN ('yes', 'true') THEN 'yes'
+ ELSE 'no' END) AS is_bridge
+
+ FROM planet_osm_line
+
+ WHERE railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail')
+ OR highway IN ('secondary', 'trunk', 'trunk_link', 'primary', 'primary_link', 'motorway', 'motorway_link')
+ OR highway IN ('residential', 'unclassified', 'service', 'minor', 'road', 'tertiary')
+ OR highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway')
+
+ ORDER BY priority DESC)
+
+ AS collected_lines]]></Parameter>
+ </Datasource>
+ </Layer>
+
+
+ <!--
+ High-zoom lines, used at zoom=14+ where all roads should appear
+ and bridge casings require the use of expensive multigeometries.
+
+ These queries makes use of the new Mapnik "!BBOX!" placeholder, described here:
+ http://trac.mapnik.org/ticket/415
+ http://trac.mapnik.org/changeset/1290
+ -->
+ <Layer class="hi-lines hi-sublines" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="port">&osm_port;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password">&osm_pass;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+
+ <Parameter name="table"><![CDATA[
+ (SELECT ST_Collect(way) AS way,
+ highway,
+ railway,
+ (CASE WHEN layer ~ E'^-?[[:digit:]]+(\.[[:digit:]]+)?$' THEN CAST (layer AS FLOAT)
+ ELSE 0
+ END) AS coalesced_layer,
+ (CASE WHEN highway IN ('motorway', 'motorway_link') THEN 0
+ WHEN highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway') THEN 1
+ WHEN railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail') THEN 2
+ WHEN highway IN ('trunk', 'trunk_link', 'primary', 'primary_link') THEN 3
+ WHEN highway = 'secondary' THEN 4
+ WHEN highway = 'tertiary' THEN 5
+ ELSE 9 END) AS priority,
+ (CASE WHEN highway IN ('secondary', 'trunk', 'trunk_link', 'primary', 'primary_link', 'motorway', 'motorway_link') THEN 'major_road'
+ WHEN highway IN ('residential', 'unclassified', 'service', 'minor', 'road', 'tertiary') THEN 'minor_road'
+ WHEN railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail') THEN 'rail'
+ WHEN highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway') THEN 'path'
+ ELSE '' END) AS kind,
+ (CASE WHEN tunnel IN ('yes', 'true') THEN 'yes'
+ ELSE 'no' END) AS is_tunnel,
+ (CASE WHEN bridge IN ('yes', 'true') THEN 'yes'
+ ELSE 'no' END) AS is_bridge
+
+ FROM (SELECT * FROM planet_osm_line WHERE ST_Intersects(way, !bbox!)) AS bounded_lines
+
+ WHERE railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail')
+ OR highway IN ('secondary', 'trunk', 'trunk_link', 'primary', 'primary_link', 'motorway', 'motorway_link')
+ OR highway IN ('residential', 'unclassified', 'service', 'minor', 'road', 'tertiary')
+ OR highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway')
+
+ GROUP BY highway, railway, coalesced_layer, priority, kind, is_tunnel, is_bridge
+ ORDER BY coalesced_layer ASC, priority DESC)
+
+ AS collected_lines]]></Parameter>
+ </Datasource>
+ </Layer>
+ <Layer class="hi-lines hi-outlines" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="port">&osm_port;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password">&osm_pass;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+
+ <Parameter name="table"><![CDATA[
+ (SELECT ST_Collect(way) AS way,
+ highway,
+ railway,
+ (CASE WHEN layer ~ E'^-?[[:digit:]]+(\.[[:digit:]]+)?$' THEN CAST (layer AS FLOAT)
+ ELSE 0
+ END) AS coalesced_layer,
+ (CASE WHEN highway IN ('motorway', 'motorway_link') THEN 0
+ WHEN highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway') THEN 1
+ WHEN railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail') THEN 2
+ WHEN highway IN ('trunk', 'trunk_link', 'primary', 'primary_link') THEN 3
+ WHEN highway = 'secondary' THEN 4
+ WHEN highway = 'tertiary' THEN 5
+ ELSE 9 END) AS priority,
+ (CASE WHEN highway IN ('secondary', 'trunk', 'trunk_link', 'primary', 'primary_link', 'motorway', 'motorway_link') THEN 'major_road'
+ WHEN highway IN ('residential', 'unclassified', 'service', 'minor', 'road', 'tertiary') THEN 'minor_road'
+ WHEN railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail') THEN 'rail'
+ WHEN highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway') THEN 'path'
+ ELSE '' END) AS kind,
+ (CASE WHEN tunnel IN ('yes', 'true') THEN 'yes'
+ ELSE 'no' END) AS is_tunnel,
+ (CASE WHEN bridge IN ('yes', 'true') THEN 'yes'
+ ELSE 'no' END) AS is_bridge
+
+ FROM (SELECT * FROM planet_osm_line WHERE ST_Intersects(way, !bbox!)) AS bounded_lines
+
+ WHERE railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail')
+ OR highway IN ('secondary', 'trunk', 'trunk_link', 'primary', 'primary_link', 'motorway', 'motorway_link')
+ OR highway IN ('residential', 'unclassified', 'service', 'minor', 'road', 'tertiary')
+ OR highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway')
+
+ GROUP BY highway, railway, coalesced_layer, priority, kind, is_tunnel, is_bridge
+ ORDER BY coalesced_layer ASC, priority DESC)
+
+ AS collected_lines]]></Parameter>
+ </Datasource>
+ </Layer>
+ <Layer class="hi-lines hi-inlines" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="port">&osm_port;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password">&osm_pass;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+
+ <Parameter name="table"><![CDATA[
+ (SELECT ST_Collect(way) AS way,
+ highway,
+ railway,
+ (CASE WHEN layer ~ E'^-?[[:digit:]]+(\.[[:digit:]]+)?$' THEN CAST (layer AS FLOAT)
+ ELSE 0
+ END) AS coalesced_layer,
+ (CASE WHEN highway IN ('motorway', 'motorway_link') THEN 0
+ WHEN highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway') THEN 1
+ WHEN railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail') THEN 2
+ WHEN highway IN ('trunk', 'trunk_link', 'primary', 'primary_link') THEN 3
+ WHEN highway = 'secondary' THEN 4
+ WHEN highway = 'tertiary' THEN 5
+ ELSE 9 END) AS priority,
+ (CASE WHEN highway IN ('secondary', 'trunk', 'trunk_link', 'primary', 'primary_link', 'motorway', 'motorway_link') THEN 'major_road'
+ WHEN highway IN ('residential', 'unclassified', 'service', 'minor', 'road', 'tertiary') THEN 'minor_road'
+ WHEN railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail') THEN 'rail'
+ WHEN highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway') THEN 'path'
+ ELSE '' END) AS kind,
+ (CASE WHEN tunnel IN ('yes', 'true') THEN 'yes'
+ ELSE 'no' END) AS is_tunnel,
+ (CASE WHEN bridge IN ('yes', 'true') THEN 'yes'
+ ELSE 'no' END) AS is_bridge
+
+ FROM (SELECT * FROM planet_osm_line WHERE ST_Intersects(way, !bbox!)) AS bounded_lines
+
+ WHERE railway IN ('rail', 'spur', 'subway', 'light_rail', 'tram', 'abandoned', 'disused', 'monorail')
+ OR highway IN ('secondary', 'trunk', 'trunk_link', 'primary', 'primary_link', 'motorway', 'motorway_link')
+ OR highway IN ('residential', 'unclassified', 'service', 'minor', 'road', 'tertiary')
+ OR highway IN ('footpath', 'track', 'footway', 'steps', 'pedestrian', 'path', 'cycleway')
+
+ GROUP BY highway, railway, coalesced_layer, priority, kind, is_tunnel, is_bridge
+ ORDER BY coalesced_layer ASC, priority DESC)
+
+ AS collected_lines]]></Parameter>
+ </Datasource>
+ </Layer>
+
+ <!--
+ Labels for towns and so forth
+ -->
+ <Layer id="place-points" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="port">&osm_port;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password">&osm_pass;</Parameter>
+ <Parameter name="dbname">&osm_name;</Parameter>
+ <Parameter name="estimate_extent">false</Parameter>
+ <Parameter name="extent">&epsg900913_extent;</Parameter>
+
+ <Parameter name="table"><![CDATA[
+ (SELECT *,
+ REGEXP_REPLACE(UPPER(name), '(.)', E'\\1\xC2\xA0\xC2\xA0', 'g') AS name_stretched,
+ COALESCE(z_order, 0) AS coalesced_z_order,
+ (CASE WHEN place = 'city' THEN 0
+ WHEN place = 'town' THEN 1
+ WHEN place = 'village' THEN 2
+ ELSE 3 END) AS priority
+ FROM planet_osm_point
+ WHERE place IN ('city', 'town', 'hamlet', 'village')
+ ORDER BY priority ASC, coalesced_z_order DESC
+ ) AS places]]></Parameter>
+ </Datasource>
+ </Layer>
+
+ <!--
+ Labels for motorways and major roads.
+ -->
+ <Layer id="major-road-labels" srs="&epsg900913;">
+ <Datasource>
+ <Parameter name="type">postgis</Parameter>
+ <Parameter name="host">&osm_host;</Parameter>
+ <Parameter name="port">&osm_port;</Parameter>
+ <Parameter name="user">&osm_user;</Parameter>
+ <Parameter name="password">&osm_pass;</Parameter>