Class: Geoblacklight::GeotiffDownload
- Inherits:
-
Download
- Object
- Download
- Geoblacklight::GeotiffDownload
- Defined in:
- lib/geoblacklight/download/geotiff_download.rb
Constant Summary collapse
- GEOTIFF_DOWNLOAD_PARAMS =
{ format: "image/geotiff", width: 4096 }.freeze
Instance Method Summary collapse
-
#initialize(document, options = {}) ⇒ GeotiffDownload
constructor
A new instance of GeotiffDownload.
Constructor Details
#initialize(document, options = {}) ⇒ GeotiffDownload
Returns a new instance of GeotiffDownload.
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/geoblacklight/download/geotiff_download.rb', line 10 def initialize(document, = {}) request_params = GEOTIFF_DOWNLOAD_PARAMS.merge(layers: document.wxs_identifier) super(document, { type: "geotiff", extension: "tif", request_params: request_params, content_type: "image/geotiff", service_type: "wms", reflect: true }.merge()) end |