From ed6585ed67b9855b2535a99b6b08ce8826eead68 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Tue, 11 Jun 2024 14:08:55 +0100 Subject: [PATCH] imagery: add US CAPCOG 2022 imagery --- cookbooks/imagery/recipes/us_capcog.rb | 38 +++++++++++++++++++ .../templates/default/nginx_titiler.conf.erb | 5 --- 2 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 cookbooks/imagery/recipes/us_capcog.rb diff --git a/cookbooks/imagery/recipes/us_capcog.rb b/cookbooks/imagery/recipes/us_capcog.rb new file mode 100644 index 000000000..adab3c4a2 --- /dev/null +++ b/cookbooks/imagery/recipes/us_capcog.rb @@ -0,0 +1,38 @@ +# +# Cookbook:: imagery +# Recipe:: us_capcog +# +# 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 "us-imagery.openstreetmap.org" do + title "OpenStreetMap - USA - Aerial Imagery" + aliases ["us-imagery.osm.org"] + bbox [[29.62360872200975, -98.9703369140625], [31.048227924549767, -96.56089782714842]] + uses_tiler true +end + +imagery_layer "capcog-2022" do + site "us-imagery.openstreetmap.org" + uses_tiler true + title "CAPCOG 2022" + source "file:///store/imagery/us/capcog-2022-nc-cir-12in/tiles/mosaic-tiler-file.json" + copyright "© 2022 CAPCOG" + max_zoom 20 + extension "jpg" + default_layer true +end diff --git a/cookbooks/imagery/templates/default/nginx_titiler.conf.erb b/cookbooks/imagery/templates/default/nginx_titiler.conf.erb index d3595ace8..20ed10bc1 100644 --- a/cookbooks/imagery/templates/default/nginx_titiler.conf.erb +++ b/cookbooks/imagery/templates/default/nginx_titiler.conf.erb @@ -44,11 +44,6 @@ server { gzip_comp_level 9; gzip_vary on; - location /za-25cm { - root "/store/imagery/za"; - expires max; - } - location /api/v1/titiler { rewrite ^/api/v1/titiler(.*)$ $1 break; proxy_pass http://localhost:8080; -- 2.39.5