Imagery - handle mapserver projection
authorGrant Slater <git@firefishy.com>
Sun, 31 Jan 2016 15:22:00 +0000 (15:22 +0000)
committerGrant Slater <git@firefishy.com>
Sun, 31 Jan 2016 16:48:19 +0000 (16:48 +0000)
cookbooks/imagery/templates/default/mapserver.map.erb

index b3f93c72662f965b94d2fa43d657519a72d6e1ca..c71b8b9d4d5883a61c1aff6c7f8d1203f6b51873 100644 (file)
@@ -6,16 +6,16 @@ MAP
   UNITS METERS
   IMAGETYPE png
     PROJECTION
-    "+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"
+    "init=<%= @projection %>"
   END
 
   LAYER
     NAME "<%= @name %>"
     DATA "<%= @source %>"
     PROJECTION
-      "+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"
+      "init=<%= @projection %>"
     END
-    STATUS       ON
+    STATUS       DEFAULT
     TYPE         RASTER
     PROCESSING "RESAMPLE=AVERAGE"
     PROCESSING "CLOSE_CONNECTION=DEFER"