--- /dev/null
+#
+# Cookbook Name:: imagery
+# Recipe:: au-agri
+#
+# Copyright 2016, OpenStreetMap Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+include_recipe "imagery"
+
+imagery_site "agri.openstreetmap.org" do
+ # aliases ["agri.openstreetmap.org.au"]
+
+ imagery_layer "au_ga_agri" do
+ site new_resource.name
+ text "AGRI: The Australian Geographic Reference Image"
+ copyright "Commonwealth of Australia (Geoscience Australia) - Creative Commons Attribution 4.0 International Licence"
+ projection "EPSG:3857"
+ source "/data/imagery/au/agri/combine.vrt"
+ end
+end
--- /dev/null
+#
+# Cookbook Name:: imagery
+# Recipe:: gb-hampshire-aerial
+#
+# Copyright 2016, OpenStreetMap Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+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
+
+ 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
+end
--- /dev/null
+#
+# Cookbook Name:: imagery
+# Recipe:: gb-ossv
+#
+# Copyright 2016, OpenStreetMap Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+include_recipe "imagery"
+
+imagery_site "os.openstreetmap.org" do
+ aliases ["os.openstreetmap.org.uk"]
+
+ imagery_layer "gb_os_sv_2010_04" do
+ site new_resource.name
+ projection "EPSG:27700"
+ source "/data/imagery/gb/os-sv/ossv-2010-04-combined.vrt"
+ copyright "Contains Ordnance Survey data © Crown copyright and database right 2010" # FIXME: Correct Copyright?
+ background_colour "230 246 255" # OSSV Water Blue
+ extension "png"
+ palette "ossv-palette.txt"
+ extent "5000 5000 660000 1225000"
+ end
+
+ imagery_layer "gb_os_sv_2010_11" do
+ site new_resource.name
+ projection "EPSG:27700"
+ source "/data/imagery/gb/os-sv/ossv-2010-11-combined.vrt"
+ copyright "Contains Ordnance Survey data © Crown copyright and database right 2010" # FIXME: Correct Copyright?
+ background_colour "230 246 255" # OSSV Water Blue
+ extension "png"
+ palette "ossv-palette.txt"
+ extent "5000 5000 660000 1225000"
+ end
+
+ imagery_layer "gb_os_sv_2011_05" do
+ site new_resource.name
+ projection "EPSG:27700"
+ source "/data/imagery/gb/os-sv/ossv-2011-05-combined.vrt"
+ copyright "Contains Ordnance Survey data © Crown copyright and database right 2011" # FIXME: Correct Copyright?
+ background_colour "230 246 255" # OSSV Water Blue
+ extension "png"
+ palette "ossv-palette.txt"
+ extent "5000 5000 660000 1225000"
+ end
+
+ imagery_layer "gb_os_sv_2011_11" do
+ site new_resource.name
+ projection "EPSG:27700"
+ source "/data/imagery/gb/os-sv/ossv-2011-11-combined.vrt"
+ copyright "Contains Ordnance Survey data © Crown copyright and database right 2011" # FIXME: Correct Copyright?
+ background_colour "230 246 255" # OSSV Water Blue
+ extension "png"
+ palette "ossv-palette.txt"
+ extent "5000 5000 660000 1225000"
+ end
+
+ imagery_layer "gb_os_sv_2012_05" do
+ site new_resource.name
+ projection "EPSG:27700"
+ source "/data/imagery/gb/os-sv/ossv-2012-05-combined.vrt"
+ copyright "Contains Ordnance Survey data © Crown copyright and database right 2012"
+ background_colour "230 246 255" # OSSV Water Blue
+ extension "png"
+ palette "ossv-palette.txt"
+ extent "5000 5000 660000 1225000"
+ end
+
+ imagery_layer "gb_os_sv_2012_11" do
+ site new_resource.name
+ projection "EPSG:27700"
+ source "/data/imagery/gb/os-sv/ossv-2012-11-combined.vrt"
+ copyright "Contains Ordnance Survey data © Crown copyright and database right 2012"
+ background_colour "230 246 255" # OSSV Water Blue
+ extension "png"
+ palette "ossv-palette.txt"
+ extent "5000 5000 660000 1225000"
+ end
+
+ imagery_layer "gb_os_sv_2013_05" do
+ site new_resource.name
+ projection "EPSG:27700"
+ source "/data/imagery/gb/os-sv/ossv-2013-05-combined.vrt"
+ copyright "Contains Ordnance Survey data © Crown copyright and database right 2013"
+ background_colour "230 246 255" # OSSV Water Blue
+ extension "png"
+ palette "ossv-palette.txt"
+ extent "5000 5000 660000 1225000"
+ end
+
+ imagery_layer "gb_os_sv_2013_11" do
+ site new_resource.name
+ projection "EPSG:27700"
+ source "/data/imagery/gb/os-sv/ossv-2013-11-combined.vrt"
+ copyright "Contains Ordnance Survey data © Crown copyright and database right 2013"
+ background_colour "230 246 255" # OSSV Water Blue
+ extension "png"
+ palette "ossv-palette.txt"
+ extent "5000 5000 660000 1225000"
+ end
+
+ imagery_layer "gb_os_sv_2014_04" do
+ site new_resource.name
+ projection "EPSG:27700"
+ source "/data/imagery/gb/os-sv/ossv-2014-04-combined.vrt"
+ copyright "Contains Ordnance Survey data © Crown copyright and database right 2014"
+ background_colour "230 246 255" # OSSV Water Blue
+ extension "png"
+ palette "ossv-palette.txt"
+ extent "5000 5000 660000 1225000"
+ end
+
+ imagery_layer "gb_os_sv_2014_10" do
+ site new_resource.name
+ projection "EPSG:27700"
+ source "/data/imagery/gb/os-sv/ossv-2014-10-combined.vrt"
+ copyright "Contains Ordnance Survey data © Crown copyright and database right 2014"
+ background_colour "230 246 255" # OSSV Water Blue
+ extension "png"
+ palette "ossv-palette.txt"
+ extent "5000 5000 660000 1225000"
+ end
+
+ imagery_layer "gb_os_sv_2015-05" do
+ site new_resource.name
+ projection "EPSG:27700"
+ source "/data/imagery/gb/os-sv/ossv-2015-05-combined.vrt"
+ copyright "Contains Ordnance Survey data © Crown copyright and database right 2015"
+ background_colour "230 246 255" # OSSV Water Blue
+ extension "png"
+ palette "ossv-palette.txt"
+ extent "5000 5000 660000 1225000"
+ end
+
+ imagery_layer "gb_os_sv_2015_11" do
+ site new_resource.name
+ projection "EPSG:27700"
+ source "/data/imagery/gb/os-sv/ossv-2015-11-combined.vrt"
+ copyright "Contains Ordnance Survey data © Crown copyright and database right 2015"
+ background_colour "230 246 255" # OSSV Water Blue
+ extension "png"
+ palette "ossv-palette.txt"
+ extent "5000 5000 660000 1225000"
+ end
+end
property :site, String, :required => true
property :source, String, :required => true
property :text, String
-property :copyright, String, :default => "Copyright"
+property :copyright, String, :default => "Copyright"
property :projection, String, :default => "EPSG:3857"
property :palette, String
property :extent, String
property :background, String
-property :resample, String, :default => "average"
+property :resample, String, :default => "average"
property :imagemode, String
property :extension, String
-property :max_zoom, Fixnum, :default => 23
+property :max_zoom, Fixnum, :default => 23
action :create do
template "/srv/imagery/mapserver/layer-#{name}.map" do