class Geoblacklight::GeotiffDownload

Constants

GEOTIFF_DOWNLOAD_PARAMS

Public Class Methods

new(document, options = {}) click to toggle source
Calls superclass method Geoblacklight::Download::new
# File lib/geoblacklight/download/geotiff_download.rb, line 9
def initialize(document, options = {})
  request_params = GEOTIFF_DOWNLOAD_PARAMS.merge(layers: document[:layer_id_s])
  super(document, {
    type: 'geotiff',
    extension: 'tif',
    request_params: request_params,
    content_type: 'image/geotiff',
    service_type: 'wms',
    reflect: true
  }.merge(options))
end