Sha256: 36d3fad4fad939bfb967bdebdac63ce7985921120752d66cb544f43a58a8d151
Contents?: true
Size: 717 Bytes
Versions: 28
Compression:
Stored size: 717 Bytes
Contents
module Geoblacklight class ShapefileDownload < Geoblacklight::Download SHAPEFILE_DOWNLOAD_PARAMS = { service: 'wfs', version: '2.0.0', request: 'GetFeature', srsName: 'EPSG:4326', outputformat: 'SHAPE-ZIP' }.freeze def initialize(document, options = {}) request_params = SHAPEFILE_DOWNLOAD_PARAMS.merge(typeName: document[:layer_id_s]) super(document, { type: 'shapefile', extension: 'zip', request_params: request_params, content_type: 'application/zip', service_type: 'wfs' }.merge(options)) end end end
Version data entries
28 entries across 28 versions & 1 rubygems