From f8522ae63e215cb38601a99058fca2b625efa35a Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Mon, 3 Feb 2025 11:33:14 +1100 Subject: [PATCH] add city of melbourne imagery --- .../recipes/au_vic_melbourne_aerial.rb | 60 +++++++++++++++++++ roles/imagery.rb | 1 + 2 files changed, 61 insertions(+) create mode 100644 cookbooks/imagery/recipes/au_vic_melbourne_aerial.rb diff --git a/cookbooks/imagery/recipes/au_vic_melbourne_aerial.rb b/cookbooks/imagery/recipes/au_vic_melbourne_aerial.rb new file mode 100644 index 000000000..a05823545 --- /dev/null +++ b/cookbooks/imagery/recipes/au_vic_melbourne_aerial.rb @@ -0,0 +1,60 @@ +# +# Cookbook:: imagery +# Recipe:: au_vic_melbourne_aerial +# +# Copyright:: 2024, 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 +# +# https://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::tiler" + +imagery_site "au-vic-melbourne-imagery.openstreetmap.org" do + title "OpenStreetMap - City of Melbourne - Aerial Imagery" + aliases ["au-vic-melbourne-imagery.osm.org"] + # https://leafletjs.com/reference.html#latlngbounds format + # [[south, west], [north, east]] + bbox [[-37.850667, 144.896981], [-37.775451, 144.991351]] + uses_tiler true +end + +imagery_layer "melbourne-2020" do + site "au-vic-melbourne-imagery.openstreetmap.org" + uses_tiler true + title "AU City of Melbourne 2020" + source "file:///store/imagery/au/city-of-melbourne/CoM_May2020_2cm.cog.tiff" + copyright "(c) 2020 City of Melbourne" + max_zoom 23 + extension "jpg" + default_layer true +end + +imagery_layer "melbourne-2019" do + site "au-vic-melbourne-imagery.openstreetmap.org" + uses_tiler true + title "AU City of Melbourne 2019" + source "file:///store/imagery/au/city-of-melbourne/CoM_03Feb2019.cog.tiff" + copyright "(c) 2019 City of Melbourne" + max_zoom 21 + extension "jpg" +end + +imagery_layer "melbourne-2018" do + site "au-vic-melbourne-imagery.openstreetmap.org" + uses_tiler true + title "AU City of Melbourne 2018" + source "file:///store/imagery/au/city-of-melbourne/CoM_May2018_10cm.COG.tiff" + copyright "(c) 2018 City of Melbourne" + max_zoom 21 + extension "jpg" +end diff --git a/roles/imagery.rb b/roles/imagery.rb index cc4dc454c..f024515a9 100644 --- a/roles/imagery.rb +++ b/roles/imagery.rb @@ -36,6 +36,7 @@ default_attributes( run_list( "recipe[imagery::au_agri]", "recipe[imagery::au_act_aerial]", + "recipe[imagery::au_vic_melbourne_aerial]", "recipe[imagery::gb_ea]", "recipe[imagery::gb_hampshire_aerial]", "recipe[imagery::gb_os_sv]", -- 2.39.5