X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/388687b7120815bc61f49de6c5dd0ea793dad67b..b88e04237dcfbf1d7c4b7aa6023465f8e4a34f44:/cookbooks/imagery/templates/default/mapserver.map.erb diff --git a/cookbooks/imagery/templates/default/mapserver.map.erb b/cookbooks/imagery/templates/default/mapserver.map.erb index d44f3ec78..c918ca9f1 100644 --- a/cookbooks/imagery/templates/default/mapserver.map.erb +++ b/cookbooks/imagery/templates/default/mapserver.map.erb @@ -7,7 +7,7 @@ MAP MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" - FORMATOPTION "COMPRESSION=9" + FORMATOPTION "COMPRESSION=6" FORMATOPTION "PALETTE_FORCE=on" FORMATOPTION "PALETTE=/srv/imagery/common/ossv-palette.txt" END @@ -19,7 +19,19 @@ MAP MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" - FORMATOPTION "COMPRESSION=9" + FORMATOPTION "COMPRESSION=6" + END +<% end -%> +<% if @extension == "os_om_local_png" -%> + OUTPUTFORMAT + NAME "os_om_local_png" + DRIVER AGG/PNG + MIMETYPE "image/png" + IMAGEMODE RGB + EXTENSION "png" + FORMATOPTION "COMPRESSION=6" + FORMATOPTION "PALETTE_FORCE=on" + FORMATOPTION "PALETTE=/srv/imagery/common/os-openmap-local-palette.txt" END <% end -%> @@ -32,16 +44,19 @@ MAP <% end -%> IMAGETYPE <%= @extension %> PROJECTION - "init=<%= @projection.downcase %>" + <% if @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 NAME "<%= @layer %>" DATA "<%= @source %>" PROJECTION - <% 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" + <% if @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 -%> @@ -49,6 +64,6 @@ MAP STATUS DEFAULT TYPE RASTER PROCESSING "RESAMPLE=AVERAGE" - PROCESSING "CLOSE_CONNECTION=NORMAL" + PROCESSING "CLOSE_CONNECTION=DEFER" END # layer END