]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/imagery/recipes/gb_hampshire_aerial.rb
Imagery - add url alias support
[chef.git] / cookbooks / imagery / recipes / gb_hampshire_aerial.rb
index 8209c0d2804a675f940f510cdf51079eff0bab4a..ae74a43e56ee1bb2feb8cb1c70d04bdc458fd726 100644 (file)
@@ -1,6 +1,6 @@
 #
 # Cookbook Name:: imagery
 #
 # Cookbook Name:: imagery
-# Recipe:: gb-hampshire-aerial
+# Recipe:: gb_hampshire_aerial
 #
 # Copyright 2016, OpenStreetMap Foundation
 #
 #
 # Copyright 2016, OpenStreetMap Foundation
 #
 include_recipe "imagery"
 
 imagery_site "hampshire.aerial.openstreetmap.org.uk" do
 include_recipe "imagery"
 
 imagery_site "hampshire.aerial.openstreetmap.org.uk" do
-  imagery_layer "gb_hampshire_aerial-rgb" do
-    site new_resource.name
-    text "Hampshire Aerial - Summer 2013"
-    source "/data/imagery/gb/hampshire-aerial/hampshire-aerial-RGB.tif"
-    projection "EPSG:27700"
-    copyright "Hampshire Hub - Open Government Licence (OGL) 2014"
-  end
+  # aliases
+end
+
+imagery_layer "gb_hampshire_aerial_rgb" do
+  site "hampshire.aerial.openstreetmap.org.uk"
+  root_layer true
+  text "Hampshire Aerial - Summer 2013"
+  source "/data/imagery/gb/hampshire-aerial/hampshire-aerial-RGB.tif"
+  projection "EPSG:27700"
+  copyright "Hampshire Hub - Open Government Licence (OGL) 2014"
+  url_aliases [ "/hampshire-rgb" ]
+end
 
 
-  imagery_layer "gb_hampshire_aerial_fcir" do
-    site new_resource.name
-    text "Hampshire Aerial - Summer 2013 (FCIR)"
-    source "/data/imagery/gb/hampshire-aerial/hampshire-aerial-FCIR.tif"
-    projection "EPSG:27700"
-    copyright "Hampshire Hub - Open Government Licence (OGL) 2014"
-  end
+imagery_layer "gb_hampshire_aerial_fcir" do
+  site "hampshire.aerial.openstreetmap.org.uk"
+  text "Hampshire Aerial - Summer 2013 (False Colour IR)"
+  source "/data/imagery/gb/hampshire-aerial/hampshire-aerial-FCIR.tif"
+  projection "EPSG:27700"
+  copyright "Hampshire Hub - Open Government Licence (OGL) 2014"
+  url_aliases [ "/hampshire-fcir" ]
 end
 end