Sha256: 583c75fabc1e93fc299c8fcb0d7a1f1cea7c5035b1f97b1cb65fe9f6061ff596
Contents?: true
Size: 489 Bytes
Versions: 7
Compression:
Stored size: 489 Bytes
Contents
class ShapefileDownload < Download SHAPEFILE_DOWNLOAD_PARAMS = { service: 'wfs', version: '2.0.0', request: 'GetFeature', srsName: 'EPSG:4326', outputformat: 'SHAPE-ZIP' } def initialize(document) 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: :solr_wfs_url }) end end
Version data entries
7 entries across 7 versions & 1 rubygems