]> git.openstreetmap.org Git - chef.git/commitdiff
imagery: add US CAPCOG 2022 imagery
authorGrant Slater <github@firefishy.com>
Tue, 11 Jun 2024 13:08:55 +0000 (14:08 +0100)
committerGrant Slater <github@firefishy.com>
Tue, 11 Jun 2024 13:11:10 +0000 (14:11 +0100)
cookbooks/imagery/recipes/us_capcog.rb [new file with mode: 0644]
cookbooks/imagery/templates/default/nginx_titiler.conf.erb

diff --git a/cookbooks/imagery/recipes/us_capcog.rb b/cookbooks/imagery/recipes/us_capcog.rb
new file mode 100644 (file)
index 0000000..adab3c4
--- /dev/null
@@ -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
index d3595ace88d72ee94ea1fc8dee7dd55f185c3eff..20ed10bc1fbd1e8e6934212e4728377d0e4d0749 100644 (file)
@@ -44,11 +44,6 @@ server {
     gzip_comp_level 9;
     gzip_vary on;
 
     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;
     location /api/v1/titiler {
       rewrite ^/api/v1/titiler(.*)$ $1 break;
       proxy_pass http://localhost:8080;