Grav24

osm_MML

Dec 23rd, 2015
171
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "bounds": [
  3.     -180,
  4.     -85.05112877980659,
  5.     180,
  6.     85.05112877980659
  7.   ],
  8.   "center": [
  9.     0,
  10.     0,
  11.     4
  12.   ],
  13.   "format": "png",
  14.   "interactivity": {
  15.     "layer": "paths-text-name",
  16.     "fields": []
  17.   },
  18.   "minzoom": 0,
  19.   "maxzoom": 22,
  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",
  21.   "Stylesheet": [
  22.     "style.mss",
  23.     "shapefiles.mss",
  24.     "landcover.mss",
  25.     "water.mss",
  26.     "water-features.mss",
  27.     "roads.mss",
  28.     "power.mss",
  29.     "citywalls.mss",
  30.     "placenames.mss",
  31.     "buildings.mss",
  32.     "stations.mss",
  33.     "amenity-points.mss",
  34.     "ferry-routes.mss",
  35.     "aerialways.mss",
  36.     "admin.mss",
  37.     "addressing.mss"
  38.   ],
  39.   "Layer": [
  40.     {
  41.       "name": "world",
  42.       "srs-name": "900913",
  43.       "geometry": "polygon",
  44.       "class": "",
  45.       "id": "world",
  46.       "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",
  47.       "Datasource": {
  48.         "type": "shape",
  49.         "file": "data/simplified-land-polygons-complete-3857/simplified_land_polygons.shp"
  50.       },
  51.       "extent": [
  52.         -180,
  53.         -85.05112877980659,
  54.         180,
  55.         85.05112877980659
  56.       ],
  57.       "properties": {
  58.         "maxzoom": 9
  59.       },
  60.       "advanced": {}
  61.     },
  62.     {
  63.       "name": "coast-poly",
  64.       "srs-name": "900913",
  65.       "geometry": "polygon",
  66.       "class": "",
  67.       "id": "coast-poly",
  68.       "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",
  69.       "Datasource": {
  70.         "type": "shape",
  71.         "file": "data/land-polygons-split-3857/land_polygons.shp"
  72.       },
  73.       "extent": [
  74.         -180,
  75.         -85.05112877980659,
  76.         180,
  77.         85.05112877980659
  78.       ],
  79.       "properties": {
  80.         "minzoom": 10
  81.       },
  82.       "advanced": {}
  83.     },
  84.     {
  85.       "name": "builtup",
  86.       "srs-name": "mercator",
  87.       "geometry": "polygon",
  88.       "class": "",
  89.       "id": "builtup",
  90.       "srs": "+proj=merc +datum=WGS84 +over",
  91.       "Datasource": {
  92.         "type": "shape",
  93.         "file": "data/world_boundaries/builtup_area.shp"
  94.       },
  95.       "extent": [
  96.         -180,
  97.         -85.05112877980659,
  98.         180,
  99.         85.05112877980659
  100.       ],
  101.       "properties": {
  102.         "maxzoom": 9,
  103.         "minzoom": 8
  104.       },
  105.       "advanced": {}
  106.     },
  107.     {
  108.       "name": "necountries",
  109.       "srs-name": "WGS84",
  110.       "geometry": "linestring",
  111.       "class": "",
  112.       "id": "necountries",
  113.       "srs": "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs",
  114.       "Datasource": {
  115.         "type": "shape",
  116.         "file": "data/ne_110m_admin_0_boundary_lines_land/ne_110m_admin_0_boundary_lines_land.shp"
  117.       },
  118.       "extent": [
  119.         -180,
  120.         -85.05112877980659,
  121.         180,
  122.         85.05112877980659
  123.       ],
  124.       "properties": {
  125.         "maxzoom": 3,
  126.         "minzoom": 1
  127.       },
  128.       "advanced": {}
  129.     },
  130.     {
  131.       "name": "landcover-low-zoom",
  132.       "srs-name": "900913",
  133.       "geometry": "polygon",
  134.       "class": "",
  135.       "id": "landcover-low-zoom",
  136.       "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",
  137.       "Datasource": {
  138.         "extent": "-20037508,-20037508,20037508,20037508",
  139.         "table": "(SELECT\n    way, name, way_pixels,\n    COALESCE(wetland, landuse, \"natural\") AS feature\n  FROM (SELECT\n      way, COALESCE(name, '') AS name,\n      ('landuse_' || (CASE WHEN landuse IN ('forest', 'military') THEN landuse ELSE NULL END)) AS landuse,\n      ('natural_' || (CASE WHEN \"natural\" IN ('wood', 'sand', 'scree', 'shingle', 'bare_rock') THEN \"natural\" ELSE NULL END)) AS \"natural\",\n      ('wetland_' || (CASE WHEN \"natural\" IN ('wetland', 'mud') THEN (CASE WHEN \"natural\" IN ('mud') THEN \"natural\" ELSE wetland END) ELSE NULL END)) AS wetland,\n      way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels\n    FROM planet_osm_polygon\n    WHERE (landuse IN ('forest', 'military')\n      OR \"natural\" IN ('wood', 'wetland', 'mud', 'sand', 'scree', 'shingle', 'bare_rock'))\n      AND way_area > 0.01*!pixel_width!::real*!pixel_height!::real\n      AND building IS NULL\n    ORDER BY CASE WHEN layer~E'^-?\\\\d+$' AND length(layer)<10 THEN layer::integer ELSE 0 END, way_area DESC\n  ) AS features\n) AS landcover_low_zoom",
  140.         "geometry_field": "way",
  141.         "type": "postgis",
  142.         "key_field": "",
  143.         "dbname": "osm_south",
  144.         "host": "localhost",
  145.         "user": "postgres",
  146.         "password": "lumosgis"
  147.       },
  148.       "extent": [
  149.         -180,
  150.         -85.05112877980659,
  151.         180,
  152.         85.05112877980659
  153.       ],
  154.       "properties": {
  155.         "maxzoom": 9
  156.       },
  157.       "advanced": {}
  158.     },
  159.     {
  160.       "name": "landcover",
  161.       "srs-name": "900913",
  162.       "geometry": "polygon",
  163.       "class": "",
  164.       "id": "landcover",
  165.       "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",
  166.       "Datasource": {
  167.         "extent": "-20037508,-20037508,20037508,20037508",
  168.         "table": "(SELECT\n    way, name, religion, way_pixels,\n    COALESCE(aeroway, amenity, wetland, power, landuse, leisure, military, \"natural\", tourism, highway, railway) AS feature\n  FROM (SELECT\n      way, COALESCE(name, '') AS name,\n      ('aeroway_' || (CASE WHEN aeroway IN ('apron', 'aerodrome') THEN aeroway ELSE NULL END)) AS aeroway,\n      ('amenity_' || (CASE WHEN amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking', 'university', 'college', 'school', \n                                            'hospital', 'kindergarten', 'grave_yard', 'prison', 'place_of_worship', 'clinic') \n                                            THEN amenity ELSE NULL END)) AS amenity,\n      ('landuse_' || (CASE WHEN landuse IN ('quarry', 'vineyard', 'orchard', 'cemetery', 'residential', 'garages', 'meadow', 'grass', \n                                            'allotments', 'forest', 'farmyard', 'farm', 'farmland', 'greenhouse_horticulture', \n                                            'recreation_ground', 'village_green', 'retail', 'industrial', 'railway', 'commercial', \n                                            'brownfield', 'landfill', 'construction') THEN landuse ELSE NULL END)) AS landuse,\n      ('leisure_' || (CASE WHEN leisure IN ('swimming_pool', 'playground', 'park', 'recreation_ground', 'common', 'garden', \n                                            'golf_course', 'miniature_golf', 'picnic_table', 'sports_centre', 'stadium', 'pitch', \n                                            'track') THEN leisure ELSE NULL END)) AS leisure,\n      ('military_' || (CASE WHEN military IN ('danger_area') THEN military ELSE NULL END)) AS military,\n      ('natural_' || (CASE WHEN \"natural\" IN ('beach', 'heath', 'grassland', 'wood', 'sand', 'scree', 'shingle', 'bare_rock', 'scrub') THEN \"natural\" ELSE NULL END)) AS \"natural\",\n      ('wetland_' || (CASE WHEN \"natural\" IN ('wetland', 'marsh', 'mud') THEN (CASE WHEN \"natural\" IN ('marsh', 'mud') THEN \"natural\" ELSE wetland END) ELSE NULL END)) AS wetland,\n      ('power_' || (CASE WHEN power IN ('station', 'sub_station', 'substation', 'generator') THEN power ELSE NULL END)) AS power,\n      ('tourism_' || (CASE WHEN tourism IN ('attraction', 'camp_site', 'caravan_site', 'picnic_site') THEN tourism ELSE NULL END)) AS tourism,\n      ('highway_' || (CASE WHEN highway IN ('services', 'rest_area') THEN highway ELSE NULL END)) AS highway,\n      ('railway_' || (CASE WHEN railway = 'station' THEN railway ELSE NULL END)) AS railway,\n      CASE WHEN religion IN ('christian', 'jewish') THEN religion ELSE 'INT-generic'::text END AS religion,\n      way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels\n    FROM planet_osm_polygon\n    WHERE (landuse IS NOT NULL\n      OR leisure IS NOT NULL\n      OR aeroway IN ('apron', 'aerodrome')\n      OR amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking', 'university', 'college', 'school', 'hospital', 'kindergarten', \n                     'grave_yard', 'place_of_worship', 'prison', 'clinic')\n      OR military IN ('danger_area')\n      OR \"natural\" IN ('beach', 'heath', 'mud', 'marsh', 'wetland', 'grassland', 'wood', 'sand', 'scree', 'shingle', 'bare_rock', 'scrub')\n      OR power IN ('station', 'sub_station', 'substation', 'generator')\n      OR tourism IN ('attraction', 'camp_site', 'caravan_site', 'picnic_site')\n      OR highway IN ('services', 'rest_area')\n      OR railway = 'station')\n      AND way_area > 0.01*!pixel_width!::real*!pixel_height!::real\n    ORDER BY CASE WHEN layer~E'^-?\\\\d+$' AND length(layer)<10 THEN layer::integer ELSE 0 END, way_area DESC\n  ) AS landcover\n) AS features",
  169.         "geometry_field": "way",
  170.         "type": "postgis",
  171.         "key_field": "",
  172.         "dbname": "osm_south",
  173.         "host": "localhost",
  174.         "user": "postgres",
  175.         "password": "lumosgis"
  176.       },
  177.       "extent": [
  178.         -180,
  179.         -85.05112877980659,
  180.         180,
  181.         85.05112877980659
  182.       ],
  183.       "properties": {
  184.         "minzoom": 10
  185.       },
  186.       "advanced": {}
  187.     },
  188.     {
  189.       "name": "landcover-line",
  190.       "srs-name": "900913",
  191.       "geometry": "linestring",
  192.       "class": "",
  193.       "id": "landcover-line",
  194.       "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",
  195.       "Datasource": {
  196.         "extent": "-20037508,-20037508,20037508,20037508",
  197.         "table": "(SELECT\n    way\n  FROM planet_osm_line\n  WHERE man_made = 'cutline'\n) AS landcover_line",
  198.         "geometry_field": "way",
  199.         "type": "postgis",
  200.         "key_field": "",
  201.         "dbname": "osm_south",
  202.         "host": "localhost",
  203.         "user": "postgres",
  204.         "password": "lumosgis"
  205.       },
  206.       "extent": [
  207.         -180,
  208.         -85.05112877980659,
  209.         180,
  210.         85.05112877980659
  211.       ],
  212.       "properties": {
  213.         "minzoom": 14
  214.       },
  215.       "advanced": {}
  216.     },
  217.     {
  218.       "name": "water-lines-casing",
  219.       "srs-name": "900913",
  220.       "geometry": "linestring",
  221.       "class": "",
  222.       "id": "water-lines-casing",
  223.       "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",
  224.       "Datasource": {
  225.         "extent": "-20037508,-20037508,20037508,20037508",
  226.         "table": "(SELECT\n    way, waterway, intermittent,\n    CASE WHEN tunnel IN ('yes', 'culvert') THEN 'yes' ELSE 'no' END AS int_tunnel\n  FROM planet_osm_line\n  WHERE waterway IN ('stream', 'drain', 'ditch')\n) AS water_lines_casing",
  227.         "geometry_field": "way",
  228.         "type": "postgis",
  229.         "key_field": "",
  230.         "dbname": "osm_south",
  231.         "host": "localhost",
  232.         "user": "postgres",
  233.         "password": "lumosgis"
  234.       },
  235.       "extent": [
  236.         -180,
  237.         -85.05112877980659,
  238.         180,
  239.         85.05112877980659
  240.       ],
  241.       "properties": {
  242.         "minzoom": 13
  243.       },
  244.       "advanced": {}
  245.     },
  246.     {
  247.       "name": "water-lines-low-zoom",
  248.       "srs-name": "900913",
  249.       "geometry": "linestring",
  250.       "class": "",
  251.       "id": "water-lines-low-zoom",
  252.       "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",
  253.       "Datasource": {
  254.         "extent": "-20037508,-20037508,20037508,20037508",
  255.         "table": "(SELECT way, waterway, intermittent\n  FROM planet_osm_line\n  WHERE waterway = 'river'\n) AS water_lines_low_zoom",
  256.         "geometry_field": "way",
  257.         "type": "postgis",
  258.         "key_field": "",
  259.         "dbname": "osm_south",
  260.         "host": "localhost",
  261.         "user": "postgres",
  262.         "password": "lumosgis"
  263.       },
  264.       "extent": [
  265.         -180,
  266.         -85.05112877980659,
  267.         180,
  268.         85.05112877980659
  269.       ],
  270.       "properties": {
  271.         "maxzoom": 11,
  272.         "minzoom": 8
  273.       },
  274.       "advanced": {}
  275.     },
  276.     {
  277.       "name": "icesheet-poly",
  278.       "srs-name": "900913",
  279.       "geometry": "polygon",
  280.       "class": "",
  281.       "id": "icesheet-poly",
  282.       "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",
  283.       "Datasource": {
  284.         "type": "shape",
  285.         "file": "data/antarctica-icesheet-polygons-3857/icesheet_polygons.shp"
  286.       },
  287.       "extent": [
  288.         -180,
  289.         -85.05112877980659,
  290.         180,
  291.         85.05112877980659
  292.       ],
  293.       "properties": {
  294.         "minzoom": 4
  295.       },
  296.       "advanced": {}
  297.     },
  298.     {
  299.       "name": "water-areas",
  300.       "srs-name": "900913",
  301.       "geometry": "polygon",
  302.       "class": "",
  303.       "id": "water-areas",
  304.       "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",
  305.       "Datasource": {
  306.         "extent": "-20037508,-20037508,20037508,20037508",
  307.         "table": "(SELECT\n    way,\n    \"natural\",\n    waterway,\n    landuse,\n    name,\n    way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels\n  FROM planet_osm_polygon\n  WHERE\n    (waterway IN ('dock', 'riverbank', 'canal')\n      OR landuse IN ('reservoir', 'basin')\n      OR \"natural\" IN ('water', 'glacier'))\n    AND building IS NULL\n    AND way_area > 0.01*!pixel_width!::real*!pixel_height!::real\n  ORDER BY z_order, way_area DESC\n) AS water_areas",
  308.         "geometry_field": "way",
  309.         "type": "postgis",
  310.         "key_field": "",
  311.         "dbname": "osm_south",
  312.         "host": "localhost",
  313.         "user": "postgres",
  314.         "password": "lumosgis"
  315.       },
  316.       "extent": [
  317.         -180,
  318.         -85.05112877980659,
  319.         180,
  320.         85.05112877980659
  321.       ],
  322.       "properties": {
  323.         "minzoom": 4
  324.       },
  325.       "advanced": {}
  326.     },
  327.     {
  328.       "name": "landcover-area-symbols",
  329.       "srs-name": "900913",
  330.       "geometry": "polygon",
  331.       "class": "",
  332.       "id": "landcover-area-symbols",
  333.       "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",
  334.       "Datasource": {
  335.         "extent": "-20037508,-20037508,20037508,20037508",
  336.         "table": "(SELECT\n    way,\n    COALESCE(\"natural\", CASE WHEN landuse = 'forest' THEN 'wood' ELSE NULL END) AS \"natural\",\n    CASE WHEN \"natural\" IN ('marsh', 'mud') \n        THEN \"natural\" \n        ELSE CASE WHEN (\"natural\" = 'wetland' AND wetland IS NULL) \n          THEN 'wetland' \n          ELSE CASE WHEN (\"natural\" = 'wetland')\n            THEN wetland\n            ELSE NULL\n            END \n        END\n      END AS int_wetland\n  FROM planet_osm_polygon\n  WHERE (\"natural\" IN ('marsh', 'mud', 'wetland', 'wood') OR landuse = 'forest')\n    AND building IS NULL\n    AND way_area > 0.01*!pixel_width!::real*!pixel_height!::real\n  ORDER BY z_order, way_area DESC\n) AS landcover_area_symbols",
  337.         "geometry_field": "way",
  338.         "type": "postgis",
  339.         "key_field": "",
  340.         "dbname": "osm_south",
  341.         "host": "localhost",
  342.         "user": "postgres",
  343.         "password": "lumosgis"
  344.       },
  345.       "extent": [
  346.         -180,
  347.         -85.05112877980659,
  348.         180,
  349.         85.05112877980659
  350.       ],
  351.       "properties": {
  352.         "minzoom": 10
  353.       },
  354.       "advanced": {}
  355.     },
  356.     {
  357.       "name": "icesheet-outlines",
  358.       "srs-name": "900913",
  359.       "geometry": "linestring",
  360.       "class": "",
  361.       "id": "icesheet-outlines",
  362.       "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",
  363.       "Datasource": {
  364.         "type": "shape",
  365.         "file": "data/antarctica-icesheet-outlines-3857/icesheet_outlines.shp"
  366.       },
  367.       "extent": [
  368.         -180,
  369.         -85.05112877980659,
  370.         180,
  371.         85.05112877980659
  372.       ],
  373.       "properties": {
  374.         "minzoom": 4
  375.       },
  376.       "advanced": {}
  377.     },
  378.     {
  379.       "name": "water-lines",
  380.       "srs-name": "900913",
  381.       "geometry": "linestring",
  382.       "class": "water-lines",
  383.       "id": "water-lines",
  384.       "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",
  385.       "Datasource": {
  386.         "extent": "-20037508,-20037508,20037508,20037508",
  387.         "table": "(SELECT\n    way, waterway, name, intermittent,\n    CASE WHEN tunnel IN ('yes', 'culvert') THEN 'yes' ELSE 'no' END AS int_tunnel,\n    'no' AS bridge\n  FROM planet_osm_line\n  WHERE waterway IN ('river', 'canal', 'derelict_canal', 'stream', 'drain', 'ditch', 'wadi')\n    AND (bridge IS NULL OR bridge NOT IN ('yes', 'aqueduct'))\n  ORDER BY z_order\n) AS water_lines",
  388.         "geometry_field": "way",
  389.         "type": "postgis",
  390.         "key_field": "",
  391.         "dbname": "osm_south",
  392.         "host": "localhost",
  393.         "user": "postgres",
  394.         "password": "lumosgis"
  395.       },
  396.       "extent": [
  397.         -180,
  398.         -85.05112877980659,
  399.         180,
  400.         85.05112877980659
  401.       ],
  402.       "properties": {
  403.         "minzoom": 12
  404.       },
  405.       "advanced": {}
  406.     },
  407.     {
  408.       "name": "water-barriers-line",
  409.       "srs-name": "900913",
  410.       "geometry": "linestring",
  411.       "class": "",
  412.       "id": "water-barriers-line",
  413.       "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",
  414.       "Datasource": {
  415.         "extent": "-20037508,-20037508,20037508,20037508",
  416.         "table": "(SELECT way, waterway, name\n  FROM planet_osm_line\n  WHERE waterway IN ('dam', 'weir', 'lock_gate')\n) AS water_barriers_line",
  417.         "geometry_field": "way",
  418.         "type": "postgis",
  419.         "key_field": "",
  420.         "dbname": "osm_south",
  421.         "host": "localhost",
  422.         "user": "postgres",
  423.         "password": "lumosgis"
  424.       },
  425.       "extent": [
  426.         -180,
  427.         -85.05112877980659,
  428.         180,
  429.         85.05112877980659
  430.       ],
  431.       "properties": {
  432.         "minzoom": 13
  433.       },
  434.       "advanced": {}
  435.     },
  436.     {
  437.       "name": "water-barriers-poly",
  438.       "srs-name": "900913",
  439.       "geometry": "polygon",
  440.       "class": "",
  441.       "id": "water-barriers-poly",
  442.       "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",
  443.       "Datasource": {
  444.         "extent": "-20037508,-20037508,20037508,20037508",
  445.         "table": "(SELECT way, waterway, name\n  FROM planet_osm_polygon\n  WHERE waterway IN ('dam', 'weir', 'lock_gate')\n) AS water_barriers_poly",
  446.         "geometry_field": "way",
  447.         "type": "postgis",
  448.         "key_field": "",
  449.         "dbname": "osm_south",
  450.         "host": "localhost",
  451.         "user": "postgres",
  452.         "password": "lumosgis"
  453.       },
  454.       "extent": [
  455.         -180,
  456.         -85.05112877980659,
  457.         180,
  458.         85.05112877980659
  459.       ],
  460.       "properties": {
  461.         "minzoom": 13
  462.       },
  463.       "advanced": {}
  464.     },
  465.     {
  466.       "name": "marinas-area",
  467.       "srs-name": "900913",
  468.       "geometry": "polygon",
  469.       "class": "",
  470.       "id": "marinas-area",
  471.       "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",
  472.       "Datasource": {
  473.         "extent": "-20037508,-20037508,20037508,20037508",
  474.         "table": "(SELECT\n    way\n  FROM planet_osm_polygon\n  WHERE leisure = 'marina'\n) AS marinas_area",
  475.         "geometry_field": "way",
  476.         "type": "postgis",
  477.         "key_field": "",
  478.         "dbname": "osm_south",
  479.         "host": "localhost",
  480.         "user": "postgres",
  481.         "password": "lumosgis"
  482.       },
  483.       "extent": [
  484.         -180,
  485.         -85.05112877980659,
  486.         180,
  487.         85.05112877980659
  488.       ],
  489.       "properties": {
  490.         "minzoom": 14
  491.       },
  492.       "advanced": {}
  493.     },
  494.     {
  495.       "name": "piers-poly",
  496.       "srs-name": "900913",
  497.       "geometry": "polygon",
  498.       "class": "",
  499.       "id": "piers-poly",
  500.       "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",
  501.       "Datasource": {
  502.         "extent": "-20037508,-20037508,20037508,20037508",
  503.         "table": "(SELECT\n    way, man_made\n  FROM planet_osm_polygon\n  WHERE man_made IN ('pier', 'breakwater', 'groyne')\n) AS piers_poly",
  504.         "geometry_field": "way",
  505.         "type": "postgis",
  506.         "key_field": "",
  507.         "dbname": "osm_south",
  508.         "host": "localhost",
  509.         "user": "postgres",
  510.         "password": "lumosgis"
  511.       },
  512.       "extent": [
  513.         -180,
  514.         -85.05112877980659,
  515.         180,
  516.         85.05112877980659
  517.       ],
  518.       "properties": {
  519.         "minzoom": 12
  520.       },
  521.       "advanced": {}
  522.     },
  523.     {
  524.       "name": "piers-line",
  525.       "srs-name": "900913",
  526.       "geometry": "linestring",
  527.       "class": "",
  528.       "id": "piers-line",
  529.       "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",
  530.       "Datasource": {
  531.         "extent": "-20037508,-20037508,20037508,20037508",
  532.         "table": "(SELECT\n    way, man_made\n  FROM planet_osm_line\n  WHERE man_made IN ('pier', 'breakwater', 'groyne')\n) AS piers_line",
  533.         "geometry_field": "way",
  534.         "type": "postgis",
  535.         "key_field": "",
  536.         "dbname": "osm_south",
  537.         "host": "localhost",
  538.         "user": "postgres",
  539.         "password": "lumosgis"
  540.       },
  541.       "extent": [
  542.         -180,
  543.         -85.05112877980659,
  544.         180,
  545.         85.05112877980659
  546.       ],
  547.       "properties": {
  548.         "minzoom": 12
  549.       },
  550.       "advanced": {}
  551.     },
  552.     {
  553.       "name": "water-barriers-point",
  554.       "srs-name": "900913",
  555.       "geometry": "point",
  556.       "class": "",
  557.       "id": "water-barriers-point",
  558.       "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",
  559.       "Datasource": {
  560.         "extent": "-20037508,-20037508,20037508,20037508",
  561.         "table": "(SELECT\n    way, waterway\n  FROM planet_osm_point\n  WHERE waterway IN ('dam', 'weir', 'lock_gate')\n) AS water_barriers_points",
  562.         "geometry_field": "way",
  563.         "type": "postgis",
  564.         "key_field": "",
  565.         "dbname": "osm_south",
  566.         "host": "localhost",
  567.         "user": "postgres",
  568.         "password": "lumosgis"
  569.       },
  570.       "extent": [
  571.         -180,
  572.         -85.05112877980659,
  573.         180,
  574.         85.05112877980659
  575.       ],
  576.       "properties": {
  577.         "minzoom": 17
  578.       },
  579.       "advanced": {}
  580.     },
  581.     {
  582.       "name": "bridge",
  583.       "srs-name": "900913",
  584.       "geometry": "polygon",
  585.       "class": "",
  586.       "id": "bridge",
  587.       "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",
  588.       "Datasource": {
  589.         "extent": "-20037508,-20037508,20037508,20037508",
  590.         "table": "(SELECT\n    way,\n    way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels,\n    man_made,\n    name\n  FROM planet_osm_polygon\n  WHERE man_made = 'bridge'\n) AS bridge",
  591.         "geometry_field": "way",
  592.         "type": "postgis",
  593.         "key_field": "",
  594.         "dbname": "osm_south",
  595.         "host": "localhost",
  596.         "user": "postgres",
  597.         "password": "lumosgis"
  598.       },
  599.       "extent": [
  600.         -180,
  601.         -85.05112877980659,
  602.         180,
  603.         85.05112877980659
  604.       ],
  605.       "properties": {
  606.         "minzoom": 12
  607.       },
  608.       "advanced": {}
  609.     },
  610.     {
  611.       "name": "buildings",
  612.       "srs-name": "900913",
  613.       "geometry": "polygon",
  614.       "class": "",
  615.       "id": "buildings",
  616.       "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",
  617.       "Datasource": {
  618.         "extent": "-20037508,-20037508,20037508,20037508",
  619.         "table": "(SELECT\n    way,\n    building\n  FROM planet_osm_polygon\n  WHERE building IS NOT NULL\n    AND building != 'no'\n    AND way_area > 0.01*!pixel_width!::real*!pixel_height!::real\n  ORDER BY z_order, way_area DESC\n) AS buildings",
  620.         "geometry_field": "way",
  621.         "type": "postgis",
  622.         "key_field": "",
  623.         "dbname": "osm_south",
  624.         "host": "localhost",
  625.         "user": "postgres",
  626.         "password": "lumosgis"
  627.       },
  628.       "extent": [
  629.         -180,
  630.         -85.05112877980659,
  631.         180,
  632.         85.05112877980659
  633.       ],
  634.       "properties": {
  635.         "minzoom": 12
  636.       },
  637.       "advanced": {}
  638.     },
  639.     {
  640.       "name": "buildings-major",
  641.       "srs-name": "900913",
  642.       "geometry": "polygon",
  643.       "class": "",
  644.       "id": "buildings-major",
  645.       "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",
  646.       "Datasource": {
  647.         "extent": "-20037508,-20037508,20037508,20037508",
  648.         "table": "(SELECT\n    way,\n    building,\n    amenity,\n    aeroway\n  FROM planet_osm_polygon\n  WHERE building IS NOT NULL\n    AND building != 'no'\n    AND (aeroway = 'terminal' OR amenity = 'place_of_worship')\n    AND way_area > 0.01*!pixel_width!::real*!pixel_height!::real\n  ORDER BY z_order, way_area DESC)\nAS buildings_major",
  649.         "geometry_field": "way",
  650.         "type": "postgis",
  651.         "key_field": "",
  652.         "dbname": "osm_south",
  653.         "host": "localhost",
  654.         "user": "postgres",
  655.         "password": "lumosgis"
  656.       },
  657.       "extent": [
  658.         -180,
  659.         -85.05112877980659,
  660.         180,
  661.         85.05112877980659
  662.       ],
  663.       "properties": {
  664.         "minzoom": 12
  665.       },
  666.       "advanced": {}
  667.     },
  668.     {
  669.       "name": "tunnels",
  670.       "srs-name": "900913",
  671.       "geometry": "linestring",
  672.       "class": "tunnels-fill tunnels-casing access directions",
  673.       "id": "tunnels",
  674.       "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",
  675.       "Datasource": {
  676.         "extent": "-20037508,-20037508,20037508,20037508",
  677.         "table": "(SELECT way, (CASE WHEN substr(feature, length(feature)-3, 4) = 'link' THEN substr(feature, 0, length(feature)-4) ELSE feature END) AS feature,\n        horse, foot, bicycle, tracktype, int_surface, access, construction,\n        service, oneway, link, layernotnull\n  FROM ( -- subselect that contains both roads and rail/aero\n    SELECT\n        way,\n        ('highway_' || highway) AS feature, --only motorway to tertiary links are accepted later on\n        horse,\n        foot,\n        bicycle,\n        tracktype,\n        CASE WHEN surface IN ('unpaved', 'compacted', 'dirt', 'earth', 'fine_gravel', 'grass', \n                              'grass_paver', 'gravel', 'ground', 'mud', 'pebblestone', 'salt', 'sand', 'woodchips', 'clay') THEN 'unpaved' ELSE \n          CASE WHEN surface IN ('paved', 'asphalt', 'cobblestone', 'cobblestone:flattened', 'sett', 'concrete', 'concrete:lanes', \n                                'concrete:plates', 'paving_stones', 'metal', 'wood') THEN 'paved' \n          ELSE null END END AS int_surface,\n        CASE WHEN access IN ('destination') THEN 'destination'::text\n          WHEN access IN ('no', 'private') THEN 'no'::text\n          ELSE NULL\n        END AS access,\n        construction,\n        CASE\n          WHEN service IN ('parking_aisle', 'drive-through', 'driveway') THEN 'INT-minor'::text\n          ELSE 'INT-normal'::text\n        END AS service,\n        CASE\n          WHEN oneway IN ('yes', '-1') THEN oneway\n          WHEN junction IN ('roundabout') AND (oneway IS NULL OR NOT oneway IN ('no', 'reversible')) THEN 'yes'\n          ELSE NULL\n        END AS oneway,\n        CASE\n          WHEN substr(highway, length(highway)-3, 4) = 'link' THEN 'yes'\n          ELSE 'no'\n        END AS link,\n        CASE WHEN layer~E'^-?\\\\d+$' AND length(layer)<10 THEN layer::integer ELSE 0 END AS layernotnull\n      FROM planet_osm_line\n      WHERE (tunnel = 'yes' OR tunnel = 'building_passage' OR covered = 'yes')\n        AND highway IS NOT NULL -- end of road select\n    UNION ALL\n    SELECT\n        way,\n        COALESCE(\n          ('railway_' || (CASE WHEN railway = 'preserved' AND service IN ('spur', 'siding', 'yard') THEN 'INT-preserved-ssy'::text \n                               WHEN (railway = 'rail' AND service IN ('spur', 'siding', 'yard')) THEN 'INT-spur-siding-yard'  \n                               WHEN (railway = 'tram' AND service IN ('spur', 'siding', 'yard')) THEN 'tram-service' ELSE railway END)),\n          ('aeroway_' || aeroway)\n        ) AS feature,\n        horse,\n        foot,\n        bicycle,\n        tracktype,\n        'null',\n        CASE\n          WHEN access IN ('destination') THEN 'destination'::text\n          WHEN access IN ('no', 'private') THEN 'no'::text\n          ELSE NULL\n        END AS access,\n        construction,\n        CASE WHEN service IN ('parking_aisle', 'drive-through', 'driveway') THEN 'INT-minor'::text ELSE 'INT-normal'::text END AS service,\n        NULL AS oneway,\n        'no' AS link,\n        CASE WHEN layer~E'^-?\\\\d+$' AND length(layer)<10 THEN layer::integer ELSE 0 END AS layernotnull\n      FROM planet_osm_line\n      WHERE (tunnel = 'yes' OR tunnel = 'building_passage' OR covered = 'yes')\n        AND (railway IS NOT NULL OR aeroway IS NOT NULL) -- end of rail/aero select\n    ) AS features\n  JOIN (VALUES -- this join is also putting a condition on what is selected. features not matching it do not make it into the results.\n      ('railway_rail', 440),\n      ('railway_INT-preserved-ssy', 430),\n      ('railway_INT-spur-siding-yard', 430),\n      ('railway_subway', 420),\n      ('railway_narrow_gauge', 420),\n      ('railway_light_rail', 420),\n      ('railway_preserved', 420),\n      ('railway_funicular', 420),\n      ('railway_monorail', 420),\n      ('railway_miniature', 420),\n      ('railway_turntable', 420),\n      ('railway_tram', 410),\n      ('railway_tram-service', 405),\n      ('railway_disused', 400),\n      ('railway_construction', 400),\n      ('highway_motorway', 380),\n      ('highway_trunk', 370),\n      ('highway_primary', 360),\n      ('highway_secondary', 350),\n      ('highway_tertiary', 340),\n      ('highway_residential', 330),\n      ('highway_unclassified', 330),\n      ('highway_road', 330),\n      ('highway_living_street', 320),\n      ('highway_pedestrian', 310),\n      ('highway_raceway', 300),\n      ('highway_motorway_link', 240),\n      ('highway_trunk_link', 230),\n      ('highway_primary_link', 220),\n      ('highway_secondary_link', 210),\n      ('highway_tertiary_link', 200),\n      ('highway_service', 150),\n      ('highway_track', 110),\n      ('highway_path', 100),\n      ('highway_footway', 100),\n      ('highway_bridleway', 100),\n      ('highway_cycleway', 100),\n      ('highway_steps', 100),\n      ('highway_platform', 90),\n      ('railway_platform', 90),\n      ('aeroway_runway', 60),\n      ('aeroway_taxiway', 50),\n      ('highway_construction', 10)\n    ) AS ordertable (feature, prio)\n    USING (feature)\n  ORDER BY\n    layernotnull,\n    prio,\n    CASE WHEN access IN ('no', 'private') THEN 0 WHEN access IN ('destination') THEN 1 ELSE 2 END,\n    CASE WHEN int_surface IN ('unpaved') THEN 0 ELSE 2 END\n) AS tunnels",
  678.         "geometry_field": "way",
  679.         "type": "postgis",
  680.         "key_field": "",
  681.         "dbname": "osm_south",
  682.         "host": "localhost",
  683.         "user": "postgres",
  684.         "password": "lumosgis"
  685.       },
  686.       "extent": [
  687.         -180,
  688.         -85.05112877980659,
  689.         180,
  690.         85.05112877980659
  691.       ],
  692.       "properties": {
  693.         "group-by": "layernotnull",
  694.         "minzoom": 9
  695.       },
  696.       "advanced": {}
  697.     },
  698.     {
  699.       "name": "citywalls",
  700.       "srs-name": "900913",
  701.       "geometry": "linestring",
  702.       "class": "",
  703.       "id": "citywalls",
  704.       "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",
  705.       "Datasource": {
  706.         "extent": "-20037508,-20037508,20037508,20037508",
  707.         "table": "(SELECT\n    way\n  FROM planet_osm_line\n  WHERE historic = 'citywalls')\nAS citywalls",
  708.         "geometry_field": "way",
  709.         "type": "postgis",
  710.         "key_field": "",
  711.         "dbname": "osm_south",
  712.         "host": "localhost",
  713.         "user": "postgres",
  714.         "password": "lumosgis"
  715.       },
  716.       "extent": [
  717.         -180,
  718.         -85.05112877980659,
  719.         180,
  720.         85.05112877980659
  721.       ],
  722.       "properties": {
  723.         "minzoom": 14
  724.       },
  725.       "advanced": {}
  726.     },
  727.     {
  728.       "name": "landuse-overlay",
  729.       "srs-name": "900913",
  730.       "geometry": "polygon",
  731.       "class": "",
  732.       "id": "landuse-overlay",
  733.       "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",
  734.       "Datasource": {
  735.         "extent": "-20037508,-20037508,20037508,20037508",
  736.         "table": "(SELECT\n    way,\n    landuse,\n    way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels\n  FROM planet_osm_polygon\n  WHERE landuse = 'military'\n    AND building IS NULL\n) AS landuse_overlay",
  737.         "geometry_field": "way",
  738.         "type": "postgis",
  739.         "key_field": "",
  740.         "dbname": "osm_south",
  741.         "host": "localhost",
  742.         "user": "postgres",
  743.         "password": "lumosgis"
  744.       },
  745.       "extent": [
  746.         -180,
  747.         -85.05112877980659,
  748.         180,
  749.         85.05112877980659
  750.       ],
  751.       "properties": {
  752.         "minzoom": 7
  753.       },
  754.       "advanced": {}
  755.     },
  756.     {
  757.       "name": "line-barriers",
  758.       "srs-name": "900913",
  759.       "geometry": "linestring",
  760.       "class": "barriers",
  761.       "id": "line-barriers",
  762.       "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",
  763.       "Datasource": {
  764.         "extent": "-20037508,-20037508,20037508,20037508",
  765.         "table": "(SELECT\n    way, barrier\n  FROM planet_osm_line\n  WHERE barrier IS NOT NULL\n) AS line_barriers",
  766.         "geometry_field": "way",
  767.         "type": "postgis",
  768.         "key_field": "",
  769.         "dbname": "osm_south",
  770.         "host": "localhost",
  771.         "user": "postgres",
  772.         "password": "lumosgis"
  773.       },
  774.       "extent": [
  775.         -180,
  776.         -85.05112877980659,
  777.         180,
  778.         85.05112877980659
  779.       ],
  780.       "properties": {
  781.         "minzoom": 16
  782.       },
  783.       "advanced": {}
  784.     },
  785.     {
  786.       "name": "cliffs",
  787.       "srs-name": "900913",
  788.       "geometry": "linestring",
  789.       "class": "",
  790.       "id": "cliffs",
  791.       "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",
  792.       "Datasource": {
  793.         "extent": "-20037508,-20037508,20037508,20037508",
  794.         "table": "(SELECT\n    way, \"natural\", man_made\n  FROM planet_osm_line\n  WHERE \"natural\" = 'cliff' OR man_made = 'embankment'\n) AS cliffs",
  795.         "geometry_field": "way",
  796.         "type": "postgis",
  797.         "key_field": "",
  798.         "dbname": "osm_south",
  799.         "host": "localhost",
  800.         "user": "postgres",
  801.         "password": "lumosgis"
  802.       },
  803.       "extent": [
  804.         -180,
  805.         -85.05112877980659,
  806.         180,
  807.         85.05112877980659
  808.       ],
  809.       "properties": {
  810.         "minzoom": 13
  811.       },
  812.       "advanced": {}
  813.     },
  814.     {
  815.       "name": "area-barriers",
  816.       "srs-name": "900913",
  817.       "geometry": "polygon",
  818.       "class": "barriers",
  819.       "id": "area-barriers",
  820.       "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",
  821.       "Datasource": {
  822.         "extent": "-20037508,-20037508,20037508,20037508",
  823.         "table": "(SELECT\n    way, barrier\n  FROM planet_osm_polygon\n  WHERE barrier IS NOT NULL\n) AS area_barriers",
  824.         "geometry_field": "way",
  825.         "type": "postgis",
  826.         "key_field": "",
  827.         "dbname": "osm_south",
  828.         "host": "localhost",
  829.         "user": "postgres",
  830.         "password": "lumosgis"
  831.       },
  832.       "extent": [
  833.         -180,
  834.         -85.05112877980659,
  835.         180,
  836.         85.05112877980659
  837.       ],
  838.       "properties": {
  839.         "minzoom": 16
  840.       },
  841.       "advanced": {}
  842.     },
  843.     {
  844.       "name": "ferry-routes",
  845.       "srs-name": "900913",
  846.       "geometry": "linestring",
  847.       "class": "",
  848.       "id": "ferry-routes",
  849.       "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",
  850.       "Datasource": {
  851.         "extent": "-20037508,-20037508,20037508,20037508",
  852.         "table": "(SELECT\n    way\n  FROM planet_osm_line\n  WHERE route = 'ferry'\n) AS ferry_routes",
  853.         "geometry_field": "way",
  854.         "type": "postgis",
  855.         "key_field": "",
  856.         "dbname": "osm_south",
  857.         "host": "localhost",
  858.         "user": "postgres",
  859.         "password": "lumosgis"
  860.       },
  861.       "extent": [
  862.         -180,
  863.         -85.05112877980659,
  864.         180,
  865.         85.05112877980659
  866.       ],
  867.       "properties": {
  868.         "minzoom": 7
  869.       },
  870.       "advanced": {}
  871.     },
  872.     {
  873.       "name": "turning-circle-casing",
  874.       "srs-name": "900913",
  875.       "geometry": "point",
  876.       "class": "",
  877.       "id": "turning-circle-casing",
  878.       "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",
  879.       "Datasource": {
  880.         "extent": "-20037508,-20037508,20037508,20037508",
  881.         "table": "(SELECT DISTINCT ON (p.way)\n    p.way AS way, l.highway AS int_tc_type,\n    CASE WHEN l.service IN ('parking_aisle', 'drive-through', 'driveway')\n      THEN 'INT-minor'::text\n      ELSE 'INT-normal'::text\n    END AS int_tc_service\n  FROM planet_osm_point p\n    JOIN planet_osm_line l ON ST_DWithin(p.way, l.way, 0.1) -- Assumes Mercator\n    JOIN (VALUES\n      ('tertiary', 1),\n      ('unclassified', 2),\n      ('residential', 3),\n      ('living_street', 4),\n      ('service', 5)\n      ) AS v (highway, prio)\n      ON v.highway=l.highway\n  WHERE p.highway = 'turning_circle'\n    OR p.highway = 'turning_loop'\n  ORDER BY p.way, v.prio\n) AS turning_circle_casing",
  882.         "geometry_field": "way",
  883.         "type": "postgis",
  884.         "key_field": "",
  885.         "dbname": "osm_south",
  886.         "host": "localhost",
  887.         "user": "postgres",
  888.         "password": "lumosgis"
  889.       },
  890.       "extent": [
  891.         -180,
  892.         -85.05112877980659,
  893.         180,
  894.         85.05112877980659
  895.       ],
  896.       "properties": {
  897.         "minzoom": 15
  898.       },
  899.       "advanced": {}
  900.     },
  901.     {
  902.       "name": "highway-area-casing",
  903.       "srs-name": "900913",
  904.       "geometry": "polygon",
  905.       "class": "",
  906.       "id": "highway-area-casing",
  907.       "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",
  908.       "Datasource": {
  909.         "extent": "-20037508,-20037508,20037508,20037508",
  910.         "table": "(SELECT\n    way,\n    COALESCE((\n      'highway_' || (CASE WHEN highway IN ('residential', 'unclassified', 'pedestrian', 'service', 'footway', 'cycleway', 'track', 'path', 'platform') THEN highway ELSE NULL END)),\n      ('railway_' || (CASE WHEN railway IN ('platform') THEN railway ELSE NULL END))\n    ) AS feature\n  FROM planet_osm_polygon\n  WHERE highway IN ('residential', 'unclassified', 'pedestrian', 'service', 'footway', 'track', 'path', 'platform')\n    OR railway IN ('platform')\n  ORDER BY z_order, way_area DESC\n) AS highway_area_casing",
  911.         "geometry_field": "way",
  912.         "type": "postgis",
  913.         "key_field": "",
  914.         "dbname": "osm_south",
  915.         "host": "localhost",
  916.         "user": "postgres",
  917.         "password": "lumosgis"
  918.       },
  919.       "extent": [
  920.         -180,
  921.         -85.05112877980659,
  922.         180,
  923.         85.05112877980659
  924.       ],
  925.       "properties": {
  926.         "minzoom": 14
  927.       },
  928.       "advanced": {}
  929.     },
  930.     {
  931.       "name": "roads-casing",
  932.       "srs-name": "900913",
  933.       "geometry": "linestring",
  934.       "class": "roads-casing",
  935.       "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",
  936.       "Datasource": {
  937.         "extent": "-20037508,-20037508,20037508,20037508",
  938.         "table": "(SELECT way, (CASE WHEN substr(feature, length(feature)-3, 4) = 'link' THEN substr(feature, 0, length(feature)-4) ELSE feature END) AS feature,\n        horse, foot, bicycle, tracktype, int_surface, access, construction,\n        service, oneway, link, layernotnull\n  FROM ( -- subselect that contains both roads and rail/aero\n    SELECT\n        way,\n        ('highway_' || highway) AS feature, --only motorway to tertiary links are accepted later on\n        horse,\n        foot,\n        bicycle,\n        tracktype,\n        CASE WHEN surface IN ('unpaved', 'compacted', 'dirt', 'earth', 'fine_gravel', 'grass', \n                              'grass_paver', 'gravel', 'ground', 'mud', 'pebblestone', 'salt', 'sand', 'woodchips', 'clay') THEN 'unpaved' ELSE \n          CASE WHEN surface IN ('paved', 'asphalt', 'cobblestone', 'cobblestone:flattened', 'sett', 'concrete', 'concrete:lanes', \n                                'concrete:plates', 'paving_stones', 'metal', 'wood') THEN 'paved' \n          ELSE null END END AS int_surface,\n        CASE WHEN access IN ('destination') THEN 'destination'::text\n          WHEN access IN ('no', 'private') THEN 'no'::text\n          ELSE NULL\n        END AS access,\n        construction,\n        CASE\n          WHEN service IN ('parking_aisle', 'drive-through', 'driveway') THEN 'INT-minor'::text\n          ELSE 'INT-normal'::text\n        END AS service,\n        CASE\n          WHEN oneway IN ('yes', '-1') THEN oneway\n          WHEN junction IN ('roundabout') AND (oneway IS NULL OR NOT oneway IN ('no', 'reversible')) THEN 'yes'\n          ELSE NULL\n        END AS oneway,\n        CASE\n          WHEN substr(highway, length(highway)-3, 4) = 'link' THEN 'yes'\n          ELSE 'no'\n        END AS link,\n        CASE WHEN layer~E'^-?\\\\d+$' AND length(layer)<10 THEN layer::integer ELSE 0 END AS layernotnull\n      FROM planet_osm_line\n      WHERE (tunnel IS NULL OR NOT tunnel IN ('yes', 'building_passage'))\n        AND (covered IS NULL OR NOT covered = 'yes')\n        AND (bridge IS NULL OR NOT bridge IN ('yes', 'boardwalk', 'cantilever', 'covered', 'low_water_crossing', 'movable', 'trestle', 'viaduct'))\n        AND highway IS NOT NULL -- end of road select\n    UNION ALL\n    SELECT\n        way,\n        COALESCE(\n          ('railway_' || (CASE WHEN railway = 'preserved' AND service IN ('spur', 'siding', 'yard') THEN 'INT-preserved-ssy'::text \n                               WHEN (railway = 'rail' AND service IN ('spur', 'siding', 'yard')) THEN 'INT-spur-siding-yard'  \n                               WHEN (railway = 'tram' AND service IN ('spur', 'siding', 'yard')) THEN 'tram-service' ELSE railway END)),\n          ('aeroway_' || aeroway)\n        ) AS feature,\n        horse,\n        foot,\n        bicycle,\n        tracktype,\n        'null',\n        CASE\n          WHEN access IN ('destination') THEN 'destination'::text\n          WHEN access IN ('no', 'private') THEN 'no'::text\n          ELSE NULL\n        END AS access,\n        construction,\n        CASE WHEN service IN ('parking_aisle', 'drive-through', 'driveway') THEN 'INT-minor'::text ELSE 'INT-normal'::text END AS service,\n        NULL AS oneway,\n        'no' AS link,\n        CASE WHEN layer~E'^-?\\\\d+$' AND length(layer)<10 THEN layer::integer ELSE 0 END AS layernotnull\n      FROM planet_osm_line\n      WHERE (tunnel IS NULL OR NOT tunnel IN ('yes', 'building_passage'))\n        AND (covered IS NULL OR NOT covered = 'yes')\n        AND (bridge IS NULL OR NOT bridge IN ('yes', 'boardwalk', 'cantilever', 'covered', 'low_water_crossing', 'movable', 'trestle', 'viaduct'))\n        AND (railway IS NOT NULL OR aeroway IS NOT NULL) -- end of rail/aero select\n    ) AS features\n  JOIN (VALUES -- this join is also putting a condition on what is selected. features not matching it do not make it into the results.\n      ('railway_rail', 440),\n      ('railway_INT-preserved-ssy', 430),\n      ('railway_INT-spur-siding-yard', 430),\n      ('railway_subway', 420),\n      ('railway_narrow_gauge', 420),\n      ('railway_light_rail', 420),\n      ('railway_preserved', 420),\n      ('railway_funicular', 420),\n      ('railway_monorail', 420),\n      ('railway_miniature', 420),\n      ('railway_turntable', 420),\n      ('railway_tram', 410),\n      ('railway_tram-service', 405),\n      ('railway_disused', 400),\n      ('railway_construction', 400),\n      ('highway_motorway', 380),\n      ('highway_trunk', 370),\n      ('highway_primary', 360),\n      ('highway_secondary', 350),\n      ('highway_tertiary', 340),\n      ('highway_residential', 330),\n      ('highway_unclassified', 330),\n      ('highway_road', 330),\n      ('highway_living_street', 320),\n      ('highway_pedestrian', 310),\n      ('highway_raceway', 300),\n      ('highway_motorway_link', 240),\n      ('highway_trunk_link', 230),\n      ('highway_primary_link', 220),\n      ('highway_secondary_link', 210),\n      ('highway_tertiary_link', 200),\n      ('highway_service', 150),\n      ('highway_track', 110),\n      ('highway_path', 100),\n      ('highway_footway', 100),\n      ('highway_bridleway', 100),\n      ('highway_cycleway', 100),\n      ('highway_steps', 100),\n      ('highway_platform', 90),\n      ('railway_platform', 90),\n      ('aeroway_runway', 60),\n      ('aeroway_taxiway', 50),\n      ('highway_construction', 10)\n    ) AS ordertable (feature, prio)\n    USING (feature)\n  ORDER BY\n    layernotnull,\n    prio,\n    CASE WHEN access IN ('no', 'private') THEN 0 WHEN access IN ('destination') THEN 1 ELSE 2 END,\n    CASE WHEN int_surface IN ('unpaved') THEN 0 ELSE 2 END\n) AS roads_casing",
  939.         "geometry_field": "way",
  940.         "type": "postgis",
  941.         "key_field": "",
  942.         "dbname": "osm_south",
  943.         "host": "localhost",
  944.         "user": "postgres",
  945.         "password": "lumosgis"
  946.       },
  947.       "extent": [
  948.         -180,
  949.         -85.05112877980659,
  950.         180,
  951.         85.05112877980659
  952.       ],
  953.       "id": "roads-casing",
  954.       "properties": {
  955.         "minzoom": 9
  956.       },
  957.       "advanced": {}
  958.     },
  959.     {
  960.       "name": "highway-area-fill",
  961.       "srs-name": "900913",
  962.       "class": "",
  963.       "id": "highway-area-fill",
  964.       "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",
  965.       "Datasource": {
  966.         "extent": "-20037508,-20037508,20037508,20037508",
  967.         "table": "(SELECT\n    way,\n    COALESCE(\n      ('highway_' || (CASE WHEN highway IN ('residential', 'unclassified', 'pedestrian', 'service', 'footway', 'cycleway', 'living_street', \n                                            'track', 'path', 'platform', 'services') THEN highway ELSE NULL END)),\n      ('railway_' || (CASE WHEN railway IN ('platform') THEN railway ELSE NULL END)),\n      (('aeroway_' || CASE WHEN aeroway IN ('runway', 'taxiway', 'helipad') THEN aeroway ELSE NULL END))\n    ) AS feature\n  FROM planet_osm_polygon\n  WHERE highway IN ('residential', 'unclassified', 'pedestrian', 'service', 'footway', 'living_street', 'track', 'path', 'platform', 'services')\n    OR railway IN ('platform')\n    OR aeroway IN ('runway', 'taxiway', 'helipad')\n  ORDER BY z_order, way_area desc\n) AS highway_area_fill",
  968.         "geometry_field": "way",
  969.         "type": "postgis",
  970.         "key_field": "",
  971.         "dbname": "osm_south",
  972.         "host": "localhost",
  973.         "user": "postgres",
  974.         "password": "lumosgis"
  975.       },
  976.       "extent": [
  977.         -180,
  978.         -85.05112877980659,
  979.         180,
  980.         85.05112877980659
  981.       ],
  982.       "properties": {
  983.         "minzoom": 14
  984.       },
  985.       "advanced": {}
  986.     },
  987.     {
  988.       "name": "roads-fill",
  989.       "srs-name": "900913",
  990.       "geometry": "linestring",
  991.       "class": "roads-fill access directions",
  992.       "id": "roads-fill",
  993.       "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",
  994.       "Datasource": {
  995.         "extent": "-20037508,-20037508,20037508,20037508",
  996.         "table": "(SELECT way, (CASE WHEN substr(feature, length(feature)-3, 4) = 'link' THEN substr(feature, 0, length(feature)-4) ELSE feature END) AS feature,\n        horse, foot, bicycle, tracktype, int_surface, access, construction,\n        service, oneway, link, layernotnull\n  FROM ( -- subselect that contains both roads and rail/aero\n    SELECT\n        way,\n        ('highway_' || highway) AS feature, --only motorway to tertiary links are accepted later on\n        horse,\n        foot,\n        bicycle,\n        tracktype,\n        CASE WHEN surface IN ('unpaved', 'compacted', 'dirt', 'earth', 'fine_gravel', 'grass', 'grass_paver', 'gravel', 'ground', \n                              'mud', 'pebblestone', 'salt', 'sand', 'woodchips', 'clay') THEN 'unpaved' ELSE \n          CASE WHEN surface IN ('paved', 'asphalt', 'cobblestone', 'cobblestone:flattened', 'sett', 'concrete', 'concrete:lanes', \n                                'concrete:plates', 'paving_stones', 'metal', 'wood') THEN 'paved' \n          ELSE null END END AS int_surface,\n        CASE WHEN access IN ('destination') THEN 'destination'::text\n          WHEN access IN ('no', 'private') THEN 'no'::text\n          ELSE NULL\n        END AS access,\n        construction,\n        CASE\n          WHEN service IN ('parking_aisle', 'drive-through', 'driveway') THEN 'INT-minor'::text\n          ELSE 'INT-normal'::text\n        END AS service,\n        CASE\n          WHEN oneway IN ('yes', '-1') THEN oneway\n          WHEN junction IN ('roundabout') AND (oneway IS NULL OR NOT oneway IN ('no', 'reversible')) THEN 'yes'\n          ELSE NULL\n        END AS oneway,\n        CASE\n          WHEN substr(highway, length(highway)-3, 4) = 'link' THEN 'yes'\n          ELSE 'no'\n        END AS link,\n        CASE WHEN layer~E'^-?\\\\d+$' AND length(layer)<10 THEN layer::integer ELSE 0 END AS layernotnull\n      FROM planet_osm_line\n      WHERE (tunnel IS NULL OR NOT tunnel IN ('yes', 'building_passage'))\n        AND (covered IS NULL OR NOT covered = 'yes')\n        AND (bridge IS NULL OR NOT bridge IN ('yes', 'boardwalk', 'cantilever', 'covered', 'low_water_crossing', 'movable', 'trestle', 'viaduct'))\n        AND highway IS NOT NULL -- end of road select\n    UNION ALL\n    SELECT\n        way,\n        COALESCE(\n          ('railway_' || (CASE WHEN railway = 'preserved' AND service IN ('spur', 'siding', 'yard') THEN 'INT-preserved-ssy'::text \n                               WHEN (railway = 'rail' AND service IN ('spur', 'siding', 'yard')) THEN 'INT-spur-siding-yard'  \n                               WHEN (railway = 'tram' AND service IN ('spur', 'siding', 'yard')) THEN 'tram-service' ELSE railway END)),\n          ('aeroway_' || aeroway)\n        ) AS feature,\n        horse,\n        foot,\n        bicycle,\n        tracktype,\n        'null',\n        CASE\n          WHEN access IN ('destination') THEN 'destination'::text\n          WHEN access IN ('no', 'private') THEN 'no'::text\n          ELSE NULL\n        END AS access,\n        construction,\n        CASE WHEN service IN ('parking_aisle', 'drive-through', 'driveway') THEN 'INT-minor'::text ELSE 'INT-normal'::text END AS service,\n        NULL AS oneway,\n        'no' AS link,\n        CASE WHEN layer~E'^-?\\\\d+$' AND length(layer)<10 THEN layer::integer ELSE 0 END AS layernotnull\n      FROM planet_osm_line\n      WHERE (tunnel IS NULL OR NOT tunnel IN ('yes', 'building_passage'))\n        AND (covered IS NULL OR NOT covered = 'yes')\n        AND (bridge IS NULL OR NOT bridge IN ('yes', 'boardwalk', 'cantilever', 'covered', 'low_water_crossing', 'movable', 'trestle', 'viaduct'))\n        AND (railway IS NOT NULL OR aeroway IS NOT NULL) -- end of rail/aero select\n    ) AS features\n  JOIN (VALUES -- this join is also putting a condition on what is selected. features not matching it do not make it into the results.\n      ('railway_rail', 440),\n      ('railway_INT-preserved-ssy', 430),\n      ('railway_INT-spur-siding-yard', 430),\n      ('railway_subway', 420),\n      ('railway_narrow_gauge', 420),\n      ('railway_light_rail', 420),\n      ('railway_preserved', 420),\n      ('railway_funicular', 420),\n      ('railway_monorail', 420),\n      ('railway_miniature', 420),\n      ('railway_turntable', 420),\n      ('railway_tram', 410),\n      ('railway_tram-service', 405),\n      ('railway_disused', 400),\n      ('railway_construction', 400),\n      ('highway_motorway', 380),\n      ('highway_trunk', 370),\n      ('highway_primary', 360),\n      ('highway_secondary', 350),\n      ('highway_tertiary', 340),\n      ('highway_residential', 330),\n      ('highway_unclassified', 330),\n      ('highway_road', 330),\n      ('highway_living_street', 320),\n      ('highway_pedestrian', 310),\n      ('highway_raceway', 300),\n      ('highway_motorway_link', 240),\n      ('highway_trunk_link', 230),\n      ('highway_primary_link', 220),\n      ('highway_secondary_link', 210),\n      ('highway_tertiary_link', 200),\n      ('highway_service', 150),\n      ('highway_track', 110),\n      ('highway_path', 100),\n      ('highway_footway', 100),\n      ('highway_bridleway', 100),\n      ('highway_cycleway', 100),\n      ('highway_steps', 100),\n      ('highway_platform', 90),\n      ('railway_platform', 90),\n      ('aeroway_runway', 60),\n      ('aeroway_taxiway', 50),\n      ('highway_construction', 10)\n    ) AS ordertable (feature, prio)\n    USING (feature)\n  ORDER BY\n    layernotnull,\n    prio,\n    CASE WHEN access IN ('no', 'private') THEN 0 WHEN access IN ('destination') THEN 1 ELSE 2 END,\n    CASE WHEN int_surface IN ('unpaved') THEN 0 ELSE 2 END\n) AS roads_fill",
  997.         "geometry_field": "way",
  998.         "type": "postgis",
  999.         "key_field": "",
  1000.         "dbname": "osm_south",
  1001.         "host": "localhost",
  1002.         "user": "postgres",
  1003.         "password": "lumosgis"
  1004.       },
  1005.       "extent": [
  1006.         -180,
  1007.         -85.05112877980659,
  1008.         180,
  1009.         85.05112877980659
  1010.       ],
  1011.       "properties": {
  1012.         "minzoom": 10
  1013.       },
  1014.       "advanced": {}
  1015.     },
  1016.     {
  1017.       "name": "turning-circle-fill",
  1018.       "srs-name": "900913",
  1019.       "geometry": "point",
  1020.       "class": "",
  1021.       "id": "turning-circle-fill",
  1022.       "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",
  1023.       "Datasource": {
  1024.         "extent": "-20037508,-20037508,20037508,20037508",
  1025.         "table": "(SELECT\n    DISTINCT on (p.way)\n    p.way AS way, l.highway AS int_tc_type,\n    CASE WHEN l.service IN ('parking_aisle', 'drive-through', 'driveway') THEN 'INT-minor'::text\n      ELSE 'INT-normal'::text END AS int_tc_service\n  FROM planet_osm_point p\n    JOIN planet_osm_line l\n      ON ST_DWithin(p.way, l.way, 0.1)\n    JOIN (VALUES\n      ('tertiary', 1),\n      ('unclassified', 2),\n      ('residential', 3),\n      ('living_street', 4),\n      ('service', 5),\n      ('track', 6)\n    ) AS v (highway, prio)\n      ON v.highway=l.highway\n  WHERE p.highway = 'turning_circle' OR p.highway = 'turning_loop'\n  ORDER BY p.way, v.prio\n) AS turning_circle_fill",
  1026.         "geometry_field": "way",
  1027.         "type": "postgis",
  1028.         "key_field": "",
  1029.         "dbname": "osm_south",
  1030.         "host": "localhost",
  1031.         "user": "postgres",
  1032.         "password": "lumosgis"
  1033.       },
  1034.       "extent": [
  1035.         -180,
  1036.         -85.05112877980659,
  1037.         180,
  1038.         85.05112877980659
  1039.       ],
  1040.       "properties": {
  1041.         "minzoom": 15
  1042.       },
  1043.       "advanced": {}
  1044.     },
  1045.     {
  1046.       "name": "aerialways",
  1047.       "srs-name": "900913",
  1048.       "geometry": "linestring",
  1049.       "class": "",
  1050.       "id": "aerialways",
  1051.       "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",
  1052.       "Datasource": {
  1053.         "extent": "-20037508,-20037508,20037508,20037508",
  1054.         "table": "(SELECT\n    way,\n    aerialway\n  FROM planet_osm_line\n  WHERE aerialway IS NOT NULL\n) AS aerialways",
  1055.         "geometry_field": "way",
  1056.         "type": "postgis",
  1057.         "key_field": "",
  1058.         "dbname": "osm_south",
  1059.         "host": "localhost",
  1060.         "user": "postgres",
  1061.         "password": "lumosgis"
  1062.       },
  1063.       "extent": [
  1064.         -180,
  1065.         -85.05112877980659,
  1066.         180,
  1067.         85.05112877980659
  1068.       ],
  1069.       "properties": {
  1070.         "minzoom": 12
  1071.       },
  1072.       "advanced": {}
  1073.     },
  1074.     {
  1075.       "name": "roads-low-zoom",
  1076.       "srs-name": "900913",
  1077.       "geometry": "linestring",
  1078.       "class": "",
  1079.       "id": "roads-low-zoom",
  1080.       "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",
  1081.       "Datasource": {
  1082.         "extent": "-20037508,-20037508,20037508,20037508",
  1083.         "table": "(SELECT\n    way,\n    COALESCE(\n      ('highway_' || (CASE WHEN substr(highway, length(highway)-3, 4) = 'link' THEN substr(highway, 0, length(highway)-4) ELSE highway end)),\n      ('railway_' || (CASE WHEN (railway = 'rail' AND service IN ('spur', 'siding', 'yard')) THEN 'INT-spur-siding-yard' \n                           WHEN railway IN ('rail', 'tram', 'light_rail', 'funicular', 'narrow_gauge') THEN railway ELSE NULL END))\n    ) AS feature,\n    CASE WHEN tunnel = 'yes' OR tunnel = 'building_passage' OR covered = 'yes' THEN 'yes' ELSE 'no' END AS int_tunnel,\n    CASE WHEN substr(highway, length(highway)-3, 4) = 'link' THEN 'yes' ELSE 'no' END AS link,\n        CASE WHEN surface IN ('unpaved', 'compacted', 'dirt', 'earth', 'fine_gravel', 'grass', 'grass_paver', 'gravel', 'ground', \n                              'mud', 'pebblestone', 'salt', 'sand', 'woodchips', 'clay') THEN 'unpaved' ELSE \n          CASE WHEN surface IN ('paved', 'asphalt', 'cobblestone', 'cobblestone:flattened', 'sett', 'concrete', 'concrete:lanes', \n                                'concrete:plates', 'paving_stones', 'metal', 'wood') THEN 'paved' \n          ELSE null END END AS int_surface\n  FROM planet_osm_roads\n  WHERE highway IS NOT NULL\n    OR (railway IS NOT NULL AND railway != 'preserved'\n      AND (service IS NULL OR service NOT IN ('spur', 'siding', 'yard')))\n  ORDER BY z_order\n) AS roads_low_zoom",
  1084.         "geometry_field": "way",
  1085.         "type": "postgis",
  1086.         "key_field": "",
  1087.         "dbname": "osm_south",
  1088.         "host": "localhost",
  1089.         "user": "postgres",
  1090.         "password": "lumosgis"
  1091.       },
  1092.       "extent": [
  1093.         -180,
  1094.         -85.05112877980659,
  1095.         180,
  1096.         85.05112877980659
  1097.       ],
  1098.       "properties": {
  1099.         "maxzoom": 9,
  1100.         "minzoom": 5
  1101.       },
  1102.       "advanced": {}
  1103.     },
  1104.     {
  1105.       "name": "waterway-bridges",
  1106.       "srs-name": "900913",
  1107.       "geometry": "linestring",
  1108.       "class": "water-lines",
  1109.       "id": "waterway-bridges",
  1110.       "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",
  1111.       "Datasource": {
  1112.         "extent": "-20037508,-20037508,20037508,20037508",
  1113.         "table": "(SELECT\n    way,\n    waterway,\n    name,\n    intermittent,\n    CASE WHEN tunnel IN ('yes', 'culvert') THEN 'yes' ELSE 'no' END AS int_tunnel,\n    'yes' AS bridge\n  FROM planet_osm_line\n  WHERE waterway IN ('river', 'canal', 'derelict_canal', 'stream', 'drain', 'ditch', 'wadi')\n    AND bridge IN ('yes', 'aqueduct')\n  ORDER BY z_order\n) AS waterway_bridges",
  1114.         "geometry_field": "way",
  1115.         "type": "postgis",
  1116.         "key_field": "",
  1117.         "dbname": "osm_south",
  1118.         "host": "localhost",
  1119.         "user": "postgres",
  1120.         "password": "lumosgis"
  1121.       },
  1122.       "extent": [
  1123.         -180,
  1124.         -85.05112877980659,
  1125.         180,
  1126.         85.05112877980659
  1127.       ],
  1128.       "properties": {
  1129.         "minzoom": 15
  1130.       },
  1131.       "advanced": {}
  1132.     },
  1133.     {
  1134.       "name": "bridges",
  1135.       "srs-name": "900913",
  1136.       "geometry": "linestring",
  1137.       "class": "bridges-fill bridges-casing access directions",
  1138.       "id": "bridges",
  1139.       "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",
  1140.       "Datasource": {
  1141.         "extent": "-20037508,-20037508,20037508,20037508",
  1142.         "table": "(SELECT way, (CASE WHEN substr(feature, length(feature)-3, 4) = 'link' THEN substr(feature, 0, length(feature)-4) ELSE feature END) AS feature,\n        horse, foot, bicycle, tracktype, int_surface, access, construction,\n        service, oneway, link, layernotnull\n  FROM ( -- subselect that contains both roads and rail/aero\n    SELECT\n        way,\n        ('highway_' || highway) AS feature, --only motorway to tertiary links are accepted later on\n        horse,\n        foot,\n        bicycle,\n        tracktype,\n        CASE WHEN surface IN ('unpaved', 'compacted', 'dirt', 'earth', 'fine_gravel', 'grass', 'grass_paver', 'gravel', \n                              'ground', 'mud', 'pebblestone', 'salt', 'sand', 'woodchips', 'clay') THEN 'unpaved' ELSE \n          CASE WHEN surface IN ('paved', 'asphalt', 'cobblestone', 'cobblestone:flattened', 'sett', 'concrete', \n                                'concrete:lanes', 'concrete:plates', 'paving_stones', 'metal', 'wood') THEN 'paved' \n          ELSE null END END AS int_surface,\n        CASE WHEN access IN ('destination') THEN 'destination'::text\n          WHEN access IN ('no', 'private') THEN 'no'::text\n          ELSE NULL\n        END AS access,\n        construction,\n        CASE\n          WHEN service IN ('parking_aisle', 'drive-through', 'driveway') THEN 'INT-minor'::text\n          ELSE 'INT-normal'::text\n        END AS service,\n        CASE\n          WHEN oneway IN ('yes', '-1') THEN oneway\n          WHEN junction IN ('roundabout') AND (oneway IS NULL OR NOT oneway IN ('no', 'reversible')) THEN 'yes'\n          ELSE NULL\n        END AS oneway,\n        CASE\n          WHEN substr(highway, length(highway)-3, 4) = 'link' THEN 'yes'\n          ELSE 'no'\n        END AS link,\n        CASE WHEN layer~E'^-?\\\\d+$' AND length(layer)<10 THEN layer::integer ELSE 0 END AS layernotnull\n      FROM planet_osm_line\n      WHERE bridge IN ('yes', 'boardwalk', 'cantilever', 'covered', 'low_water_crossing', 'movable', 'trestle', 'viaduct')\n        AND highway IS NOT NULL -- end of road select\n    UNION ALL\n    SELECT\n        way,\n        COALESCE(\n          ('railway_' || (CASE WHEN railway = 'preserved' AND service IN ('spur', 'siding', 'yard') THEN 'INT-preserved-ssy'::text \n                               WHEN (railway = 'rail' AND service IN ('spur', 'siding', 'yard')) THEN 'INT-spur-siding-yard' \n                               WHEN (railway = 'tram' AND service IN ('spur', 'siding', 'yard')) THEN 'tram-service' ELSE railway END)),\n          ('aeroway_' || aeroway)\n        ) AS feature,\n        horse,\n        foot,\n        bicycle,\n        tracktype,\n        'null',\n        CASE\n          WHEN access IN ('destination') THEN 'destination'::text\n          WHEN access IN ('no', 'private') THEN 'no'::text\n          ELSE NULL\n        END AS access,\n        construction,\n        CASE WHEN service IN ('parking_aisle', 'drive-through', 'driveway') THEN 'INT-minor'::text ELSE 'INT-normal'::text END AS service,\n        NULL AS oneway,\n        'no' AS link,\n        CASE WHEN layer~E'^-?\\\\d+$' AND length(layer)<10 THEN layer::integer ELSE 0 END AS layernotnull\n      FROM planet_osm_line\n      WHERE bridge IN ('yes', 'boardwalk', 'cantilever', 'covered', 'low_water_crossing', 'movable', 'trestle', 'viaduct')\n        AND (railway IS NOT NULL OR aeroway IS NOT NULL) -- end of rail/aero select\n    ) AS features\n  JOIN (VALUES -- this join is also putting a condition on what is selected. features not matching it do not make it into the results.\n      ('railway_rail', 440),\n      ('railway_INT-preserved-ssy', 430),\n      ('railway_INT-spur-siding-yard', 430),\n      ('railway_subway', 420),\n      ('railway_narrow_gauge', 420),\n      ('railway_light_rail', 420),\n      ('railway_preserved', 420),\n      ('railway_funicular', 420),\n      ('railway_monorail', 420),\n      ('railway_miniature', 420),\n      ('railway_turntable', 420),\n      ('railway_tram', 410),\n      ('railway_tram-service', 405),\n      ('railway_disused', 400),\n      ('railway_construction', 400),\n      ('highway_motorway', 380),\n      ('highway_trunk', 370),\n      ('highway_primary', 360),\n      ('highway_secondary', 350),\n      ('highway_tertiary', 340),\n      ('highway_residential', 330),\n      ('highway_unclassified', 330),\n      ('highway_road', 330),\n      ('highway_living_street', 320),\n      ('highway_pedestrian', 310),\n      ('highway_raceway', 300),\n      ('highway_motorway_link', 240),\n      ('highway_trunk_link', 230),\n      ('highway_primary_link', 220),\n      ('highway_secondary_link', 210),\n      ('highway_tertiary_link', 200),\n      ('highway_service', 150),\n      ('highway_track', 110),\n      ('highway_path', 100),\n      ('highway_footway', 100),\n      ('highway_bridleway', 100),\n      ('highway_cycleway', 100),\n      ('highway_steps', 100),\n      ('highway_platform', 90),\n      ('railway_platform', 90),\n      ('aeroway_runway', 60),\n      ('aeroway_taxiway', 50),\n      ('highway_construction', 10)\n    ) AS ordertable (feature, prio)\n    USING (feature)\n  ORDER BY\n    layernotnull,\n    prio,\n    CASE WHEN access IN ('no', 'private') THEN 0 WHEN access IN ('destination') THEN 1 ELSE 2 END,\n    CASE WHEN int_surface IN ('unpaved') THEN 0 ELSE 2 END\n) AS bridges",
  1143.         "geometry_field": "way",
  1144.         "type": "postgis",
  1145.         "key_field": "",
  1146.         "dbname": "osm_south",
  1147.         "host": "localhost",
  1148.         "user": "postgres",
  1149.         "password": "lumosgis"
  1150.       },
  1151.       "extent": [
  1152.         -180,
  1153.         -85.05112877980659,
  1154.         180,
  1155.         85.05112877980659
  1156.       ],
  1157.       "properties": {
  1158.         "group-by": "layernotnull",
  1159.         "minzoom": 9
  1160.       },
  1161.       "advanced": {}
  1162.     },
  1163.     {
  1164.       "name": "guideways",
  1165.       "srs-name": "900913",
  1166.       "geometry": "linestring",
  1167.       "class": "",
  1168.       "id": "guideways",
  1169.       "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",
  1170.       "Datasource": {
  1171.         "extent": "-20037508,-20037508,20037508,20037508",
  1172.         "table": "(SELECT\n    way\n  FROM planet_osm_line\n  WHERE highway = 'bus_guideway' AND (tunnel IS NULL OR tunnel != 'yes')\n) AS guideways",
  1173.         "geometry_field": "way",
  1174.         "type": "postgis",
  1175.         "key_field": "",
  1176.         "dbname": "osm_south",
  1177.         "host": "localhost",
  1178.         "user": "postgres",
  1179.         "password": "lumosgis"
  1180.       },
  1181.       "extent": [
  1182.         -180,
  1183.         -85.05112877980659,
  1184.         180,
  1185.         85.05112877980659
  1186.       ],
  1187.       "properties": {
  1188.         "minzoom": 13
  1189.       },
  1190.       "advanced": {}
  1191.     },
  1192.     {
  1193.       "name": "admin-low-zoom",
  1194.       "srs-name": "900913",
  1195.       "geometry": "linestring",
  1196.       "class": "",
  1197.       "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",
  1198.       "Datasource": {
  1199.         "extent": "-20037508,-20037508,20037508,20037508",
  1200.         "table": "(SELECT\n    way,\n    admin_level\n  FROM planet_osm_roads\n  WHERE boundary = 'administrative'\n    AND admin_level IN ('0', '1', '2', '3', '4')\n  ORDER BY admin_level DESC\n) AS admin_low_zoom",
  1201.         "geometry_field": "way",
  1202.         "type": "postgis",
  1203.         "key_field": "",
  1204.         "dbname": "osm_south",
  1205.         "host": "localhost",
  1206.         "user": "postgres",
  1207.         "password": "lumosgis"
  1208.       },
  1209.       "extent": [
  1210.         -180,
  1211.         -85.05112877980659,
  1212.         180,
  1213.         85.05112877980659
  1214.       ],
  1215.       "id": "admin-low-zoom",
  1216.       "properties": {
  1217.         "maxzoom": 10
  1218.       },
  1219.       "advanced": {}
  1220.     },
  1221.     {
  1222.       "name": "admin-mid-zoom",
  1223.       "srs-name": "900913",
  1224.       "geometry": "linestring",
  1225.       "class": "",
  1226.       "id": "admin-mid-zoom",
  1227.       "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",
  1228.       "Datasource": {
  1229.         "extent": "-20037508,-20037508,20037508,20037508",
  1230.         "table": "(SELECT\n    way,\n    admin_level\n  FROM planet_osm_roads\n  WHERE boundary = 'administrative'\n    AND admin_level IN ('0', '1', '2', '3', '4', '5', '6', '7', '8')\n  ORDER BY admin_level DESC\n) AS admin_mid_zoom",
  1231.         "geometry_field": "way",
  1232.         "type": "postgis",
  1233.         "key_field": "",
  1234.         "dbname": "osm_south",
  1235.         "host": "localhost",
  1236.         "user": "postgres",
  1237.         "password": "lumosgis"
  1238.       },
  1239.       "extent": [
  1240.         -180,
  1241.         -85.05112877980659,
  1242.         180,
  1243.         85.05112877980659
  1244.       ],
  1245.       "properties": {
  1246.         "maxzoom": 12,
  1247.         "minzoom": 11
  1248.       },
  1249.       "advanced": {}
  1250.     },
  1251.     {
  1252.       "name": "admin-high-zoom",
  1253.       "srs-name": "900913",
  1254.       "geometry": "linestring",
  1255.       "class": "",
  1256.       "id": "admin-high-zoom",
  1257.       "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",
  1258.       "Datasource": {
  1259.         "extent": "-20037508,-20037508,20037508,20037508",
  1260.         "table": "(SELECT\n    way,\n    admin_level\n  FROM planet_osm_roads\n  WHERE boundary = 'administrative'\n    AND admin_level IN ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10')\n  ORDER BY admin_level::integer DESC -- With 10 as a valid value, we need to do a numeric ordering, not a text ordering\n) AS admin_high_zoom",
  1261.         "geometry_field": "way",
  1262.         "type": "postgis",
  1263.         "key_field": "",
  1264.         "dbname": "osm_south",
  1265.         "host": "localhost",
  1266.         "user": "postgres",
  1267.         "password": "lumosgis"
  1268.       },
  1269.       "extent": [
  1270.         -180,
  1271.         -85.05112877980659,
  1272.         180,
  1273.         85.05112877980659
  1274.       ],
  1275.       "properties": {
  1276.         "minzoom": 13
  1277.       },
  1278.       "advanced": {}
  1279.     },
  1280.     {
  1281.       "name": "power-minorline",
  1282.       "srs-name": "900913",
  1283.       "geometry": "linestring",
  1284.       "class": "",
  1285.       "id": "power-minorline",
  1286.       "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",
  1287.       "Datasource": {
  1288.         "extent": "-20037508,-20037508,20037508,20037508",
  1289.         "table": "(SELECT\n    way\n  FROM planet_osm_line\n  WHERE power = 'minor_line'\n) AS power_minorline",
  1290.         "geometry_field": "way",
  1291.         "type": "postgis",
  1292.         "key_field": "",
  1293.         "dbname": "osm_south",
  1294.         "host": "localhost",
  1295.         "user": "postgres",
  1296.         "password": "lumosgis"
  1297.       },
  1298.       "extent": [
  1299.         -180,
  1300.         -85.05112877980659,
  1301.         180,
  1302.         85.05112877980659
  1303.       ],
  1304.       "properties": {
  1305.         "minzoom": 16
  1306.       },
  1307.       "advanced": {}
  1308.     },
  1309.     {
  1310.       "name": "power-line",
  1311.       "srs-name": "900913",
  1312.       "geometry": "linestring",
  1313.       "class": "",
  1314.       "id": "power-line",
  1315.       "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",
  1316.       "Datasource": {
  1317.         "extent": "-20037508,-20037508,20037508,20037508",
  1318.         "table": "(SELECT\n    way\n  FROM planet_osm_line\n  WHERE power = 'line'\n) AS power_line",
  1319.         "geometry_field": "way",
  1320.         "type": "postgis",
  1321.         "key_field": "",
  1322.         "dbname": "osm_south",
  1323.         "host": "localhost",
  1324.         "user": "postgres",
  1325.         "password": "lumosgis"
  1326.       },
  1327.       "extent": [
  1328.         -180,
  1329.         -85.05112877980659,
  1330.         180,
  1331.         85.05112877980659
  1332.       ],
  1333.       "properties": {
  1334.         "minzoom": 14
  1335.       },
  1336.       "advanced": {}
  1337.     },
  1338.     {
  1339.       "name": "nature-reserve-boundaries",
  1340.       "srs-name": "900913",
  1341.       "geometry": "polygon",
  1342.       "class": "",
  1343.       "id": "nature-reserve-boundaries",
  1344.       "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",
  1345.       "Datasource": {
  1346.         "extent": "-20037508,-20037508,20037508,20037508",
  1347.         "table": "(SELECT\n    way,\n    name,\n    boundary,\n    way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels\n  FROM planet_osm_polygon\n  WHERE (boundary = 'national_park' OR leisure = 'nature_reserve')\n    AND building IS NULL\n    AND way_area > 0.01*!pixel_width!::real*!pixel_height!::real\n) AS national_park_boundaries",
  1348.         "geometry_field": "way",
  1349.         "type": "postgis",
  1350.         "key_field": "",
  1351.         "dbname": "osm_south",
  1352.         "host": "localhost",
  1353.         "user": "postgres",
  1354.         "password": "lumosgis"
  1355.       },
  1356.       "extent": [
  1357.         -180,
  1358.         -85.05112877980659,
  1359.         180,
  1360.         85.05112877980659
  1361.       ],
  1362.       "properties": {
  1363.         "minzoom": 7
  1364.       },
  1365.       "advanced": {}
  1366.     },
  1367.     {
  1368.       "name": "tourism-boundary",
  1369.       "srs-name": "900913",
  1370.       "geometry": "polygon",
  1371.       "class": "",
  1372.       "id": "tourism-boundary",
  1373.       "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",
  1374.       "Datasource": {
  1375.         "extent": "-20037508,-20037508,20037508,20037508",
  1376.         "table": "(SELECT\n    way,\n    way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels,\n    name,\n    tourism\n  FROM planet_osm_polygon\n  WHERE tourism = 'theme_park'\n    OR tourism = 'zoo'\n) AS tourism_boundary",
  1377.         "geometry_field": "way",
  1378.         "type": "postgis",
  1379.         "key_field": "",
  1380.         "dbname": "osm_south",
  1381.         "host": "localhost",
  1382.         "user": "postgres",
  1383.         "password": "lumosgis"
  1384.       },
  1385.       "extent": [
  1386.         -180,
  1387.         -85.05112877980659,
  1388.         180,
  1389.         85.05112877980659
  1390.       ],
  1391.       "properties": {
  1392.         "minzoom": 10
  1393.       },
  1394.       "advanced": {}
  1395.     },
  1396.     {
  1397.       "name": "trees",
  1398.       "srs-name": "900913",
  1399.       "geometry": "polygon",
  1400.       "class": "",
  1401.       "id": "trees",
  1402.       "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",
  1403.       "Datasource": {
  1404.         "extent": "-20037508,-20037508,20037508,20037508",
  1405.         "table": "(SELECT\n    way, \"natural\"\n  FROM planet_osm_point\n  WHERE \"natural\" = 'tree'\nUNION ALL\nSELECT\n    way, \"natural\"\n  FROM planet_osm_line\n  WHERE \"natural\" = 'tree_row'\n) AS trees",
  1406.         "geometry_field": "way",
  1407.         "type": "postgis",
  1408.         "key_field": "",
  1409.         "dbname": "osm_south",
  1410.         "host": "localhost",
  1411.         "user": "postgres",
  1412.         "password": "lumosgis"
  1413.       },
  1414.       "extent": [
  1415.         -180,
  1416.         -85.05112877980659,
  1417.         180,
  1418.         85.05112877980659
  1419.       ],
  1420.       "properties": {
  1421.         "minzoom": 16
  1422.       },
  1423.       "advanced": {}
  1424.     },
  1425.     {
  1426.       "name": "placenames-large",
  1427.       "srs-name": "900913",
  1428.       "geometry": "point",
  1429.       "class": "country state",
  1430.       "id": "placenames-large",
  1431.       "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",
  1432.       "Datasource": {
  1433.         "extent": "-20037508,-20037508,20037508,20037508",
  1434.         "table": "(SELECT\n    way,\n    way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels,\n    name,\n    ref,\n    admin_level\n  FROM planet_osm_polygon\n  WHERE boundary = 'administrative'\n    AND admin_level IN ('2', '4')\n    AND name IS NOT NULL\n  ORDER BY admin_level ASC, way_area DESC\n) AS placenames_large",
  1435.         "geometry_field": "way",
  1436.         "type": "postgis",
  1437.         "key_field": "",
  1438.         "dbname": "osm_south",
  1439.         "host": "localhost",
  1440.         "user": "postgres",
  1441.         "password": "lumosgis"
  1442.       },
  1443.       "extent": [
  1444.         -180,
  1445.         -85.05112877980659,
  1446.         180,
  1447.         85.05112877980659
  1448.       ],
  1449.       "properties": {
  1450.         "minzoom": 2
  1451.       },
  1452.       "advanced": {}
  1453.     },
  1454.     {
  1455.       "name": "placenames-medium",
  1456.       "srs-name": "900913",
  1457.       "geometry": "point",
  1458.       "class": "",
  1459.       "id": "placenames-medium",
  1460.       "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",
  1461.       "Datasource": {
  1462.         "extent": "-20037508,-20037508,20037508,20037508",
  1463.         "table": "(SELECT\n    way,\n    name,\n    score,\n    CASE\n      WHEN (place = 'city' OR (capital = 'yes' AND score >= 100000)) THEN 1\n      ELSE 2\n    END as category\n  FROM \n    (SELECT\n        way,\n        place,\n        name,\n        capital,\n        (\n          (CASE\n            WHEN (population ~ '^[0-9]{1,8}$') THEN population::INTEGER\n            WHEN (place = 'city') THEN 100000\n            WHEN (place = 'town') THEN 1000\n            ELSE 1\n          END)\n          *\n          (CASE\n            WHEN (capital = 'yes') THEN 3\n            WHEN (capital = '4') THEN 2\n            ELSE 1\n          END)\n        ) AS score\n      FROM planet_osm_point\n      WHERE place IN ('city', 'town')\n    ) as p\n  ORDER BY score DESC\n) AS placenames_medium",
  1464.         "geometry_field": "way",
  1465.         "type": "postgis",
  1466.         "key_field": "",
  1467.         "dbname": "osm_south",
  1468.         "host": "localhost",
  1469.         "user": "postgres",
  1470.         "password": "lumosgis"
  1471.       },
  1472.       "extent": [
  1473.         -180,
  1474.         -85.05112877980659,
  1475.         180,
  1476.         85.05112877980659
  1477.       ],
  1478.       "properties": {
  1479.         "maxzoom": 15,
  1480.         "minzoom": 3
  1481.       },
  1482.       "advanced": {}
  1483.     },
  1484.     {
  1485.       "name": "placenames-small",
  1486.       "srs-name": "900913",
  1487.       "geometry": "point",
  1488.       "class": "",
  1489.       "id": "placenames-small",
  1490.       "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",
  1491.       "Datasource": {
  1492.         "extent": "-20037508,-20037508,20037508,20037508",
  1493.         "table": "(SELECT\n    way,\n    place,\n    name\n  FROM planet_osm_point\n  WHERE place IN ('suburb', 'village', 'hamlet', 'neighbourhood', 'locality', 'isolated_dwelling', 'farm')\n    AND name IS NOT NULL\n  ORDER BY CASE\n      WHEN place = 'suburb' THEN 3\n      WHEN place = 'village' THEN 4\n      WHEN place = 'hamlet' THEN 5\n      WHEN place = 'neighbourhood' THEN 6\n      WHEN place = 'locality' THEN 7\n      WHEN place = 'isolated_dwelling' THEN 8\n      WHEN place = 'farm' THEN 9\n    END ASC\n) AS placenames_small",
  1494.         "geometry_field": "way",
  1495.         "type": "postgis",
  1496.         "key_field": "",
  1497.         "dbname": "osm_south",
  1498.         "host": "localhost",
  1499.         "user": "postgres",
  1500.         "password": "lumosgis"
  1501.       },
  1502.       "extent": [
  1503.         -180,
  1504.         -85.05112877980659,
  1505.         180,
  1506.         85.05112877980659
  1507.       ],
  1508.       "properties": {
  1509.         "minzoom": 12
  1510.       },
  1511.       "advanced": {}
  1512.     },
  1513.     {
  1514.       "name": "stations",
  1515.       "srs-name": "900913",
  1516.       "geometry": "point",
  1517.       "class": "stations",
  1518.       "id": "stations",
  1519.       "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",
  1520.       "Datasource": {
  1521.         "extent": "-20037508,-20037508,20037508,20037508",
  1522.         "table": "(SELECT\n    way,\n    name,\n    railway,\n    aerialway,\n    disused,\n    CASE railway \n      WHEN 'station' THEN 1 \n      WHEN 'subway_entrance' THEN 3\n      ELSE 2\n    END\n      AS prio\n  FROM planet_osm_point\n  WHERE railway IN ('station', 'halt', 'tram_stop', 'subway_entrance')\n    OR aerialway = 'station'\n  ORDER BY prio\n) AS stations",
  1523.         "geometry_field": "way",
  1524.         "type": "postgis",
  1525.         "key_field": "",
  1526.         "dbname": "osm_south",
  1527.         "host": "localhost",
  1528.         "user": "postgres",
  1529.         "password": "lumosgis"
  1530.       },
  1531.       "extent": [
  1532.         -180,
  1533.         -85.05112877980659,
  1534.         180,
  1535.         85.05112877980659
  1536.       ],
  1537.       "properties": {
  1538.         "minzoom": 12
  1539.       },
  1540.       "advanced": {}
  1541.     },
  1542.     {
  1543.       "name": "stations-poly",
  1544.       "srs-name": "900913",
  1545.       "geometry": "polygon",
  1546.       "class": "stations",
  1547.       "id": "stations-poly",
  1548.       "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",
  1549.       "Datasource": {
  1550.         "extent": "-20037508,-20037508,20037508,20037508",
  1551.         "table": "(SELECT\n    way,\n    name,\n    railway,\n    aerialway,\n    disused\nFROM planet_osm_polygon\nWHERE railway IN ('station', 'halt', 'tram_stop')\n  OR aerialway = 'station'\n) AS stations_poly",
  1552.         "geometry_field": "way",
  1553.         "type": "postgis",
  1554.         "key_field": "",
  1555.         "dbname": "osm_south",
  1556.         "host": "localhost",
  1557.         "user": "postgres",
  1558.         "password": "lumosgis"
  1559.       },
  1560.       "extent": [
  1561.         -180,
  1562.         -85.05112877980659,
  1563.         180,
  1564.         85.05112877980659
  1565.       ],
  1566.       "properties": {
  1567.         "minzoom": 12
  1568.       },
  1569.       "advanced": {}
  1570.     },
  1571.     {
  1572.       "name": "amenity-points-poly",
  1573.       "srs-name": "900913",
  1574.       "geometry": "polygon",
  1575.       "class": "points",
  1576.       "id": "amenity-points-poly",
  1577.       "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",
  1578.       "Datasource": {
  1579.         "extent": "-20037508,-20037508,20037508,20037508",
  1580.         "table": "(SELECT\n    way,\n    COALESCE(\n      'aeroway_' || CASE WHEN aeroway IN ('helipad', 'aerodrome') THEN aeroway ELSE NULL END,\n      'tourism_' || CASE WHEN tourism IN ('alpine_hut', 'camp_site', 'caravan_site', 'chalet', 'guest_house', \n                                          'hostel', 'hotel', 'motel', 'information', 'museum', 'picnic_site') THEN tourism ELSE NULL END,\n      'amenity_' || CASE WHEN amenity IN ('shelter', 'atm', 'bank', 'bar', 'bicycle_rental', 'bus_station', 'cafe', \n                                          'car_rental', 'car_wash', 'cinema', 'clinic', 'community_centre', 'fire_station', 'fountain',\n                                          'fuel', 'hospital', 'ice_cream', 'embassy', 'library', 'courthouse', 'townhall', 'parking', \n                                          'bicycle_parking', 'motorcycle_parking', 'pharmacy', 'doctors', 'dentist', 'place_of_worship', \n                                          'police', 'post_box', 'post_office', 'pub', 'biergarten', 'recycling', 'restaurant', 'food_court', \n                                          'fast_food', 'telephone', 'emergency_phone', 'taxi', 'theatre', 'toilets', 'drinking_water', \n                                          'prison', 'hunting_stand', 'nightclub', 'veterinary') THEN amenity ELSE NULL END, \n      'shop_' || CASE WHEN shop IN ('supermarket', 'bag', 'bakery', 'beauty', 'books', 'butcher', 'clothes', 'computer', \n                                    'confectionery', 'fashion', 'convenience', 'department_store', 'doityourself', 'hardware', 'florist', \n                                    'garden_centre', 'hairdresser', 'hifi', 'ice_cream', 'car', 'car_repair', 'bicycle', 'mall', 'pet', \n                                    'photo', 'photo_studio', 'photography', 'seafood', 'shoes', 'alcohol', 'gift', 'furniture', 'kiosk', \n                                    'mobile_phone', 'motorcycle', 'musical_instrument', 'newsagent', 'optician', 'jewelry', 'jewellery', \n                                    'electronics', 'chemist', 'toys', 'travel_agency', 'car_parts', 'greengrocer', 'farm', 'stationery', \n                                    'laundry', 'dry_cleaning', 'beverages', 'perfumery', 'cosmetics', 'variety_store', 'wine', 'outdoor', \n                                    'copyshop') THEN shop \n                      WHEN shop IN ('accessories', 'antiques', 'appliance', 'art', 'baby_goods', 'bathroom_furnishing', \n                                    'bed', 'boat', 'bookmaker', 'boutique', 'builder', 'building_materials', 'camera', 'car_service', \n                                    'carpet', 'charity', 'cheese', 'chocolate', 'coffee', 'communication', 'craft', 'curtain', 'dairy', \n                                    'deli', 'discount', 'e-cigarette', 'electrical', 'energy', 'erotic', 'estate_agent', \n                                    'fabric', 'fishing', 'flooring', 'food', 'frame', 'frozen_food', 'funeral_directors', 'furnace', \n                                    'gallery', 'games', 'gas', 'general', 'glaziery', 'grocery', 'health', 'health_food', 'hearing_aids', \n                                    'herbalist', 'hobby', 'household', 'houseware', 'hunting', 'interior_decoration', 'kitchen', \n                                    'leather', 'lighting', 'locksmith', 'lottery', 'market', 'massage', 'medical', 'medical_supply', 'money_lender', \n                                    'motorcycle_repair', 'music', 'office_supplies', 'organic', 'paint', 'pastry', 'pawnbroker', \n                                    'phone', 'pottery', 'printing', 'radiotechnics', 'real_estate', 'religion', 'rental', 'salon', \n                                    'scuba_diving', 'second_hand', 'sewing', 'shoe_repair', 'shopping_centre', 'solarium', 'souvenir', 'sports', \n                                    'tailor', 'tanning', 'tattoo', 'tea', 'ticket', 'tiles', 'tobacco', 'trade', 'tyres', 'vacuum_cleaner', 'video', \n                                    'video_games', 'watches', 'wholesale', 'yes') THEN 'other' ELSE NULL END,\n      'leisure_' || CASE WHEN leisure IN ('water_park', 'playground', 'miniature_golf', 'golf_course', 'picnic_table') THEN leisure ELSE NULL END,\n      'man_made_' || CASE WHEN man_made IN ('mast', 'water_tower', 'lighthouse', 'windmill') THEN man_made ELSE NULL END,\n      'natural_' || CASE WHEN \"natural\" IN ('spring') THEN \"natural\" ELSE NULL END,\n      'historic_' || CASE WHEN historic IN ('memorial', 'monument', 'archaeological_site') THEN historic ELSE NULL END,\n      'highway_'|| CASE WHEN highway IN ('bus_stop', 'elevator', 'traffic_signals') THEN highway ELSE NULL END,\n      'power_' || CASE WHEN power IN ('generator') THEN power ELSE NULL END,\n      'tourism_' || CASE WHEN tourism IN ('viewpoint') THEN tourism ELSE NULL END\n    ) AS feature,\n    access,\n    religion,\n    denomination,\n    \"generator:source\",\n    power_source,\n    way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels\n  FROM planet_osm_polygon\n  -- The upcoming where clause is needed for performance only, as the CASE statements would end up doing the equivalent filtering\n  WHERE aeroway IN ('helipad', 'aerodrome')\n    OR tourism IN ('alpine_hut', 'camp_site', 'caravan_site', 'chalet', 'guest_house', 'hostel', \n                   'hotel', 'motel', 'information', 'museum', 'viewpoint', 'picnic_site')\n    OR amenity IN ('shelter', 'atm', 'bank', 'bar', 'bicycle_rental', 'bus_station', 'cafe', \n                   'car_rental', 'car_wash', 'cinema', 'clinic', 'community_centre',\n                   'fire_station', 'fountain', 'fuel', 'hospital', 'ice_cream', 'embassy', 'library', 'courthouse', \n                   'townhall', 'parking', 'bicycle_parking', 'motorcycle_parking', 'pharmacy', 'doctors', \n                   'dentist', 'place_of_worship', 'police', 'post_box', 'post_office', 'pub', 'biergarten', \n                   'recycling', 'restaurant', 'food_court', 'fast_food', 'telephone', 'emergency_phone', 'taxi', \n                   'theatre', 'toilets', 'drinking_water', 'prison', 'hunting_stand', 'nightclub', 'veterinary')\n    OR shop IS NOT NULL -- skip checking a huge list and use a null check\n    OR leisure IN ('water_park', 'playground', 'miniature_golf', 'golf_course', 'picnic_table')\n    OR man_made IN ('mast', 'water_tower', 'lighthouse', 'windmill')\n    OR \"natural\" IN ('spring')\n    OR historic IN ('memorial', 'monument', 'archaeological_site')\n    OR highway IN ('bus_stop', 'elevator', 'traffic_signals')\n    OR (power = 'generator' AND (\"generator:source\" = 'wind' OR power_source = 'wind'))\n  ORDER BY way_area desc\n) AS amenity_points_poly",
  1581.         "geometry_field": "way",
  1582.         "type": "postgis",
  1583.         "key_field": "",
  1584.         "dbname": "osm_south",
  1585.         "host": "localhost",
  1586.         "user": "postgres",
  1587.         "password": "lumosgis"
  1588.       },
  1589.       "extent": [
  1590.         -180,
  1591.         -85.05112877980659,
  1592.         180,
  1593.         85.05112877980659
  1594.       ],
  1595.       "properties": {
  1596.         "minzoom": 10
  1597.       },
  1598.       "advanced": {}
  1599.     },
  1600.     {
  1601.       "name": "amenity-points",
  1602.       "srs-name": "900913",
  1603.       "geometry": "point",
  1604.       "class": "points",
  1605.       "id": "amenity-points",
  1606.       "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",
  1607.       "Datasource": {
  1608.         "extent": "-20037508,-20037508,20037508,20037508",
  1609.         "table": "(SELECT\n    way,\n    COALESCE(\n      'aeroway_' || CASE WHEN aeroway IN ('helipad', 'aerodrome') THEN aeroway ELSE NULL END,\n      'tourism_' || CASE WHEN tourism IN ('alpine_hut', 'camp_site', 'caravan_site', 'chalet', 'guest_house', 'hostel', \n                                          'hotel', 'motel', 'information', 'museum', 'picnic_site') THEN tourism ELSE NULL END,\n      'amenity_' || CASE WHEN amenity IN ('shelter', 'atm', 'bank', 'bar', 'bicycle_rental', 'bus_station', 'cafe', \n                                          'car_rental', 'car_wash', 'cinema', 'clinic', 'community_centre', 'fire_station', 'fountain',\n                                          'fuel', 'hospital', 'ice_cream', 'embassy', 'library', 'courthouse', 'townhall', 'parking', \n                                          'bicycle_parking', 'motorcycle_parking', 'pharmacy', 'doctors', 'dentist', 'place_of_worship', \n                                          'police', 'post_box', 'post_office', 'pub', 'biergarten', 'recycling', 'restaurant', 'food_court', \n                                          'fast_food', 'telephone', 'emergency_phone', 'taxi', 'theatre', 'toilets', 'drinking_water', \n                                          'prison', 'hunting_stand', 'nightclub', 'veterinary') THEN amenity ELSE NULL END,\n      'shop_' || CASE WHEN shop IN ('supermarket', 'bag', 'bakery', 'beauty', 'books', 'butcher', 'clothes', 'computer', 'confectionery', \n                                    'fashion', 'convenience', 'department_store', 'doityourself', 'hardware', 'florist', 'garden_centre', \n                                    'hairdresser', 'hifi', 'ice_cream', 'car', 'car_repair', 'bicycle', 'mall', 'pet', 'photo', 'photo_studio', \n                                    'photography', 'seafood', 'shoes', 'alcohol', 'gift', 'furniture', 'kiosk', 'mobile_phone', 'motorcycle', \n                                    'musical_instrument', 'newsagent', 'optician', 'jewelry', 'jewellery', 'electronics', 'chemist', 'toys', \n                                    'travel_agency', 'car_parts', 'greengrocer', 'farm', 'stationery', 'laundry', 'dry_cleaning', 'beverages', \n                                    'perfumery', 'cosmetics', 'variety_store', 'wine', 'outdoor', 'copyshop') THEN shop \n                      WHEN shop IN ('accessories', 'antiques', 'appliance', 'art', 'baby_goods', 'bathroom_furnishing', 'bed',  \n                                    'boat', 'bookmaker', 'boutique', 'builder', 'building_materials', 'camera', 'car_service', 'carpet', 'charity', \n                                    'cheese', 'chocolate', 'coffee', 'communication', 'craft', 'curtain', 'dairy', 'deli',   \n                                    'discount', 'e-cigarette', 'electrical', 'energy', 'erotic', 'estate_agent', 'fabric', 'fishing', \n                                    'flooring', 'food', 'frame', 'frozen_food', 'funeral_directors', 'furnace', 'gallery', 'games', 'gas',  \n                                    'general', 'glaziery', 'grocery', 'health', 'health_food', 'hearing_aids', 'herbalist', 'hobby', 'household',  \n                                    'houseware', 'hunting', 'interior_decoration', 'kitchen', 'leather', 'lighting', 'locksmith', 'lottery',  \n                                    'market', 'massage', 'medical', 'medical_supply', 'money_lender', 'motorcycle_repair', 'music', 'office_supplies',  \n                                    'organic', 'paint', 'pastry', 'pawnbroker', 'phone', 'pottery', 'printing', 'radiotechnics', \n                                    'real_estate', 'religion', 'rental', 'salon', 'scuba_diving', 'second_hand', 'sewing', 'shoe_repair', 'shopping_centre', \n                                    'solarium', 'souvenir', 'sports', 'tailor', 'tanning', 'tattoo', 'tea', 'ticket', 'tiles', 'tobacco', 'trade', 'tyres', \n                                    'vacuum_cleaner', 'video', 'video_games', 'watches', 'wholesale', 'yes') THEN 'other' ELSE NULL END,\n      'leisure_' || CASE WHEN leisure IN ('water_park', 'playground', 'miniature_golf', 'golf_course', 'picnic_table', 'slipway') THEN leisure ELSE NULL END,\n      'man_made_' || CASE WHEN man_made IN ('mast', 'water_tower', 'lighthouse', 'windmill') THEN man_made ELSE NULL END,\n      'natural_' || CASE WHEN \"natural\" IN ('peak', 'volcano', 'saddle', 'spring', 'cave_entrance') THEN \"natural\" ELSE NULL END,\n      'historic_' || CASE WHEN historic IN ('memorial', 'monument', 'archaeological_site') THEN historic ELSE NULL END,\n      'highway_'|| CASE WHEN highway IN ('bus_stop', 'elevator', 'traffic_signals', 'ford') THEN highway ELSE NULL END,\n      'power_' || CASE WHEN power IN ('generator') THEN power ELSE NULL END,\n      'tourism_' || CASE WHEN tourism IN ('viewpoint') THEN tourism ELSE NULL END,\n      'man_made_' || CASE WHEN man_made IN ('cross') THEN man_made ELSE NULL END,\n      'historic_' || CASE WHEN historic IN ('wayside_cross') THEN historic ELSE NULL END\n    ) AS feature,\n    access,\n    CASE\n      WHEN \"natural\" IN ('peak', 'volcano', 'saddle') THEN\n        CASE\n          WHEN ele ~ '^-?\\d{1,4}(\\.\\d+)?$' THEN ele::NUMERIC\n          ELSE NULL\n        END\n      ELSE NULL\n    END AS score,\n    religion,\n    denomination,\n    \"generator:source\",\n    power_source,\n    NULL AS way_pixels\n  FROM planet_osm_point\n  -- The upcoming where clause is needed for performance only, as the CASE statements would end up doing the equivalent filtering\n  WHERE aeroway IN ('helipad', 'aerodrome')\n    OR tourism IN ('alpine_hut', 'camp_site', 'caravan_site', 'chalet', 'guest_house', 'hostel', \n                   'hotel', 'motel', 'information', 'museum', 'viewpoint', 'picnic_site')\n    OR amenity IN ('shelter', 'atm', 'bank', 'bar', 'bicycle_rental', 'bus_station', 'cafe', \n                   'car_rental',  'car_wash', 'cinema', 'clinic', 'community_centre',\n                   'fire_station', 'fountain', 'fuel', 'hospital', 'ice_cream', 'embassy', 'library', 'courthouse', \n                   'townhall', 'parking', 'bicycle_parking', 'motorcycle_parking', 'pharmacy', 'doctors', \n                   'dentist', 'place_of_worship', 'police', 'post_box', 'post_office', 'pub', 'biergarten', \n                   'recycling', 'restaurant', 'food_court', 'fast_food', 'telephone', 'emergency_phone', \n                   'taxi', 'theatre', 'toilets', 'drinking_water', 'prison', 'hunting_stand', 'nightclub', \n                   'veterinary')\n    OR shop IS NOT NULL -- skip checking a huge list and use a null check\n    OR leisure IN ('water_park', 'playground', 'miniature_golf', 'golf_course', 'picnic_table', 'slipway')\n    OR man_made IN ('mast', 'water_tower', 'lighthouse', 'windmill', 'cross')\n    OR \"natural\" IN ('peak', 'volcano', 'saddle', 'spring', 'cave_entrance')\n    OR historic IN ('memorial', 'monument', 'archaeological_site', 'wayside_cross')\n    OR highway IN ('bus_stop', 'elevator', 'traffic_signals', 'ford')\n    OR (power = 'generator' AND (\"generator:source\" = 'wind' OR power_source = 'wind'))\n  ORDER BY score DESC NULLS LAST\n  ) AS amenity_points",
  1610.         "geometry_field": "way",
  1611.         "type": "postgis",
  1612.         "key_field": "",
  1613.         "dbname": "osm_south",
  1614.         "host": "localhost",
  1615.         "user": "postgres",
  1616.         "password": "lumosgis"
  1617.       },
  1618.       "extent": [
  1619.         -180,
  1620.         -85.05112877980659,
  1621.         180,
  1622.         85.05112877980659
  1623.       ],
  1624.       "properties": {
  1625.         "minzoom": 10
  1626.       },
  1627.       "advanced": {}
  1628.     },
  1629.     {
  1630.       "name": "power-towers",
  1631.       "srs-name": "900913",
  1632.       "geometry": "point",
  1633.       "class": "",
  1634.       "id": "power-towers",
  1635.       "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",
  1636.       "Datasource": {
  1637.         "extent": "-20037508,-20037508,20037508,20037508",
  1638.         "table": "(SELECT\n    way\n  FROM planet_osm_point\n  WHERE power = 'tower'\n) AS power_towers",
  1639.         "geometry_field": "way",
  1640.         "type": "postgis",
  1641.         "key_field": "",
  1642.         "dbname": "osm_south",
  1643.         "host": "localhost",
  1644.         "user": "postgres",
  1645.         "password": "lumosgis"
  1646.       },
  1647.       "extent": [
  1648.         -180,
  1649.         -85.05112877980659,
  1650.         180,
  1651.         85.05112877980659
  1652.       ],
  1653.       "properties": {
  1654.         "minzoom": 14
  1655.       },
  1656.       "advanced": {}
  1657.     },
  1658.     {
  1659.       "name": "power-poles",
  1660.       "srs-name": "900913",
  1661.       "geometry": "point",
  1662.       "class": "",
  1663.       "id": "power-poles",
  1664.       "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",
  1665.       "Datasource": {
  1666.         "extent": "-20037508,-20037508,20037508,20037508",
  1667.         "table": "(SELECT\n    way\n  FROM planet_osm_point\n  WHERE power = 'pole'\n) AS power_poles",
  1668.         "geometry_field": "way",
  1669.         "type": "postgis",
  1670.         "key_field": "",
  1671.         "dbname": "osm_south",
  1672.         "host": "localhost",
  1673.         "user": "postgres",
  1674.         "password": "lumosgis"
  1675.       },
  1676.       "extent": [
  1677.         -180,
  1678.         -85.05112877980659,
  1679.         180,
  1680.         85.05112877980659
  1681.       ],
  1682.       "properties": {
  1683.         "minzoom": 16
  1684.       },
  1685.       "advanced": {}
  1686.     },
  1687.     {
  1688.       "name": "roads-text-ref-low-zoom",
  1689.       "srs-name": "900913",
  1690.       "geometry": "linestring",
  1691.       "class": "",
  1692.       "id": "roads-text-ref-low-zoom",
  1693.       "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",
  1694.       "Datasource": {
  1695.         "extent": "-20037508,-20037508,20037508,20037508",
  1696.         "table": "(SELECT way, highway, height, width, refs FROM\n  (SELECT\n      way, highway,\n      array_length(refs,1) AS height,\n      (SELECT MAX(char_length(ref)) FROM unnest(refs) AS u(ref)) AS width,\n      array_to_string(refs, E'\\n') AS refs\n    FROM (\n      SELECT\n          way,\n          highway,\n          string_to_array(ref, ';') AS refs\n      FROM planet_osm_roads\n        WHERE highway IN ('motorway', 'trunk', 'primary', 'secondary')\n        AND ref IS NOT NULL\n      ) AS p) AS q\n  WHERE height <= 4 AND width <= 11) AS roads_text_ref_low_zoom",
  1697.         "geometry_field": "way",
  1698.         "type": "postgis",
  1699.         "key_field": "",
  1700.         "dbname": "osm_south",
  1701.         "host": "localhost",
  1702.         "user": "postgres",
  1703.         "password": "lumosgis"
  1704.       },
  1705.       "extent": [
  1706.         -180,
  1707.         -85.05112877980659,
  1708.         180,
  1709.         85.05112877980659
  1710.       ],
  1711.       "properties": {
  1712.         "maxzoom": 12,
  1713.         "minzoom": 10
  1714.       },
  1715.       "advanced": {}
  1716.     },
  1717.     {
  1718.       "name": "junctions",
  1719.       "srs-name": "900913",
  1720.       "geometry": "point",
  1721.       "class": "",
  1722.       "id": "junctions",
  1723.       "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",
  1724.       "Datasource": {
  1725.         "extent": "-20037508,-20037508,20037508,20037508",
  1726.         "table": "(SELECT\n    way,\n    highway,\n    junction,\n    ref,\n    name\n  FROM planet_osm_point\n  WHERE highway = 'motorway_junction' OR highway = 'traffic_signals' OR junction = 'yes'\n) AS junctions",
  1727.         "geometry_field": "way",
  1728.         "type": "postgis",
  1729.         "key_field": "",
  1730.         "dbname": "osm_south",
  1731.         "host": "localhost",
  1732.         "user": "postgres",
  1733.         "password": "lumosgis"
  1734.       },
  1735.       "extent": [
  1736.         -180,
  1737.         -85.05112877980659,
  1738.         180,
  1739.         85.05112877980659
  1740.       ],
  1741.       "properties": {
  1742.         "minzoom": 11
  1743.       },
  1744.       "advanced": {}
  1745.     },
  1746.     {
  1747.       "name": "bridge-text",
  1748.       "srs-name": "900913",
  1749.       "geometry": "polygon",
  1750.       "class": "",
  1751.       "id": "bridge-text",
  1752.       "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",
  1753.       "Datasource": {
  1754.         "extent": "-20037508,-20037508,20037508,20037508",
  1755.         "table": "(SELECT\n    way,\n    way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels,\n    man_made,\n    name\n  FROM planet_osm_polygon\n  WHERE man_made = 'bridge'\n) AS bridge_text",
  1756.         "geometry_field": "way",
  1757.         "type": "postgis",
  1758.         "key_field": "",
  1759.         "dbname": "osm_south",
  1760.         "host": "localhost",
  1761.         "user": "postgres",
  1762.         "password": "lumosgis"
  1763.       },
  1764.       "extent": [
  1765.         -180,
  1766.         -85.05112877980659,
  1767.         180,
  1768.         85.05112877980659
  1769.       ],
  1770.       "properties": {
  1771.         "minzoom": 11
  1772.       },
  1773.       "advanced": {}
  1774.     },
  1775.     {
  1776.       "name": "roads-text-ref",
  1777.       "srs-name": "900913",
  1778.       "geometry": "linestring",
  1779.       "class": "",
  1780.       "id": "roads-text-ref",
  1781.       "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",
  1782.       "Datasource": {
  1783.         "extent": "-20037508,-20037508,20037508,20037508",
  1784.         "table": "(SELECT way, highway, height, width, refs FROM\n  (SELECT\n      way, highway,\n      array_length(refs,1) AS height,\n      (SELECT MAX(char_length(ref)) FROM unnest(refs) AS u(ref)) AS width,\n      array_to_string(refs, E'\\n') AS refs\n    FROM (\n      SELECT\n          way,\n          COALESCE(\n            CASE WHEN highway IN ('motorway', 'trunk', 'primary', 'secondary', 'tertiary', 'unclassified', 'residential') THEN highway ELSE NULL END,\n            CASE WHEN aeroway IN ('runway', 'taxiway') THEN aeroway ELSE NULL END\n          ) AS highway,\n          string_to_array(ref, ';') AS refs\n        FROM planet_osm_line\n          WHERE (highway IN ('motorway', 'trunk', 'primary', 'secondary', 'tertiary', 'unclassified', 'residential') OR aeroway IN ('runway', 'taxiway'))\n            AND ref IS NOT NULL\n      ) AS p) AS q\n  WHERE height <= 4 AND width <= 11) AS roads_text_ref",
  1785.         "geometry_field": "way",
  1786.         "type": "postgis",
  1787.         "key_field": "",
  1788.         "dbname": "osm_south",
  1789.         "host": "localhost",
  1790.         "user": "postgres",
  1791.         "password": "lumosgis"
  1792.       },
  1793.       "extent": [
  1794.         -180,
  1795.         -85.05112877980659,
  1796.         180,
  1797.         85.05112877980659
  1798.       ],
  1799.       "properties": {
  1800.         "minzoom": 13
  1801.       },
  1802.       "advanced": {}
  1803.     },
  1804.     {
  1805.       "name": "roads-area-text-name",
  1806.       "srs-name": "900913",
  1807.       "geometry": "polygon",
  1808.       "class": "",
  1809.       "id": "roads-area-text-name",
  1810.       "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",
  1811.       "Datasource": {
  1812.         "extent": "-20037508,-20037508,20037508,20037508",
  1813.         "table": "(SELECT\n    way,\n    way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels,\n    highway,\n    name\n  FROM planet_osm_polygon\n  WHERE highway IN ('residential', 'unclassified', 'pedestrian', 'service', 'footway', 'cycleway', 'living_street', 'track', 'path', 'platform')\n    OR railway IN ('platform')\n    AND name IS NOT NULL\n) AS roads_area_text_name",
  1814.         "geometry_field": "way",
  1815.         "type": "postgis",
  1816.         "key_field": "",
  1817.         "dbname": "osm_south",
  1818.         "host": "localhost",
  1819.         "user": "postgres",
  1820.         "password": "lumosgis"
  1821.       },
  1822.       "extent": [
  1823.         -180,
  1824.         -85.05112877980659,
  1825.         180,
  1826.         85.05112877980659
  1827.       ],
  1828.       "properties": {
  1829.         "minzoom": 15
  1830.       },
  1831.       "advanced": {}
  1832.     },
  1833.     {
  1834.       "name": "roads-text-name",
  1835.       "srs-name": "900913",
  1836.       "geometry": "linestring",
  1837.       "class": "",
  1838.       "id": "roads-text-name",
  1839.       "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",
  1840.       "Datasource": {
  1841.         "extent": "-20037508,-20037508,20037508,20037508",
  1842.         "table": "(SELECT way,\n    CASE WHEN substr(highway, length(highway)-3, 4) = 'link' THEN substr(highway, 0, length(highway)-4) ELSE highway END,\n    CASE WHEN (tunnel = 'yes' OR tunnel = 'building_passage' OR covered = 'yes') THEN 'yes' ELSE 'no' END AS tunnel,\n    CASE WHEN construction IN ('service', 'footway', 'cycleway', 'bridleway', 'path', 'track') THEN 'yes' ELSE 'no' END AS int_construction_minor,\n    name\n  FROM planet_osm_line\n  WHERE highway IN ('motorway', 'motorway_link', 'trunk', 'trunk_link', 'primary', 'primary_link', 'secondary', 'secondary_link', 'tertiary', \n                    'tertiary_link', 'residential', 'unclassified', 'road', 'service', 'pedestrian', 'raceway', 'living_street', 'construction')\n    AND name IS NOT NULL\n) AS roads_text_name",
  1843.         "geometry_field": "way",
  1844.         "type": "postgis",
  1845.         "key_field": "",
  1846.         "dbname": "osm_south",
  1847.         "host": "localhost",
  1848.         "user": "postgres",
  1849.         "password": "lumosgis"
  1850.       },
  1851.       "extent": [
  1852.         -180,
  1853.         -85.05112877980659,
  1854.         180,
  1855.         85.05112877980659
  1856.       ],
  1857.       "properties": {
  1858.         "minzoom": 13
  1859.       },
  1860.       "advanced": {}
  1861.     },
  1862.     {
  1863.       "name": "paths-text-name",
  1864.       "srs-name": "900913",
  1865.       "geometry": "linestring",
  1866.       "class": "",
  1867.       "id": "paths-text-name",
  1868.       "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",
  1869.       "Datasource": {
  1870.         "extent": "-20037508,-20037508,20037508,20037508",
  1871.         "table": "(SELECT\n    way,\n    highway,\n    name\n  FROM planet_osm_line\n  WHERE highway IN ('bridleway', 'footway', 'cycleway', 'path', 'track', 'steps')\n    AND name IS NOT NULL\n) AS paths_text_name",
  1872.         "geometry_field": "way",
  1873.         "type": "postgis",
  1874.         "key_field": "",
  1875.         "dbname": "osm_south",
  1876.         "host": "localhost",
  1877.         "user": "postgres",
  1878.         "password": "lumosgis"
  1879.       },
  1880.       "extent": [
  1881.         -180,
  1882.         -85.05112877980659,
  1883.         180,
  1884.         85.05112877980659
  1885.       ],
  1886.       "properties": {
  1887.         "minzoom": 15
  1888.       },
  1889.       "advanced": {}
  1890.     },
  1891.     {
  1892.       "name": "text-poly-low-zoom",
  1893.       "srs-name": "900913",
  1894.       "geometry": "polygon",
  1895.       "class": "text-low-zoom",
  1896.       "id": "text-poly-low-zoom",
  1897.       "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",
  1898.       "Datasource": {
  1899.         "extent": "-20037508,-20037508,20037508,20037508",
  1900.         "table": "(SELECT\n    way,\n    way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels,\n    COALESCE(\n      'landuse_' || CASE WHEN landuse IN ('forest', 'military') THEN landuse ELSE NULL END,\n      'natural_' || CASE WHEN \"natural\" IN ('wood', 'glacier', 'sand', 'scree', 'shingle', 'bare_rock') THEN \"natural\" ELSE NULL END,\n      'place_' || CASE WHEN place IN ('island') THEN place ELSE NULL END,\n      'boundary_' || CASE WHEN boundary IN ('national_park') THEN boundary ELSE NULL END,\n      'leisure_' || CASE WHEN leisure IN ('nature_reserve') THEN leisure ELSE NULL END\n    ) AS feature,\n    name,\n    CASE WHEN building = 'no' OR building IS NULL THEN 'no' ELSE 'yes' END AS is_building -- always no with the where conditions\n  FROM planet_osm_polygon\n  WHERE (landuse IN ('forest', 'military')\n      OR \"natural\" IN ('wood', 'glacier', 'sand', 'scree', 'shingle', 'bare_rock')\n      OR \"place\" IN ('island')\n      OR boundary IN ('national_park')\n      OR leisure IN ('nature_reserve'))\n    AND building IS NULL\n    AND name IS NOT NULL\n  ORDER BY way_area DESC\n) AS text_poly_low_zoom",
  1901.         "geometry_field": "way",
  1902.         "type": "postgis",
  1903.         "key_field": "",
  1904.         "dbname": "osm_south",
  1905.         "host": "localhost",
  1906.         "user": "postgres",
  1907.         "password": "lumosgis"
  1908.       },
  1909.       "extent": [
  1910.         -180,
  1911.         -85.05112877980659,
  1912.         180,
  1913.         85.05112877980659
  1914.       ],
  1915.       "properties": {
  1916.         "maxzoom": 9,
  1917.         "minzoom": 7
  1918.       },
  1919.       "advanced": {}
  1920.     },
  1921.     {
  1922.       "name": "text-poly",
  1923.       "srs-name": "900913",
  1924.       "geometry": "polygon",
  1925.       "class": "text",
  1926.       "id": "text-poly",
  1927.       "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",
  1928.       "Datasource": {
  1929.         "extent": "-20037508,-20037508,20037508,20037508",
  1930.         "table": "(SELECT\n    way,\n    way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels,\n    COALESCE(\n      'aeroway_' || CASE WHEN aeroway IN ('gate', 'apron', 'helipad', 'aerodrome') THEN aeroway ELSE NULL END,\n      'tourism_' || CASE WHEN tourism IN ('alpine_hut', 'hotel', 'motel', 'hostel', 'chalet', 'guest_house', 'camp_site', 'caravan_site', \n                                          'theme_park', 'museum', 'zoo', 'information', 'picnic_site') THEN tourism ELSE NULL END,\n      'amenity_' || CASE WHEN amenity IN ('pub', 'restaurant', 'food_court', 'cafe', 'fast_food', 'biergarten', 'bar', 'library', \n                                          'theatre', 'courthouse', 'townhall', 'cinema', 'clinic', 'community_centre', 'parking', \n                                          'bicycle_parking', 'motorcycle_parking', 'police', 'fire_station', 'fountain', 'place_of_worship', \n                                          'grave_yard', 'shelter', 'bank', 'embassy', 'fuel', 'bus_station', 'prison', 'university', \n                                          'school', 'college', 'kindergarten', 'hospital', 'ice_cream', 'pharmacy', 'doctors', 'dentist', \n                                          'atm', 'bicycle_rental', 'car_rental', 'car_wash', 'post_box', 'post_office',\n                                          'recycling', 'telephone', 'emergency_phone', 'toilets', 'taxi', 'drinking_water', 'hunting_stand', \n                                          'nightclub', 'veterinary') THEN amenity ELSE NULL END,\n      'shop_' || CASE WHEN shop IN ('supermarket', 'bag', 'bakery', 'beauty', 'books', 'butcher', 'clothes', 'computer', 'confectionery', \n                                    'fashion', 'convenience', 'department_store', 'doityourself', 'hardware', 'florist', 'garden_centre', \n                                    'hairdresser', 'hifi', 'ice_cream', 'car', 'car_repair', 'bicycle', 'mall', 'pet', 'photo', 'photo_studio', \n                                    'photography', 'seafood', 'shoes', 'alcohol', 'gift', 'furniture', 'kiosk', 'mobile_phone', 'motorcycle', \n                                    'musical_instrument', 'newsagent', 'optician', 'jewelry', 'jewellery', 'electronics', 'chemist', 'toys', \n                                    'travel_agency', 'car_parts', 'greengrocer', 'farm', 'stationery', 'laundry', 'dry_cleaning', 'beverages', \n                                    'perfumery', 'cosmetics', 'variety_store', 'wine', 'outdoor', 'copyshop') THEN shop \n                      WHEN shop IN ('accessories', 'antiques', 'appliance', 'art', 'baby_goods', 'bathroom_furnishing', 'bed', \n                                    'boat', 'bookmaker', 'boutique', 'builder', 'building_materials', 'camera', 'car_service', 'carpet', 'charity', \n                                    'cheese', 'chocolate', 'coffee', 'communication', 'craft', 'curtain', 'dairy', 'deli', \n                                    'discount', 'e-cigarette', 'electrical', 'energy', 'erotic', 'estate_agent', 'fabric', 'fishing', \n                                    'flooring', 'food', 'frame', 'frozen_food', 'funeral_directors', 'furnace', 'gallery', 'games', 'gas', \n                                    'general', 'glaziery', 'grocery', 'health', 'health_food', 'hearing_aids', 'herbalist', 'hobby', 'household', \n                                    'houseware', 'hunting', 'interior_decoration', 'kitchen', 'leather', 'lighting', 'locksmith', \n                                    'lottery', 'market', 'massage', 'medical', 'medical_supply', 'money_lender', 'motorcycle_repair', 'music', \n                                    'office_supplies', 'organic', 'paint', 'pastry', 'pawnbroker', 'phone', 'pottery', \n                                    'printing', 'radiotechnics', 'real_estate', 'religion', 'rental', 'salon', 'scuba_diving', 'second_hand', \n                                    'sewing', 'shoe_repair', 'shopping_centre', 'solarium', 'souvenir', 'sports', 'tailor', 'tanning', 'tattoo', 'tea', \n                                    'ticket', 'tiles', 'tobacco', 'trade', 'tyres', 'vacuum_cleaner', 'video', 'video_games', 'watches', 'wholesale', \n                                    'yes') THEN 'other' ELSE NULL END,\n      'leisure_' || CASE WHEN leisure IN ('swimming_pool', 'water_park', 'miniature_golf', 'golf_course', 'sports_centre', 'stadium', 'track', \n                                          'pitch', 'playground', 'park', 'recreation_ground', 'common', 'garden', 'nature_reserve', 'marina', \n                                          'picnic_table') THEN leisure ELSE NULL END,\n      'power_' || CASE WHEN power IN ('plant', 'station', 'generator', 'sub_station', 'substation') THEN power ELSE NULL END,\n      'landuse_' || CASE WHEN landuse IN ('reservoir', 'basin', 'recreation_ground', 'village_green', 'quarry', 'vineyard', 'orchard', 'cemetery', \n                                          'residential', 'garages', 'meadow', 'grass', 'allotments', 'forest', 'farmyard', 'farm', 'farmland', \n                                          'greenhouse_horticulture', 'retail', 'industrial', 'railway', 'commercial', 'brownfield', 'landfill', \n                                          'construction', 'military') THEN landuse ELSE NULL END,\n      'man_made_' || CASE WHEN man_made IN ('lighthouse', 'windmill', 'mast', 'water_tower', 'pier', 'breakwater', 'groyne') THEN man_made ELSE NULL END,\n      'natural_' || CASE WHEN \"natural\" IN ('wood', 'water', 'mud', 'wetland', 'marsh', 'bay', 'spring', 'scree', 'shingle', 'bare_rock', 'sand', 'heath', \n                                            'grassland', 'scrub', 'beach', 'glacier') THEN \"natural\" ELSE NULL END,\n      'place_' || CASE WHEN place IN ('island', 'islet') THEN place ELSE NULL END,\n      'military_' || CASE WHEN military IN ('danger_area') THEN military ELSE NULL END,\n      'historic_' || CASE WHEN historic IN ('memorial', 'monument', 'archaeological_site') THEN historic ELSE NULL END,\n      'highway_' || CASE WHEN highway IN ('services', 'rest_area', 'bus_stop', 'elevator', 'ford') THEN highway ELSE NULL END,\n      'boundary_' || CASE WHEN boundary IN ('national_park') THEN boundary ELSE NULL END,\n      'waterway_' || CASE WHEN waterway IN ('dam') THEN waterway ELSE NULL END,\n      'tourism_' || CASE WHEN tourism IN ('attraction') THEN tourism ELSE NULL END\n    ) AS feature,\n    access,\n    name,\n    operator,\n    ref,\n    way_area,\n    CASE WHEN building = 'no' OR building IS NULL THEN 'no' ELSE 'yes' END AS is_building\n  FROM planet_osm_polygon\n  -- The upcoming where clause is needed for performance only, as the CASE statements would end up doing the equivalent filtering\n  WHERE (aeroway IN ('gate', 'apron', 'helipad', 'aerodrome')\n      OR tourism IN ('alpine_hut', 'hotel', 'motel', 'hostel', 'chalet', 'guest_house', 'camp_site', 'caravan_site', 'theme_park', \n                     'museum', 'attraction', 'zoo', 'information', 'picnic_site')\n      OR amenity IS NOT NULL -- skip checking a huge list and use a null check\n      OR shop IS NOT NULL\n      OR leisure IS NOT NULL\n      OR landuse IS NOT NULL\n      OR man_made IN ('lighthouse', 'windmill', 'mast', 'water_tower', 'pier', 'breakwater', 'groyne')\n      OR \"natural\" IS NOT NULL\n      OR place IN ('island', 'islet')\n      OR military IN ('danger_area')\n      OR historic IN ('memorial', 'monument', 'archaeological_site')\n      OR highway IN ('services', 'rest_area', 'bus_stop', 'elevator', 'ford')\n      OR power IN ('plant', 'station', 'generator', 'sub_station', 'substation')\n      OR boundary IN ('national_park')\n      OR waterway = 'dam')\n    AND name IS NOT NULL\n  ORDER BY way_area DESC\n) AS text_poly",
  1931.         "geometry_field": "way",
  1932.         "type": "postgis",
  1933.         "key_field": "",
  1934.         "dbname": "osm_south",
  1935.         "host": "localhost",
  1936.         "user": "postgres",
  1937.         "password": "lumosgis"
  1938.       },
  1939.       "extent": [
  1940.         -180,
  1941.         -85.05112877980659,
  1942.         180,
  1943.         85.05112877980659
  1944.       ],
  1945.       "properties": {
  1946.         "minzoom": 10
  1947.       },
  1948.       "advanced": {}
  1949.     },
  1950.     {
  1951.       "name": "text-line",
  1952.       "srs-name": "900913",
  1953.       "geometry": "linestring",
  1954.       "class": "",
  1955.       "id": "text-line",
  1956.       "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",
  1957.       "Datasource": {
  1958.         "extent": "-20037508,-20037508,20037508,20037508",
  1959.         "table": "(SELECT\n  way,\n    NULL as way_pixels,\n    COALESCE('man_made_' || man_made, 'waterway_' || waterway, 'natural_' || \"natural\") AS feature,\n    access,\n    name,\n    operator,\n    ref,\n    NULL AS way_area,\n    CASE WHEN building = 'no' OR building IS NULL THEN 'no' ELSE 'yes' END AS is_building\n  FROM planet_osm_line\n  WHERE (man_made IN ('pier', 'breakwater', 'groyne', 'embankment')\n      OR waterway IN ('dam', 'weir')\n      OR \"natural\" IN ('cliff'))\n    AND name IS NOT NULL\n) AS text_line",
  1960.         "geometry_field": "way",
  1961.         "type": "postgis",
  1962.         "key_field": "",
  1963.         "dbname": "osm_south",
  1964.         "host": "localhost",
  1965.         "user": "postgres",
  1966.         "password": "lumosgis"
  1967.       },
  1968.       "extent": [
  1969.         -180,
  1970.         -85.05112877980659,
  1971.         180,
  1972.         85.05112877980659
  1973.       ],
  1974.       "properties": {
  1975.         "minzoom": 10
  1976.       },
  1977.       "advanced": {}
  1978.     },
  1979.     {
  1980.       "name": "text-point",
  1981.       "srs-name": "900913",
  1982.       "geometry": "point",
  1983.       "class": "text",
  1984.       "id": "text-point",
  1985.       "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",
  1986.       "Datasource": {
  1987.         "extent": "-20037508,-20037508,20037508,20037508",
  1988.         "table": "(SELECT\n    way,\n    way_pixels,\n    feature,\n    access,\n    CONCAT(\n        name,\n        CASE WHEN name IS NOT NULL AND elevation IS NOT NULL THEN E'\\n' ELSE NULL END,\n        CASE WHEN elevation IS NOT NULL THEN CONCAT(REPLACE(ROUND(elevation)::TEXT, '-', U&'\\2212'), U&'\\00A0', 'm') ELSE NULL END\n    ) AS name,\n    CASE\n      WHEN \"natural\" IN ('peak', 'volcano', 'saddle') THEN elevation\n      ELSE NULL\n    END AS score,\n    operator,\n    ref,\n    way_area,\n    is_building\n  FROM\n    (SELECT\n        way,\n        NULL AS way_pixels,\n        COALESCE(\n          'aeroway_' || CASE WHEN aeroway IN ('gate', 'apron', 'helipad', 'aerodrome') THEN aeroway ELSE NULL END,\n          'tourism_' || CASE WHEN tourism IN ('alpine_hut', 'hotel', 'motel', 'hostel', 'chalet', 'guest_house', 'camp_site', 'caravan_site', \n                                              'theme_park', 'museum', 'zoo', 'information', 'picnic_site') THEN tourism ELSE NULL END,\n          'amenity_' || CASE WHEN amenity IN ('pub', 'restaurant', 'food_court', 'cafe', 'fast_food', 'biergarten', 'bar', 'library', 'theatre', \n                                              'courthouse', 'townhall', 'cinema', 'clinic', 'community_centre', 'parking', 'bicycle_parking', \n                                              'motorcycle_parking', 'police', 'fire_station', 'fountain', 'place_of_worship', 'grave_yard', 'shelter', 'bank', \n                                              'embassy', 'fuel', 'bus_station', 'prison', 'university', 'school', 'college', 'kindergarten', 'hospital', \n                                              'ice_cream', 'pharmacy', 'doctors', 'dentist', 'atm', 'bicycle_rental', 'car_rental',\n                                              'car_wash', 'post_box', 'post_office', 'recycling', 'telephone', 'emergency_phone', 'toilets', 'taxi', \n                                              'drinking_water', 'hunting_stand', 'nightclub', 'veterinary') THEN amenity ELSE NULL END,\n          'shop_' || CASE WHEN shop IN ('supermarket', 'bag','bakery', 'beauty', 'books', 'butcher', 'clothes', 'computer', 'confectionery', 'fashion', \n                                        'convenience', 'department_store', 'doityourself', 'hardware', 'florist', 'garden_centre', 'hairdresser', \n                                        'hifi', 'ice_cream', 'car', 'car_repair', 'bicycle', 'mall', 'pet', 'photo', 'photo_studio', 'photography', \n                                        'seafood', 'shoes', 'alcohol', 'gift', 'furniture', 'kiosk', 'mobile_phone', 'motorcycle', 'musical_instrument', \n                                        'newsagent', 'optician', 'jewelry', 'jewellery', 'electronics', 'chemist', 'toys', 'travel_agency', 'car_parts', \n                                        'greengrocer', 'farm', 'stationery', 'laundry', 'dry_cleaning', 'beverages', 'perfumery', 'cosmetics', \n                                        'variety_store', 'wine', 'outdoor', 'copyshop') THEN shop \n                          WHEN shop IN ('accessories', 'antiques', 'appliance', 'art', \n                                        'baby_goods', 'bathroom_furnishing', 'bed', 'boat', 'bookmaker', 'boutique', 'builder', \n                                        'building_materials', 'camera', 'car_service', 'carpet', 'charity', 'cheese', 'chocolate', 'coffee', \n                                        'communication', 'craft', 'curtain', 'dairy', 'deli', 'discount',  \n                                        'e-cigarette', 'electrical', 'energy', 'erotic', 'estate_agent', 'fabric', 'fishing', 'flooring', \n                                        'food', 'frame', 'frozen_food', 'funeral_directors', 'furnace', 'gallery', 'games', 'gas', \n                                        'general', 'glaziery', 'grocery', 'health', 'health_food', 'hearing_aids', 'herbalist', 'hobby', 'household', \n                                        'houseware', 'hunting', 'interior_decoration', 'kitchen', 'leather', 'lighting', 'locksmith', \n                                        'lottery', 'market', 'massage', 'medical', 'medical_supply', 'money_lender', 'motorcycle_repair', 'music', \n                                        'office_supplies', 'organic', 'paint', 'pastry', 'pawnbroker', 'phone', 'pottery', \n                                        'printing', 'radiotechnics', 'real_estate', 'religion', 'rental', 'salon', 'scuba_diving', 'second_hand', \n                                        'sewing', 'shoe_repair', 'shopping_centre', 'solarium', 'souvenir', 'sports', 'tailor', 'tanning', 'tattoo', \n                                        'tea', 'ticket', 'tiles', 'tobacco', 'trade', 'tyres', 'vacuum_cleaner', 'video', 'video_games', 'watches', \n                                        'wholesale', 'yes') THEN 'other' ELSE NULL END,\n          'leisure_' || CASE WHEN leisure IN ('swimming_pool', 'water_park', 'miniature_golf', 'golf_course', 'sports_centre', 'stadium', 'track',  \n                                              'pitch','playground', 'park', 'recreation_ground', 'common', 'garden', 'nature_reserve', 'marina',  \n                                              'slipway', 'picnic_table') THEN leisure ELSE NULL END,\n          'power_' || CASE WHEN power IN ('plant', 'station', 'generator', 'sub_station', 'substation') THEN power ELSE NULL END,\n          'landuse_' || CASE WHEN landuse IN ('reservoir', 'basin', 'recreation_ground', 'village_green', 'quarry', 'vineyard', 'orchard', 'cemetery', \n                                              'residential', 'garages', 'meadow', 'grass', 'allotments', 'forest', 'farmyard', 'farm', 'farmland', \n                                              'greenhouse_horticulture', 'retail', 'industrial', 'railway', 'commercial', 'brownfield', 'landfill', \n                                              'construction', 'military') THEN landuse ELSE NULL END,\n          'man_made_' || CASE WHEN man_made IN ('lighthouse', 'windmill', 'mast', 'water_tower') THEN man_made ELSE NULL END,\n          'natural_' || CASE WHEN \"natural\" IN ('wood', 'peak', 'volcano', 'saddle', 'cave_entrance', 'water', 'mud', 'wetland', 'marsh', 'bay', 'spring', \n                                                'scree', 'shingle', 'bare_rock', 'sand', 'heath', 'grassland', 'scrub', 'beach', 'glacier', 'tree') \n                                                THEN \"natural\" ELSE NULL END,\n          'place_' || CASE WHEN place IN ('island', 'islet') THEN place ELSE NULL END,\n          'military_' || CASE WHEN military IN ('danger_area') THEN military ELSE NULL END,\n          'historic_' || CASE WHEN historic IN ('memorial', 'monument', 'archaeological_site') THEN historic ELSE NULL END,\n          'highway_' || CASE WHEN highway IN ('services', 'rest_area', 'bus_stop', 'elevator', 'ford') THEN highway ELSE NULL END,\n          'boundary_' || CASE WHEN boundary IN ('national_park') THEN boundary ELSE NULL END,\n          'waterway_' || CASE WHEN waterway IN ('dam', 'weir') THEN waterway ELSE NULL END,\n          'tourism_' || CASE WHEN tourism IN ('attraction', 'viewpoint') THEN tourism ELSE NULL END,\n          'man_made_' || CASE WHEN man_made IN ('cross') THEN man_made ELSE NULL END,\n          'historic_' || CASE WHEN historic IN ('wayside_cross') THEN historic ELSE NULL END\n        ) AS feature,\n        access,\n        name,\n        CASE\n          WHEN \"natural\" IN ('peak', 'volcano', 'saddle') OR tourism = 'alpine_hut' OR amenity = 'shelter' THEN\n            CASE\n              WHEN ele ~ '^-?\\d{1,4}(\\.\\d+)?$' THEN ele::NUMERIC\n              ELSE NULL\n            END\n          ELSE NULL\n        END AS elevation,\n        \"natural\",\n        operator,\n        ref,\n        NULL AS way_area,\n        CASE WHEN building = 'no' OR building IS NULL THEN 'no' ELSE 'yes' END AS is_building\n      FROM planet_osm_point\n      -- The upcoming where clause is needed for performance only, as the CASE statements would end up doing the equivalent filtering\n      WHERE (aeroway IN ('gate', 'apron', 'helipad', 'aerodrome')\n          OR tourism IN ('alpine_hut', 'hotel', 'motel', 'hostel', 'chalet', 'guest_house', 'camp_site', 'caravan_site', 'theme_park', \n                         'museum', 'attraction', 'zoo', 'information', 'viewpoint', 'picnic_site')\n          OR amenity IS NOT NULL -- skip checking a huge list and use a null check\n          OR shop IS NOT NULL\n          OR leisure IS NOT NULL\n          OR landuse IN ('reservoir', 'basin', 'recreation_ground', 'village_green', 'quarry', 'vineyard', 'orchard', 'cemetery', 'residential', \n                         'garages', 'meadow', 'grass', 'allotments', 'forest', 'farmyard', 'farm', 'farmland', 'greenhouse_horticulture', \n                         'retail', 'industrial', 'railway', 'commercial', 'brownfield', 'landfill', 'construction', 'military')\n          OR man_made IN ('lighthouse', 'windmill', 'mast', 'water_tower', 'cross')\n          OR \"natural\" IS NOT NULL\n          OR place IN ('island', 'islet')\n          OR military IN ('danger_area')\n          OR historic IN ('memorial', 'monument', 'archaeological_site', 'wayside_cross')\n          OR highway IN ('bus_stop', 'services', 'rest_area', 'elevator', 'ford')\n          OR power IN ('plant', 'station', 'generator', 'sub_station', 'substation')\n          OR boundary IN ('national_park')\n          OR waterway IN ('dam', 'weir'))\n        AND name IS NOT NULL\n      ) AS p\n  ORDER BY score DESC NULLS LAST\n  ) AS text",
  1989.         "geometry_field": "way",
  1990.         "type": "postgis",
  1991.         "key_field": "",
  1992.         "dbname": "osm_south",
  1993.         "host": "localhost",
  1994.         "user": "postgres",
  1995.         "password": "lumosgis"
  1996.       },
  1997.       "extent": [
  1998.         -180,
  1999.         -85.05112877980659,
  2000.         180,
  2001.         85.05112877980659
  2002.       ],
  2003.       "properties": {
  2004.         "minzoom": 10
  2005.       },
  2006.       "advanced": {}
  2007.     },
  2008.     {
  2009.       "name": "building-text",
  2010.       "srs-name": "900913",
  2011.       "geometry": "polygon",
  2012.       "class": "",
  2013.       "id": "building-text",
  2014.       "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",
  2015.       "Datasource": {
  2016.         "extent": "-20037508,-20037508,20037508,20037508",
  2017.         "table": "(SELECT\n    name,\n    way,\n    way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels\n  FROM planet_osm_polygon\n  WHERE building IS NOT NULL\n    AND building NOT IN ('no')\n    AND name IS NOT NULL\n  ORDER BY way_area DESC\n) AS building_text",
  2018.         "geometry_field": "way",
  2019.         "type": "postgis",
  2020.         "key_field": "",
  2021.         "dbname": "osm_south",
  2022.         "host": "localhost",
  2023.         "user": "postgres",
  2024.         "password": "lumosgis"
  2025.       },
  2026.       "extent": [
  2027.         -180,
  2028.         -85.05112877980659,
  2029.         180,
  2030.         85.05112877980659
  2031.       ],
  2032.       "properties": {
  2033.         "minzoom": 14
  2034.       },
  2035.       "advanced": {}
  2036.     },
  2037.     {
  2038.       "name": "interpolation",
  2039.       "srs-name": "900913",
  2040.       "geometry": "linestring",
  2041.       "class": "",
  2042.       "id": "interpolation",
  2043.       "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",
  2044.       "Datasource": {
  2045.         "extent": "-20037508,-20037508,20037508,20037508",
  2046.         "table": "(SELECT\n    way\n  FROM planet_osm_line\n  WHERE \"addr:interpolation\" IS NOT NULL\n) AS interpolation",
  2047.         "geometry_field": "way",
  2048.         "type": "postgis",
  2049.         "key_field": "",
  2050.         "dbname": "osm_south",
  2051.         "host": "localhost",
  2052.         "user": "postgres",
  2053.         "password": "lumosgis"
  2054.       },
  2055.       "extent": [
  2056.         -180,
  2057.         -85.05112877980659,
  2058.         180,
  2059.         85.05112877980659
  2060.       ],
  2061.       "properties": {
  2062.         "minzoom": 17
  2063.       },
  2064.       "advanced": {}
  2065.     },
  2066.     {
  2067.       "name": "housenumbers",
  2068.       "srs-name": "900913",
  2069.       "geometry": "point",
  2070.       "class": "",
  2071.       "id": "housenumbers",
  2072.       "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",
  2073.       "Datasource": {
  2074.         "extent": "-20037508,-20037508,20037508,20037508",
  2075.         "table": "(SELECT\n    way,\n    \"addr:housenumber\",\n    way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels\n  FROM planet_osm_polygon\n  WHERE \"addr:housenumber\" IS NOT NULL\n    AND building IS NOT NULL\nUNION ALL\nSELECT\n    way,\n    \"addr:housenumber\",\n    NULL AS way_pixels\n  FROM planet_osm_point\n  WHERE \"addr:housenumber\" IS NOT NULL\n  ORDER BY way_pixels DESC NULLS LAST\n) AS housenumbers",
  2076.         "geometry_field": "way",
  2077.         "type": "postgis",
  2078.         "key_field": "",
  2079.         "dbname": "osm_south",
  2080.         "host": "localhost",
  2081.         "user": "postgres",
  2082.         "password": "lumosgis"
  2083.       },
  2084.       "extent": [
  2085.         -180,
  2086.         -85.05112877980659,
  2087.         180,
  2088.         85.05112877980659
  2089.       ],
  2090.       "properties": {
  2091.         "minzoom": 17
  2092.       },
  2093.       "advanced": {}
  2094.     },
  2095.     {
  2096.       "name": "housenames",
  2097.       "srs-name": "900913",
  2098.       "geometry": "point",
  2099.       "class": "",
  2100.       "id": "housenames",
  2101.       "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",
  2102.       "Datasource": {
  2103.         "extent": "-20037508,-20037508,20037508,20037508",
  2104.         "table": "(SELECT\n    way,\n    \"addr:housename\",\n    way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels\n  FROM planet_osm_polygon\n  WHERE \"addr:housename\" IS NOT NULL\n    AND building IS NOT NULL\nUNION ALL\nSELECT\n    way,\n    \"addr:housename\",\n    NULL AS way_pixels\n  FROM planet_osm_point WHERE \"addr:housename\" IS NOT NULL\nORDER BY way_pixels DESC NULLS LAST\n) AS housenames",
  2105.         "geometry_field": "way",
  2106.         "type": "postgis",
  2107.         "key_field": "",
  2108.         "dbname": "osm_south",
  2109.         "host": "localhost",
  2110.         "user": "postgres",
  2111.         "password": "lumosgis"
  2112.       },
  2113.       "extent": [
  2114.         -180,
  2115.         -85.05112877980659,
  2116.         180,
  2117.         85.05112877980659
  2118.       ],
  2119.       "properties": {
  2120.         "minzoom": 17
  2121.       },
  2122.       "advanced": {}
  2123.     },
  2124.     {
  2125.       "name": "water-lines-text",
  2126.       "srs-name": "900913",
  2127.       "geometry": "linestring",
  2128.       "class": "",
  2129.       "id": "water-lines-text",
  2130.       "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",
  2131.       "Datasource": {
  2132.         "extent": "-20037508,-20037508,20037508,20037508",
  2133.         "table": "(SELECT\n    way,\n    waterway,\n    lock,\n    name,\n    intermittent,\n    CASE WHEN tunnel IN ('yes', 'culvert') THEN 'yes' ELSE 'no' END AS int_tunnel\n  FROM planet_osm_line\n  WHERE waterway IN ('river', 'canal', 'derelict_canal', 'stream', 'drain', 'ditch', 'wadi')\n    AND (tunnel IS NULL or tunnel != 'culvert')\n    AND name IS NOT NULL\n  ORDER BY z_order\n) AS water_lines_text",
  2134.         "geometry_field": "way",
  2135.         "type": "postgis",
  2136.         "key_field": "",
  2137.         "dbname": "osm_south",
  2138.         "host": "localhost",
  2139.         "user": "postgres",
  2140.         "password": "lumosgis"
  2141.       },
  2142.       "extent": [
  2143.         -180,
  2144.         -85.05112877980659,
  2145.         180,
  2146.         85.05112877980659
  2147.       ],
  2148.       "properties": {
  2149.         "minzoom": 13
  2150.       },
  2151.       "advanced": {}
  2152.     },
  2153.     {
  2154.       "name": "ferry-routes-text",
  2155.       "srs-name": "900913",
  2156.       "geometry": "linestring",
  2157.       "class": "",
  2158.       "id": "ferry-routes-text",
  2159.       "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",
  2160.       "Datasource": {
  2161.         "extent": "-20037508,-20037508,20037508,20037508",
  2162.         "table": "(SELECT\n    way,\n    name\n  FROM planet_osm_line\n  WHERE route = 'ferry'\n    AND name IS NOT NULL\n) AS ferry_routes_text",
  2163.         "geometry_field": "way",
  2164.         "type": "postgis",
  2165.         "key_field": "",
  2166.         "dbname": "osm_south",
  2167.         "host": "localhost",
  2168.         "user": "postgres",
  2169.         "password": "lumosgis"
  2170.       },
  2171.       "extent": [
  2172.         -180,
  2173.         -85.05112877980659,
  2174.         180,
  2175.         85.05112877980659
  2176.       ],
  2177.       "properties": {
  2178.         "minzoom": 13
  2179.       },
  2180.       "advanced": {}
  2181.     },
  2182.     {
  2183.       "name": "admin-text",
  2184.       "srs-name": "900913",
  2185.       "geometry": "linestring",
  2186.       "class": "",
  2187.       "id": "admin-text",
  2188.       "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",
  2189.       "Datasource": {
  2190.         "extent": "-20037508,-20037508,20037508,20037508",
  2191.         "table": "(SELECT\n    way,\n    name,\n    admin_level\n  FROM planet_osm_polygon\n  WHERE boundary = 'administrative'\n    AND admin_level IN ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10')\n    AND name IS NOT NULL\n  ORDER BY admin_level::integer ASC, way_area DESC\n) AS admin_text",
  2192.         "geometry_field": "way",
  2193.         "type": "postgis",
  2194.         "key_field": "",
  2195.         "dbname": "osm_south",
  2196.         "host": "localhost",
  2197.         "user": "postgres",
  2198.         "password": "lumosgis"
  2199.       },
  2200.       "extent": [
  2201.         -180,
  2202.         -85.05112877980659,
  2203.         180,
  2204.         85.05112877980659
  2205.       ],
  2206.       "properties": {
  2207.         "minzoom": 16
  2208.       },
  2209.       "advanced": {}
  2210.     },
  2211.     {
  2212.       "name": "nature-reserve-text",
  2213.       "srs-name": "900913",
  2214.       "geometry": "linestring",
  2215.       "class": "",
  2216.       "id": "nature-reserve-text",
  2217.       "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",
  2218.       "Datasource": {
  2219.         "extent": "-20037508,-20037508,20037508,20037508",
  2220.         "table": "(SELECT\n    way,\n    name,\n    way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels\n  FROM planet_osm_polygon\n  WHERE (boundary = 'national_park' OR leisure = 'nature_reserve')\n    AND name IS NOT NULL\n) AS nature_reserve_text",
  2221.         "geometry_field": "way",
  2222.         "type": "postgis",
  2223.         "key_field": "",
  2224.         "dbname": "osm_south",
  2225.         "host": "localhost",
  2226.         "user": "postgres",
  2227.         "password": "lumosgis"
  2228.       },
  2229.       "extent": [
  2230.         -180,
  2231.         -85.05112877980659,
  2232.         180,
  2233.         85.05112877980659
  2234.       ],
  2235.       "properties": {
  2236.         "minzoom": 13
  2237.       },
  2238.       "advanced": {}
  2239.     },
  2240.     {
  2241.       "name": "amenity-low-priority",
  2242.       "srs-name": "900913",
  2243.       "geometry": "point",
  2244.       "class": "amenity-low-priority",
  2245.       "id": "amenity-low-priority",
  2246.       "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",
  2247.       "Datasource": {
  2248.         "extent": "-20037508,-20037508,20037508,20037508",
  2249.         "table": "(SELECT\n    way,\n    amenity,\n    railway,\n    highway,\n    barrier,\n    man_made,\n    historic,\n    access,\n    name,\n    CASE WHEN amenity='waste_basket' THEN 2 ELSE 1 END AS prio\n  FROM planet_osm_point p\n  WHERE barrier IN ('bollard', 'gate', 'lift_gate', 'block')\n     OR highway IN ('mini_roundabout')\n     OR railway = 'level_crossing'\n     OR amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking', 'bench', 'waste_basket')\n     OR historic = 'wayside_cross'\n     OR man_made = 'cross'\n  ORDER BY prio\n  ) AS amenity_low_priority",
  2250.         "geometry_field": "way",
  2251.         "type": "postgis",
  2252.         "key_field": "",
  2253.         "dbname": "osm_south",
  2254.         "host": "localhost",
  2255.         "user": "postgres",
  2256.         "password": "lumosgis"
  2257.       },
  2258.       "extent": [
  2259.         -180,
  2260.         -85.05112877980659,
  2261.         180,
  2262.         85.05112877980659
  2263.       ],
  2264.       "properties": {
  2265.         "minzoom": 14
  2266.       },
  2267.       "advanced": {}
  2268.     },
  2269.     {
  2270.       "name": "amenity-low-priority-poly",
  2271.       "srs-name": "900913",
  2272.       "geometry": "polygon",
  2273.       "class": "amenity-low-priority",
  2274.       "id": "amenity-low-priority-poly",
  2275.       "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",
  2276.       "Datasource": {
  2277.         "extent": "-20037508,-20037508,20037508,20037508",
  2278.         "table": "(SELECT\n    way,\n    amenity,\n    railway,\n    highway,\n    barrier,\n    man_made,\n    historic,\n    access,\n    name\n  FROM planet_osm_polygon\n  WHERE barrier IN ('bollard', 'gate', 'lift_gate', 'block')\n     OR highway IN ('mini_roundabout')\n     OR railway = 'level_crossing'\n         OR amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking')\n  ) AS amenity_low_priority_poly",
  2279.         "geometry_field": "way",
  2280.         "type": "postgis",
  2281.         "key_field": "",
  2282.         "dbname": "osm_south",
  2283.         "host": "localhost",
  2284.         "user": "postgres",
  2285.         "password": "lumosgis"
  2286.       },
  2287.       "extent": [
  2288.         -180,
  2289.         -85.05112877980659,
  2290.         180,
  2291.         85.05112877980659
  2292.       ],
  2293.       "properties": {
  2294.         "minzoom": 14
  2295.       },
  2296.       "advanced": {}
  2297.     },
  2298.     {
  2299.       "geometry": "polygon",
  2300.       "extent": [
  2301.         -106.64547807522206,
  2302.         24.523217526711395,
  2303.         -75.04841313986834,
  2304.         40.63862855104959
  2305.       ],
  2306.       "id": "ussouth_bndry",
  2307.       "class": "",
  2308.       "Datasource": {
  2309.         "file": "data\\ussouth_bound.shp"
  2310.       },
  2311.       "srs-name": "autodetect",
  2312.       "srs": "",
  2313.       "advanced": {},
  2314.       "name": "ussouth_bndry"
  2315.     }
  2316.   ],
  2317.   "scale": 1,
  2318.   "metatile": 2,
  2319.   "name": "OSM South",
  2320.   "description": "A faithful reimplementation of the standard OpenStreetMap style",
  2321.   "legend": ""
  2322. }
RAW Paste Data