From 9eec6520509399c6b1c7e5ebde1ee05876e4232e Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Fri, 27 Dec 2013 13:10:49 +0000 Subject: Better trees from the osmfr style https://github.com/cquest/osmfr-cartocss.git --- project.mml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'project.mml') diff --git a/project.mml b/project.mml index f3e739c..d8a8e5d 100755 --- a/project.mml +++ b/project.mml @@ -40,7 +40,8 @@ "id": "coast-poly", "class": "", "Datasource": { - "file": "data/processed_p/processed_p.shp" + "file": "data/processed_p/processed_p.shp", + "type": "shape" }, "srs-name": "900913", "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over", @@ -83,7 +84,7 @@ ], "Datasource": { "type": "postgis", - "table": "(select way,\"natural\" from planet_osm_point where \"natural\"='tree') as trees", + "table": "(select st_buffer(st_collect(way),3) as way, 'poly' as type from planet_osm_point where \"natural\"='tree' AND way && !bbox! UNION select way, 'point' as type from planet_osm_point where \"natural\"='tree' AND way && !bbox! union select st_buffer(st_collect(way),3) as way, 'poly' as type from planet_osm_line where \"natural\"='tree_row' and way && !bbox! ) as trees", "key_field": "", "geometry_field": "", "extent_cache": "auto", -- cgit v1.2.3