Sha256: f9dddf3c9c171e84aade0d2fe73c952239712b8fe41fbd33960dcaca304647d8

Contents?: true

Size: 533 Bytes

Versions: 12

Compression:

Stored size: 533 Bytes

Contents

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

    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

12 entries across 12 versions & 1 rubygems

Version Path
geoblacklight-0.12.1 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.12.0 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.11.1 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.11.0 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.10.2 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.10.1 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.10.0 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.9.2 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.9.1 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.9.0 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.8.0 lib/geoblacklight/download/geotiff_download.rb
geoblacklight-0.7.1 lib/geoblacklight/download/geotiff_download.rb