Sha256: b761ca27768c4501aa497323136accbbc62bc9622f08f5e64e90895cba48921f

Contents?: true

Size: 540 Bytes

Versions: 28

Compression:

Stored size: 540 Bytes

Contents

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[: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
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
geoblacklight-1.1.0 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-1.0.3 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-1.0.2 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-1.0.1 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-1.0.0 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-1.0.0.pre3 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-1.0.0.pre2 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-1.0.0.pre1 lib/geoblacklight/download/geotiff_download.rb