Sha256: 3651346be45cbd2fed5fbd82cfb1b8f4c7450846e72fbf2c628067faaea05a28
Contents?: true
Size: 502 Bytes
Versions: 17
Compression:
Stored size: 502 Bytes
Contents
class GeojsonDownload < Download GEOJSON_DOWNLOAD_PARAMS = { service: 'wfs', version: '2.0.0', request: 'GetFeature', srsName: 'EPSG:4326', outputformat: 'application/json' } def initialize(document) 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' }) end end
Version data entries
17 entries across 17 versions & 1 rubygems