Sha256: 8c5a4060f26256f20237d4f0d2a9f653e94e5de357fe74de15ca25dfddf16787

Contents?: true

Size: 430 Bytes

Versions: 17

Compression:

Stored size: 430 Bytes

Contents

class GeotiffDownload < Download
  GEOTIFF_DOWNLOAD_PARAMS = {
    format: 'image/geotiff',
    width: 4096
  }

  def initialize(document)
    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
    })
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
geoblacklight-0.7.0 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.6.2 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.6.1 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.6.0 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.5.1 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.5.0 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.4.2 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.4.1 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.4.0 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.3.4 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.3.3 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.3.2 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.3.1 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.3.0 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.2.2 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.2.1 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.2.0 lib/geoblacklight/download/geotiff_download.rb