]> git.openstreetmap.org Git - chef.git/commitdiff
imagery: fix master projection definition
authorGrant Slater <git@firefishy.com>
Fri, 11 Jan 2019 07:04:59 +0000 (07:04 +0000)
committerGrant Slater <git@firefishy.com>
Fri, 11 Jan 2019 07:04:59 +0000 (07:04 +0000)
cookbooks/imagery/templates/default/mapserver.map.erb

index 12942df20c9c5973117672ecfae46142eb1b189d..4bec1334f2a8dd9830f24aabbd6a1ae63647266b 100644 (file)
@@ -32,7 +32,14 @@ MAP
   <% end -%>
   IMAGETYPE <%= @extension %>
     PROJECTION
   <% end -%>
   IMAGETYPE <%= @extension %>
     PROJECTION
-    "init=<%= @projection.downcase %>"
+    <% if @projection == "EPSG:27700" -%>
+      <%# Override EPSG:27700 to use accurate nadgrid %>
+      "+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36 +units=m +no_defs +nadgrids=/srv/imagery/common/ostn02-ntv2-data/OSTN02_NTv2.gsb"
+    <% elsif @projection == "namibia_aerial" -%>
+      "+proj=tmerc +lat_0=0 +lon_0=17 +k=1 +x_0=600000 +y_0=10000000 +ellps=WGS84 +units=m +no_defs"
+    <% else -%>
+      "init=<%= @projection.downcase %>"
+    <% end -%>
   END
 
   LAYER
   END
 
   LAYER