1 # DO NOT EDIT - This file is being maintained by Chef
3 <% if @extension == "os_sv_png" -%>
10 FORMATOPTION "COMPRESSION=6"
11 FORMATOPTION "PALETTE_FORCE=on"
12 FORMATOPTION "PALETTE=/srv/imagery/common/ossv-palette.txt"
15 <% if @extension == "os_sv_diff_png" -%>
22 FORMATOPTION "COMPRESSION=6"
25 <% if @extension == "os_om_local_png" -%>
27 NAME "os_om_local_png"
32 FORMATOPTION "COMPRESSION=6"
33 FORMATOPTION "PALETTE_FORCE=on"
34 FORMATOPTION "PALETTE=/srv/imagery/common/os-openmap-local-palette.txt"
38 NAME "map-<%= @layer %>"
42 <% if @background_colour -%>
43 IMAGECOLOR <%= @background_colour %>
45 IMAGETYPE <%= @extension %>
47 <% if @projection == "EPSG:27700" -%>
48 <%# Override EPSG:27700 to use accurate nadgrid %>
49 "+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"
50 <% elsif @projection == "namibia_aerial" -%>
51 "+proj=tmerc +lat_0=0 +lon_0=17 +k=1 +x_0=600000 +y_0=10000000 +ellps=WGS84 +units=m +no_defs"
53 "init=<%= @projection.downcase %>"
61 <% if @projection == "EPSG:27700" -%>
62 <%# Override EPSG:27700 to use accurate nadgrid %>
63 "+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"
64 <% elsif @projection == "namibia_aerial" -%>
65 "+proj=tmerc +lat_0=0 +lon_0=17 +k=1 +x_0=600000 +y_0=10000000 +ellps=WGS84 +units=m +no_defs"
67 "init=<%= @projection.downcase %>"
72 PROCESSING "RESAMPLE=AVERAGE"
73 PROCESSING "CLOSE_CONNECTION=DEFER"