Sha256: c56b62e6353803a9dcb65565a5fc0cfa97b8f5c7453a534ab1112edce7dabe8a
Contents?: true
Size: 646 Bytes
Versions: 12
Compression:
Stored size: 646 Bytes
Contents
# frozen_string_literal: true 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
12 entries across 12 versions & 1 rubygems