Permalink
Browse files

Add symbols, and start on the landcover layers.

  • Loading branch information...
0 parents commit f5f8a8238d82ea29cd3b93ab0636300723f8cfdb @gravitystorm committed Nov 15, 2012
Showing with 443 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +11 −0 README.md
  3. +353 −0 landcover.mss
  4. +68 −0 project.mml
  5. +9 −0 style.mss
  6. BIN symbols/aerodrome.p.16.png
  7. BIN symbols/aerodrome.png
  8. BIN symbols/aiga_parking1.png
  9. BIN symbols/airport.p.16.png
  10. BIN symbols/airport.png
  11. BIN symbols/allotments.png
  12. BIN symbols/alpinehut.p.16.png
  13. BIN symbols/amenity_court.p.20.png
  14. BIN symbols/amenity_prison.p.20.png
  15. BIN symbols/arrow.png
  16. BIN symbols/arrow_back.png
  17. BIN symbols/atm.png
  18. BIN symbols/atm2.p.16.png
  19. BIN symbols/bandb.p.20.png
  20. BIN symbols/bank2.p.16.png
  21. BIN symbols/bar.p.20.png
  22. BIN symbols/beach.png
  23. BIN symbols/biergarten.p.16.png
  24. BIN symbols/bollard.png
  25. BIN symbols/bus_station.n.16.png
  26. BIN symbols/bus_stop.p.12.png
  27. BIN symbols/bus_stop.png
  28. BIN symbols/bus_stop_small.png
  29. BIN symbols/cable_car.png
  30. BIN symbols/cafe.p.16.png
  31. BIN symbols/camping.n.16.png
  32. BIN symbols/car_share.p.16.png
  33. BIN symbols/caravan_park.p.24.png
  34. BIN symbols/cemetery_jewish.18.png
  35. BIN symbols/chair_lift.png
  36. BIN symbols/chalet.p.16.png
  37. BIN symbols/christian3.p.14.png
  38. BIN symbols/cinema.p.24.png
  39. BIN symbols/cliff.png
  40. BIN symbols/cliff2.png
  41. BIN symbols/communications.p.20.png
  42. BIN symbols/danger.png
  43. BIN symbols/department_store.p.16.png
  44. BIN symbols/embassy.png
  45. BIN symbols/fast_food.png
  46. BIN symbols/firestation.p.16.png
  47. BIN symbols/florist.p.16.png
  48. BIN symbols/food_bar.p.16.png
  49. BIN symbols/food_drinkingtap.p.20.png
  50. BIN symbols/forest.png
  51. BIN symbols/fuel.p.16.png
  52. BIN symbols/gate.png
  53. BIN symbols/gate2.png
  54. BIN symbols/glacier.png
  55. BIN symbols/glacier2.png
  56. BIN symbols/grave_yard.png
  57. BIN symbols/grave_yard_generic.png
  58. BIN symbols/guest_house.p.16.png
  59. BIN symbols/halt.png
  60. BIN symbols/helipad.p.16.png
  61. BIN symbols/hospital.p.16.png
  62. BIN symbols/hospital.png
  63. BIN symbols/hostel.p.20.png
  64. BIN symbols/hotel2.p.20.png
  65. BIN symbols/information.p.16.png
  66. BIN symbols/islamic3.p.16.png
  67. BIN symbols/jewish3.p.16.png
  68. BIN symbols/landfill.png
  69. BIN symbols/level_crossing.png
  70. BIN symbols/level_crossing2.png
  71. BIN symbols/library.p.20.png
  72. BIN symbols/liftgate.png
  73. BIN symbols/lighthouse.p.20.png
  74. BIN symbols/lock_gate.png
  75. BIN symbols/london-tube-24.png
  76. BIN symbols/marsh.png
  77. BIN symbols/memorial.png
  78. BIN symbols/military_red.png
  79. BIN symbols/military_red_hz2.png
  80. BIN symbols/military_restraint2.png
  81. BIN symbols/mini_round.png
  82. BIN symbols/mosque.png
  83. BIN symbols/mot_shield1.png
  84. BIN symbols/mot_shield2.png
  85. BIN symbols/mot_shield3.png
  86. BIN symbols/mot_shield4.png
  87. BIN symbols/mot_shield5.png
  88. BIN symbols/mot_shield6.png
  89. BIN symbols/mot_shield7.png
  90. BIN symbols/mot_shield8.png
  91. BIN symbols/motel.p.20.png
  92. BIN symbols/motorway_shield1.png
  93. BIN symbols/motorway_shield2.png
  94. BIN symbols/motorway_shield3.png
  95. BIN symbols/motorway_shield4.png
  96. BIN symbols/motorway_shield5.png
  97. BIN symbols/motorway_shield6.png
  98. BIN symbols/mud.png
  99. BIN symbols/museum.p.16.png
  100. BIN symbols/nature_reserve.png
  101. BIN symbols/nature_reserve2.png
  102. BIN symbols/nature_reserve2T.png
  103. BIN symbols/nature_reserve5.png
  104. BIN symbols/nature_reserve6.png
  105. BIN symbols/nature_reserveT.png
  106. BIN symbols/orchard.png
  107. BIN symbols/parking.p.16.png
  108. BIN symbols/parking.png
  109. BIN symbols/parking_private.p.16.png
  110. BIN symbols/peak.png
  111. BIN symbols/pharmacy.p.16.png
  112. BIN symbols/picnic.p.16.png
  113. BIN symbols/pint.png
  114. BIN symbols/place_of_worship.png
  115. BIN symbols/place_of_worship3.p.16.png
  116. BIN symbols/place_of_worship3.png
  117. BIN symbols/playground.p.20.png
  118. BIN symbols/poi_cave.p.16.png
  119. BIN symbols/police.p.16.png
  120. BIN symbols/post_box.p.16.png
  121. BIN symbols/post_box.png
  122. BIN symbols/post_office.p.16.png
  123. BIN symbols/post_office.png
  124. BIN symbols/postoffice.png
  125. BIN symbols/power_line.png
  126. BIN symbols/power_pole.png
  127. BIN symbols/power_tower.png
  128. BIN symbols/power_tower_3x3.png
  129. BIN symbols/power_tower_5x5.png
  130. BIN symbols/power_wind.png
  131. BIN symbols/pri_shield1.png
  132. BIN symbols/pri_shield2.png
  133. BIN symbols/pri_shield3.png
  134. BIN symbols/pri_shield4.png
  135. BIN symbols/pri_shield5.png
  136. BIN symbols/pri_shield6.png
  137. BIN symbols/pri_shield7.png
  138. BIN symbols/pri_shield8.png
  139. BIN symbols/primary_shield1.png
  140. BIN symbols/primary_shield2.png
  141. BIN symbols/primary_shield3.png
  142. BIN symbols/primary_shield4.png
  143. BIN symbols/primary_shield5.png
  144. BIN symbols/primary_shield6.png
  145. BIN symbols/primary_shield7.png
  146. BIN symbols/primary_shield8.png
  147. BIN symbols/pub.p.16.png
  148. BIN symbols/pub.png
  149. BIN symbols/quarry.png
  150. BIN symbols/quarry2.png
  151. BIN symbols/recycle.png
  152. BIN symbols/recycling.p.16.png
  153. BIN symbols/recycling.png
  154. BIN symbols/rental_bicycle.p.20.png
  155. BIN symbols/restaurant.p.16.png
  156. BIN symbols/school.png
  157. BIN symbols/scrub.png
  158. BIN symbols/sec_shield1.png
  159. BIN symbols/sec_shield2.png
  160. BIN symbols/sec_shield3.png
  161. BIN symbols/sec_shield4.png
  162. BIN symbols/sec_shield5.png
  163. BIN symbols/sec_shield6.png
  164. BIN symbols/sec_shield7.png
  165. BIN symbols/sec_shield8.png
  166. BIN symbols/secondary_shield1.png
  167. BIN symbols/secondary_shield2.png
  168. BIN symbols/secondary_shield3.png
  169. BIN symbols/secondary_shield4.png
  170. BIN symbols/secondary_shield5.png
  171. BIN symbols/secondary_shield6.png
  172. BIN symbols/secondary_shield7.png
  173. BIN symbols/secondary_shield8.png
  174. BIN symbols/shelter2.p.16.png
  175. BIN symbols/shop_bakery.p.16.png
  176. BIN symbols/shop_butcher.png
  177. BIN symbols/shop_clothes.p.16.png
  178. BIN symbols/shop_convenience.p.16.png
  179. BIN symbols/shop_diy.p.16.png
  180. BIN symbols/shop_hairdresser.p.16.png
  181. BIN symbols/shop_supermarket.p.16.png
  182. BIN symbols/shopping_bicycle.p.16.png
  183. BIN symbols/shopping_car.p.16.png
  184. BIN symbols/shopping_car_repair.p.16.png
  185. BIN symbols/sikh.png
  186. BIN symbols/sikh3.p.16.png
  187. BIN symbols/sosphone.png
  188. BIN symbols/spring.png
  189. BIN symbols/station.png
  190. BIN symbols/station_disused.png
  191. BIN symbols/station_small.png
  192. BIN symbols/synagogue.png
  193. BIN symbols/telephone.p.16.png
  194. BIN symbols/ter_shield1.png
  195. BIN symbols/ter_shield2.png
  196. BIN symbols/ter_shield3.png
  197. BIN symbols/ter_shield4.png
  198. BIN symbols/ter_shield5.png
  199. BIN symbols/ter_shield6.png
  200. BIN symbols/ter_shield7.png
  201. BIN symbols/ter_shield8.png
  202. BIN symbols/tertiary_shield1.png
  203. BIN symbols/tertiary_shield2.png
  204. BIN symbols/tertiary_shield3.png
  205. BIN symbols/tertiary_shield4.png
  206. BIN symbols/tertiary_shield5.png
  207. BIN symbols/tertiary_shield6.png
  208. BIN symbols/tertiary_shield7.png
  209. BIN symbols/tertiary_shield8.png
  210. BIN symbols/theatre.p.20.png
  211. BIN symbols/toilets.p.20.png
  212. BIN symbols/tourist_archaeological2.glow.16.png
  213. BIN symbols/tourist_memorial.p.20.png
  214. BIN symbols/tower.png
  215. BIN symbols/tower_water.p.20.png
  216. BIN symbols/traffic_light.png
  217. BIN symbols/transport_ford.p.16.png
  218. BIN symbols/transport_slipway.p.20.png
  219. BIN symbols/tree.png
  220. BIN symbols/tree2.png
  221. BIN symbols/tru_shield1.png
  222. BIN symbols/tru_shield2.png
  223. BIN symbols/tru_shield3.png
  224. BIN symbols/tru_shield4.png
  225. BIN symbols/tru_shield5.png
  226. BIN symbols/tru_shield6.png
  227. BIN symbols/tru_shield7.png
  228. BIN symbols/tru_shield8.png
  229. BIN symbols/trunk_shield1.png
  230. BIN symbols/trunk_shield2.png
  231. BIN symbols/trunk_shield3.png
  232. BIN symbols/trunk_shield4.png
  233. BIN symbols/trunk_shield5.png
  234. BIN symbols/trunk_shield6.png
  235. BIN symbols/trunk_shield7.png
  236. BIN symbols/trunk_shield8.png
  237. BIN symbols/turning_circle-livs-fill.12.png
  238. BIN symbols/turning_circle-livs-fill.14.png
  239. BIN symbols/turning_circle-livs-fill.16.png
  240. BIN symbols/turning_circle-livs-fill.22.png
  241. BIN symbols/turning_circle-tert-casing.18.png
  242. BIN symbols/turning_circle-tert-casing.24.png
  243. BIN symbols/turning_circle-tert-fill.16.png
  244. BIN symbols/turning_circle-tert-fill.22.png
  245. BIN symbols/turning_circle-uncl-casing.14.png
  246. BIN symbols/turning_circle-uncl-casing.16.png
  247. BIN symbols/turning_circle-uncl-casing.18.png
  248. BIN symbols/turning_circle-uncl-casing.24.png
  249. BIN symbols/turning_circle-uncl-fill.12.png
  250. BIN symbols/turning_circle-uncl-fill.14.png
  251. BIN symbols/turning_circle-uncl-fill.16.png
  252. BIN symbols/turning_circle-uncl-fill.18.png
  253. BIN symbols/turning_circle-uncl-fill.22.png
  254. BIN symbols/turning_circle-uncl-fill.24.png
  255. BIN symbols/turning_circle.13.png
  256. BIN symbols/turning_circle.15.png
  257. BIN symbols/turning_circle.17.png
  258. BIN symbols/turning_circle.19.png
  259. BIN symbols/view_point.p.16.png
  260. BIN symbols/vineyard.png
  261. BIN symbols/volcano.png
  262. BIN symbols/walking.n.12.png
  263. BIN symbols/windmill.png
  264. BIN symbols/zoo.png
