]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/imagery/templates/default/mapserver.map.erb
Imagery - add root layer support
[chef.git] / cookbooks / imagery / templates / default / mapserver.map.erb
index 29a83c27c7ab50b8a652cbb007f0ed083319c85e..2c271a5fb90c8f3047d028c69e4bfe8afa997433 100644 (file)
@@ -1,19 +1,19 @@
 # DO NOT EDIT - This file is being maintained by Chef
 MAP
 # DO NOT EDIT - This file is being maintained by Chef
 MAP
-  NAME "map-<%= @name %>"
+  NAME "map-<%= @layer %>"
   STATUS ON
   SIZE 256 256
   UNITS METERS
   IMAGETYPE <%= @extension %>
     PROJECTION
   STATUS ON
   SIZE 256 256
   UNITS METERS
   IMAGETYPE <%= @extension %>
     PROJECTION
-    "init=<%= @projection %>"
+    "init=<%= @projection.downcase %>"
   END
 
   LAYER
   END
 
   LAYER
-    NAME "<%= @name %>"
+    NAME "<%= @layer %>"
     DATA "<%= @source %>"
     PROJECTION
     DATA "<%= @source %>"
     PROJECTION
-      "init=<%= @projection %>"
+      "init=<%= @projection.downcase %>"
     END
     STATUS       DEFAULT
     TYPE         RASTER
     END
     STATUS       DEFAULT
     TYPE         RASTER