Sha256: 1ea0248a70818fc4df3aebd0f3d23547a85adcef75b3b2bb25955aabf99ea194
Contents?: true
Size: 616 Bytes
Versions: 28
Compression:
Stored size: 616 Bytes
Contents
module Geoblacklight class GeojsonDownload < Geoblacklight::Download GEOJSON_DOWNLOAD_PARAMS = { service: 'wfs', version: '2.0.0', request: 'GetFeature', srsName: 'EPSG:4326', outputformat: 'application/json' }.freeze def initialize(document, options = {}) request_params = GEOJSON_DOWNLOAD_PARAMS.merge(typeName: document[:layer_id_s]) super(document, { type: 'geojson', extension: 'json', request_params: request_params, content_type: 'application/json', service_type: 'wfs' }.merge(options)) end end end
Version data entries
28 entries across 28 versions & 1 rubygems