@@ -0,0 +1,2 @@
+.thumb.png
+layers/
@@ -0,0 +1,11 @@
+# OpenStreetMap Carto
+
+
+# Notes on conversion
+
+* Always specify zoom levels as either >= or < . Don't use either = or =<
+* Open curly braces on the same line, and close on an empty line.
+* One space before and after = etc
+* Two space indents. No tabs.
+* space after : but no before
+* If there is a `&minscale_zoom18;`, ignore it. These really mess up any attempts to run the style at z19
@@ -0,0 +1,353 @@
+#landcover {
+ [leisure = 'swimming_pool'][zoom >= 14]::leisure {
+ polygon-fill: #b5d0d0;
+ line-color: blue;
+ line-width: 0.5;
+ }
+
+ [leisure = 'playground'][zoom >= 13]::leisure {
+ polygon-fill: #ccfff1;
+ line-color: #666;
+ line-width: 0.3;
+ }
+
+ [tourism = 'camp_site']::tourism,
+ [tourism = 'caravan_site']::tourism,
+ [tourism = 'picnic_site']::tourism {
+ [zoom >= 13] {
+ polygon-fill: #ccff99;
+ polygon-opacity: 0.5;
+ line-color: #666;
+ line-width: 0.3;
+ }
+ }
+
+ [tourism = 'attraction'][zoom >= 10]::tourism {
+ polygon-fill: #f2caea;
+ }
+
+ [landuse = 'quarry'][zoom >= 11]::landuse {
+ polygon-pattern-file: url('symbols/quarry2.png');
+ line-width: 0.5;
+ line-color: grey;
+ }
+
+ [landuse = 'vineyard']::landuse {
+ [zoom >= 10][zoom < 13] {
+ polygon-fill: #abdf96;
+ }
+ [zoom >= 13] {
+ polygon-pattern-file: url('symbols/vineyard.png');
+ }
+ }
+
+ [landuse = 'orchard'][zoom >= 10]::landuse {
+ polygon-pattern-file: url('symbols/orchard.png');
+ }
+
+ [landuse = 'cemetery']::landuse,
+ [landuse = 'grave_yard']::landuse,
+ [amenity = 'grave_yard']::landuse {
+ [zoom >= 10][zoom < 15] {
+ polygon-fill: #aacbaf;
+ }
+ [zoom >= 15] {
+ [religion = 'jewish'] { polygon-pattern-file: url('symbols/cemetery_jewish.18.png'); }
+ [religion = 'christian'] { polygon-pattern-file: url('symbols/grave_yard.png'); }
+ [religion = 'INT-generic'] { polygon-pattern-file: url('symbols/grave_yard_generic.png'); }
+ }
+ }
+
+ [landuse = 'residential'][zoom >= 10]::landuse {
+ polygon-fill: #ddd;
+ }
+
+ [landuse = 'garages'][zoom >= 12]::landuse {
+ polygon-fill: #996;
+ polygon-opacity: 0.2;
+ }
+
+ [military = 'barracks'][zoom >= 10]::military {
+ polygon-fill: #ff8f8f;
+ }
+
+ [landuse = 'field']::landuse,
+ [natural = 'field']::natural {
+ [zoom >= 10] {
+ polygon-fill: #666600;
+ polygon-opacity: 0.2;
+ [zoom >= 14] {
+ line-width: 0.3;
+ line-opacity: 0.4;
+ line-color: #660;
+ }
+ }
+ }
+
+ [military = 'danger_area']::military {
+ [zoom >= 9][zoom < 11] {
+ polygon-fill: pink;
+ polygon-opacity: 0.3;
+ }
+ [zoom >= 11] {
+ polygon-pattern-file: url('symbols/danger.png');
+ }
+ }
+
+ [landuse = 'meadow']::landuse,
+ [landuse = 'grass']::landuse {
+ [zoom >= 10] {
+ polygon-fill: #cfeca8;
+ }
+ }
+
+ [landuse = 'park']::landuse,
+ [landuse = 'recreation_ground']::landuse {
+ [zoom >= 10] {
+ polygon-fill: #b6fdb6;
+ polygon-opacity: 0.6;
+ }
+ }
+
+ [tourism = 'zoo'][zoom >= 10]::tourism {
+ polygon-pattern-file: url('symbols/zoo.png');
+ }
+
+ [leisure = 'common'][zoom >= 10]::leisure {
+ polygon-fill: #cfeca8;
+ }
+
+ [leisure = 'garden'][zoom >= 10]::leisure {
+ polygon-fill: #cfeca8;
+ }
+
+ [leisure = 'golf_course'][zoom >= 10]::leisure {
+ polygon-fill: #b5e3b5;
+ }
+
+ [landuse = 'allotments']::landuse {
+ [zoom >= 10][zoom < 14] {
+ polygon-fill: #e5c7ab;
+ }
+ [zoom >= 14] {
+ polygon-pattern-file: url('symbols/allotments.png');
+ }
+ }
+
+ [landuse = 'forest']::landuse {
+ [zoom >= 8][zoom < 14] {
+ polygon-fill: #8dc56c;
+ }
+ [zoom >= 14] {
+ polygon-pattern-file: url('symbols/forest.png');
+ }
+ }
+
+ [landuse = 'farmyard'][zoom >= 9]::landuse {
+ polygon-fill: #ddbf92;
+ }
+
+ [landuse = 'farm']::landuse,
+ [landuse = 'farmland']::landuse {
+ [zoom >= 9] {
+ polygon-fill: #ead8bd;
+ }
+ }
+
+ [landuse = 'recreation_ground']::landuse,
+ [landuse = 'conservation']::landuse {
+ [zoom >= 10] {
+ polygon-fill: #cfeca8;
+ }
+ }
+
+ [landuse = 'village_green'][zoom >= 11]::landuse {
+ polygon-fill: #cfeca8;
+ }
+
+ [landuse = 'retail'][zoom >= 10]::landuse {
+ polygon-fill: #f1dada;
+ [zoom >= 15] {
+ line-width: 0.3;
+ line-color: red;
+ }
+ }
+
+ [landuse = 'industrial']::landuse,
+ [landuse = 'railway']::landuse {
+ [zoom >= 10] {
+ polygon-fill: #dfd1d6;
+ }
+ }
+
+ [power = 'station']::power,
+ [power = 'generator']::power {
+ [zoom >= 10] {
+ polygon-fill: #bbb;
+ [zoom >= 12] {
+ line-width: 0.4;
+ line-color: #555;
+ }
+ }
+ }
+
+ [power = 'sub_station'][zoom >= 13]::power {
+ polygon-fill: #bbb;
+ line-width: 0.4;
+ line-color: #555;
+ }
+
+ [landuse = 'commercial'][zoom >= 10]::landuse {
+ polygon-fill: #efc8c8;
+ }
+
+ [landuse = 'brownfield'],
+ [landuse = 'landfill'],
+ [landuse = 'greenfield'],
+ [landuse = 'construction'] {
+ [zoom >= 10]::landuse {
+ polygon-fill: #9d9d6c;
+ polygon-opacity: 0.7;
+ }
+ }
+
+ [natural = 'wood']::natural,
+ [landuse = 'wood']::landuse {
+ [zoom >= 8] {
+ polygon-fill: #aed1a0;
+ }
+ }
+
+ [natural = 'desert'][zoom >= 8]::natural {
+ polygon-fill: #e3b57a;
+ }
+
+ [natural = 'sand'][zoom >= 10]::natural {
+ polygon-fill: #ffdf88;
+ }
+
+ [natural = 'heath'][zoom >= 10]::natural {
+ polygon-fill: #d6d99f;
+ }
+
+ [natural = 'grassland'][zoom >= 10]::natural {
+ polygon-fill: #c6e4b4;
+ }
+
+ [natural = 'scrub']::natural {
+ [zoom >= 10][zoom < 14] {
+ polygon-fill: #c6e4b4;
+ }
+ [zoom >= 14] {
+ polygon-pattern-file: url('symbols/scrub.png');
+ }
+ }
+
+ [amenity = 'university'],
+ [amenity = 'college'],
+ [amenity = 'school'],
+ [amenity = 'hospital'],
+ [amenity = 'kindergarten'] {
+ [zoom >= 10]::amenity {
+ polygon-fill: #f0f0d8;
+ [zoom >= 12] {
+ line-width: 0.3;
+ line-color: brown;
+ }
+ }
+ }
+
+ [amenity = 'parking'][zoom >= 10]::amenity {
+ polygon-fill: #f7efb7;
+ [zoom >= 15] {
+ line-width: 0.3;
+ line-color: #eeeed1;
+ }
+ }
+
+ [aeroway = 'apron'][zoom >= 12]::aeroway {
+ polygon-fill: #e9d1ff;
+ }
+
+ [aeroway = 'aerodrome'][zoom >= 12]::aeroway {
+ polygon-fill: #ccc;
+ polygon-opacity: 0.2;
+ line-width: 0.2;
+ line-color: #555;
+ }
+
+ [natural = 'beach'][zoom >= 13]::natural {
+ polygon-pattern-file: url('symbols/beach.png');
+ }
+
+ [highway = 'services'],
+ [highway = 'rest_area'] {
+ [zoom >= 14]::highway {
+ polygon-fill: #efc8c8;
+ }
+ }
+}
+
+/*
+
+<Style name="landcover_line">
+ <Rule>
+ &maxscale_zoom14;
+ &minscale_zoom15;
+ <LineSymbolizer stroke-linejoin="round" stroke="#f2efe9" stroke-width="3" stroke-linecap="square"/>
+ </Rule>
+ <Rule>
+ &maxscale_zoom16;
+ <LineSymbolizer stroke-linejoin="round" stroke="#f2efe9" stroke-width="6" stroke-linecap="square"/>
+ </Rule>
+</Style>
+<Style name="sports_grounds">
+ <Rule>
+ <Filter>[leisure] = 'sports_centre' or [leisure] = 'stadium'</Filter>
+ &maxscale_zoom10;
+ <PolygonSymbolizer fill="#33cc99"/>
+ </Rule>
+ <Rule>
+ <Filter>[leisure]='track'</Filter>
+ &maxscale_zoom10;
+ <PolygonSymbolizer fill="#74dcba"/>
+ <LineSymbolizer stroke="#888" stroke-width="0.5"/>
+ </Rule>
+ <Rule>
+ <Filter>[leisure] = 'pitch'</Filter>
+ &maxscale_zoom10;
+ <PolygonSymbolizer fill="#8ad3af"/>
+ <LineSymbolizer stroke="#888" stroke-width="0.5"/>
+ </Rule>
+</Style>
+
+<Layer name="landcover_line" status="on" srs="&osm2pgsql_projection;">
+ <StyleName>landcover_line</StyleName>
+ <Datasource>
+ <Parameter name="table">
+ (select way
+ from &prefix;_line
+ where man_made='cutline'
+ ) as leisure
+ </Parameter>
+ &datasource-settings;
+ </Datasource>
+</Layer>
+<Layer name="sports_grounds" status="on" srs="&osm2pgsql_projection;">
+ <StyleName>sports_grounds</StyleName>
+ <Datasource>
+ <Parameter name="table">
+ (select way,leisure,
+ case when leisure='pitch' then 2
+ when leisure='track' then 1
+ else 0 end as prio
+ from &prefix;_polygon
+ where leisure in ('sports_centre','stadium','pitch','track')
+ order by z_order,prio,way_area desc
+ ) as sports_grounds
+ </Parameter>
+ &datasource-settings;
+ </Datasource>
+</Layer>
+
+*/
Oops, something went wrong.

0 comments on commit f5f8a82

Please sign in to comment.