Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfixes #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions hyddafull/labels.mss
Original file line number Diff line number Diff line change
Expand Up @@ -465,11 +465,11 @@
text-wrap-width: 180;
}
}
#poi[type='university'][zoom>=15],
#poi[type='hospital'][zoom>=16],
#poi[type='school'][zoom>=17],
#poi[type='library'][zoom>=17] {

#area_label[type='university'][zoom>=15],
#area_label[type='hospital'][zoom>=16],
#area_label[type='school'][zoom>=17],
#area_label[type='library'][zoom>=17] {
text-name:"[name]";
text-face-name:@sans;
text-size:10;
Expand Down
94 changes: 72 additions & 22 deletions hyddafull/project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
"geometry": "polygon",
"id": "land-low",
"name": "land-low",
"minzoom": 0,
"maxzoom": 9,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913",
"status": "on"
Expand All @@ -50,6 +52,8 @@
"geometry": "polygon",
"id": "land-high",
"name": "land-high",
"minzoom": 10,
"maxzoom": 20,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913",
"status": "on"
Expand All @@ -64,13 +68,15 @@
"id": "landuse_gen0",
"key_field": "",
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"table": "( SELECT way, way_area AS area, COALESCE(landuse, leisure, \"natural\", highway, amenity, tourism) AS type\n FROM planet_osm_polygon\n WHERE way_area > 100000\n ORDER BY way_area DESC\n) AS data",
"table": "( SELECT way, way_area AS area, COALESCE(landuse, leisure, \"natural\", highway, amenity, tourism) AS type\n FROM planet_osm_polygon\n WHERE way_area > 1*!pixel_width!::real*!pixel_height!::real\n ORDER BY way_area DESC\n) AS data",
"type": "postgis"
},
"class": "",
"geometry": "multipolygon",
"id": "landuse_gen0",
"name": "landuse_gen0",
"minzoom": 4,
"maxzoom": 9,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913",
"status": "on"
Expand All @@ -85,13 +91,15 @@
"id": "landuse_gen1",
"key_field": "",
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"table": "( SELECT way, way_area AS area, COALESCE(landuse, leisure, \"natural\", highway, amenity, tourism) AS type\n FROM planet_osm_polygon\n WHERE way_area > 10000\n ORDER BY way_area DESC\n) AS data",
"table": "( SELECT way, way_area AS area, COALESCE(landuse, leisure, \"natural\", highway, amenity, tourism) AS type\n FROM planet_osm_polygon\n WHERE way_area > 1*!pixel_width!::real*!pixel_height!::real\n ORDER BY way_area DESC\n) AS data",
"type": "postgis"
},
"class": "",
"geometry": "multipolygon",
"id": "landuse_gen1",
"name": "landuse_gen1",
"minzoom": 10,
"maxzoom": 12,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913",
"status": "on"
Expand All @@ -113,6 +121,8 @@
"geometry": "polygon",
"id": "landuse",
"name": "landuse",
"minzoom": 13,
"maxzoom": 20,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913",
"status": "on"
Expand All @@ -136,6 +146,8 @@
},
"id": "sports-grounds",
"class": "",
"minzoom": 13,
"maxzoom": 20,
"srs-name": "900913",
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"advanced": {},
Expand All @@ -158,6 +170,8 @@
"geometry": "linestring",
"id": "waterway_low",
"name": "waterway_low",
"minzoom": 8,
"maxzoom": 12,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913",
"status": "on"
Expand All @@ -177,6 +191,8 @@
"geometry": "linestring",
"id": "waterway_med",
"name": "waterway_med",
"minzoom": 13,
"maxzoom": 14,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913"
},
Expand All @@ -195,6 +211,8 @@
"geometry": "linestring",
"id": "waterway_high",
"name": "waterway_high",
"minzoom": 16,
"maxzoom": 20,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913"
},
Expand All @@ -208,13 +226,15 @@
"id": "water_gen0",
"key_field": "",
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"table": "( SELECT way, \"natural\" AS type, way_area AS area\n FROM planet_osm_polygon\n WHERE (\"natural\" IN ('water', 'pond')\n OR waterway IN ('basin', 'canal', 'mill_pond', 'pond', 'riverbank', 'stream'))\n AND way_area > 10000\n) AS data",
"table": "( SELECT way, \"natural\" AS type, way_area AS area\n FROM planet_osm_polygon\n WHERE (\"natural\" IN ('water', 'pond')\n OR waterway IN ('basin', 'canal', 'mill_pond', 'pond', 'riverbank', 'stream'))\n AND way_area > 1*!pixel_width!::real*!pixel_height!::real\n) AS data",
"type": "postgis"
},
"class": "",
"geometry": "polygon",
"id": "water_gen0",
"name": "water_gen0",
"minzoom": 4,
"maxzoom": 9,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913",
"status": "on"
Expand All @@ -236,6 +256,8 @@
"geometry": "polygon",
"id": "water_gen1",
"name": "water_gen1",
"minzoom": 10,
"maxzoom": 12,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913",
"status": "on"
Expand All @@ -257,6 +279,8 @@
"geometry": "polygon",
"id": "water",
"name": "water",
"minzoom": 13,
"maxzoom": 20,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913",
"status": "on"
Expand All @@ -278,6 +302,8 @@
"geometry": "polygon",
"id": "landuse_overlays",
"name": "landuse_overlays",
"minzoom": 5,
"maxzoom": 20,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913"
},
Expand All @@ -297,6 +323,8 @@
"geometry": "linestring",
"id": "admin",
"name": "admin",
"minzoom": 2,
"maxzoom": 20,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913"
},
Expand All @@ -317,6 +345,8 @@
"geometry": "linestring",
"id": "tunnel",
"name": "tunnel",
"minzoom": 11,
"maxzoom": 20,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913"
},
Expand All @@ -335,6 +365,8 @@
"geometry": "polygon",
"id": "buildings",
"name": "buildings",
"minzoom": 12,
"maxzoom": 20,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913"
},
Expand All @@ -355,6 +387,8 @@
"geometry": "linestring",
"id": "aeroway",
"name": "aeroway",
"minzoom": 10,
"maxzoom": 20,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913",
"status": "on"
Expand All @@ -376,6 +410,8 @@
"geometry": "point",
"id": "turning_circle_case",
"name": "turning_circle_case",
"minzoom": 14,
"maxzoom": 20,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913"
},
Expand All @@ -396,24 +432,8 @@
"geometry": "linestring",
"id": "roads_high",
"name": "roads_high",
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913"
},
{
"Datasource": {

"dbname": "gis",
"extent": "-20037508.34 -20037508.34 20037508.34 20037508.34",
"geometry_field": "way",

"key_field": "",
"table": "( SELECT way, highway AS type\n FROM planet_osm_roads\n WHERE highway IN ('motorway', 'trunk', 'primary', 'secondary', 'motorway_link', 'trunk_link')\n) AS data",
"type": "postgis"
},
"class": "",
"geometry": "linestring",
"id": "roads_med",
"name": "roads_med",
"minzoom": 14,
"maxzoom": 20,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913"
},
Expand All @@ -432,6 +452,8 @@
"geometry": "linestring",
"id": "roads_low",
"name": "roads_low",
"minzoom": 5,
"maxzoom": 13,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913"
},
Expand All @@ -450,6 +472,8 @@
"geometry": "point",
"id": "turning_circle_fill",
"name": "turning_circle_fill",
"minzoom": 14,
"maxzoom": 20,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913"
},
Expand All @@ -472,6 +496,8 @@
"id": "bridge",
"name": "bridge",
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"minzoom": 14,
"maxzoom": 20,
"srs-name": "900913",
"status": "on",
"extent": [
Expand Down Expand Up @@ -502,6 +528,8 @@
},
"id": "piers",
"class": "",
"minzoom": 11,
"maxzoom": 20,
"srs-name": "900913",
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"advanced": {},
Expand All @@ -527,6 +555,8 @@
"id": "piers-area",
"class": "",
"srs-name": "900913",
"minzoom": 12,
"maxzoom": 20,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"advanced": {},
"name": "piers-area"
Expand All @@ -541,13 +571,15 @@
"id": "place",
"key_field": "",
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"table": "( SELECT way, place AS type, name, z_order, population\n FROM planet_osm_point\n WHERE place in ('country', 'state', 'city', 'town', 'village', 'hamlet', 'suburb', 'neighbourhood', 'locality')\n ORDER BY population DESC NULLS LAST\n) AS data",
"table": "( SELECT way, place AS type, name, (CASE WHEN (tags->'population' ~ '^[0-9]{1,8}$') THEN (tags->'population')::INTEGER WHEN (place = 'city') THEN 100000 WHEN (place = 'town') THEN 1000 ELSE 1 end) population\n FROM planet_osm_point\n WHERE place in ('country', 'state', 'city', 'town', 'village', 'hamlet', 'suburb', 'neighbourhood', 'locality')\n ORDER BY population DESC NULLS LAST\n) AS data",
"type": "postgis"
},
"class": "",
"geometry": "point",
"id": "place",
"name": "place",
"minzoom": 4,
"maxzoom": 20,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913",
"status": "on"
Expand All @@ -569,6 +601,8 @@
"geometry": "point",
"id": "area_label",
"name": "area_label",
"minzoom": 10,
"maxzoom": 20,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913",
"status": "on"
Expand All @@ -590,6 +624,8 @@
"geometry": "linestring",
"id": "motorway_label",
"name": "motorway_label",
"minzoom": 10,
"maxzoom": 20,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913",
"status": "on"
Expand All @@ -611,6 +647,8 @@
"geometry": "linestring",
"id": "mainroad_label",
"name": "mainroad_label",
"minzoom": 13,
"maxzoom": 20,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913",
"status": "on"
Expand All @@ -633,6 +671,8 @@
"geometry": "linestring",
"id": "minorroad_label",
"name": "minorroad_label",
"minzoom": 14,
"maxzoom": 20,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913",
"status": "on",
Expand Down Expand Up @@ -661,6 +701,8 @@
"geometry": "linestring",
"id": "waterway_label",
"name": "waterway_label",
"minzoom": 13,
"maxzoom": 20,
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"srs-name": "900913",
"status": "on"
Expand All @@ -683,6 +725,8 @@
},
"id": "island_label_polygon",
"class": "",
"minzoom": 10,
"maxzoom": 20,
"srs-name": "900913",
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"advanced": {},
Expand All @@ -709,6 +753,8 @@
},
"id": "island_label_point",
"class": "",
"minzoom": 13,
"maxzoom": 20,
"srs-name": "900913",
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"advanced": {},
Expand All @@ -734,6 +780,8 @@
},
"id": "housenames",
"class": "",
"minzoom": 17,
"maxzoom": 20,
"srs-name": "900913",
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"advanced": {},
Expand All @@ -759,6 +807,8 @@
},
"id": "housenumbers",
"class": "",
"minzoom": 17,
"maxzoom": 20,
"srs-name": "900913",
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"advanced": {},
Expand Down