Sha256: 424beccaf62962e5beae5a50367c47d45e89f827b5b00ff6cb6fe200c2df0128
Contents?: true
Size: 570 Bytes
Versions: 12
Compression:
Stored size: 570 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[: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