diff options
Diffstat (limited to 'project.mml')
-rwxr-xr-x | project.mml | 5 |
1 files changed, 3 insertions, 2 deletions
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", |