Sha256: 52b6abbaaf99d2f3c1e66d23eeb21b36d72a16445ef7db53944d9cf7fc483ebb

Contents?: true

Size: 589 Bytes

Versions: 8

Compression:

Stored size: 589 Bytes

Contents

# frozen_string_literal: true
module Geoblacklight
  class GeotiffDownload < Geoblacklight::Download
    GEOTIFF_DOWNLOAD_PARAMS = {
      format: 'image/geotiff',
      width: 4096
    }.freeze

    def initialize(document, options = {})
      request_params = GEOTIFF_DOWNLOAD_PARAMS.merge(layers: document[Settings.FIELDS.WXS_IDENTIFIER])
      super(document, {
        type: 'geotiff',
        extension: 'tif',
        request_params: request_params,
        content_type: 'image/geotiff',
        service_type: 'wms',
        reflect: true
      }.merge(options))
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
geoblacklight-4.0.0 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-4.0.0.pre.rc3 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-4.0.0.pre.rc2 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-4.0.0.pre.rc1 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-4.0.0.pre.alpha.3 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-4.0.0.pre.alpha.2 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-4.0.0.pre.alpha.1 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-4.0.0.pre.alpha lib/geoblacklight/download/geotiff_download.rb