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

Version Path
geoblacklight-0.7.0 lib/geoblacklight/download/geojson_download.rb
geoblacklight-0.6.2 lib/geoblacklight/download/geojson_download.rb
geoblacklight-0.6.1 lib/geoblacklight/download/geojson_download.rb
geoblacklight-0.6.0 lib/geoblacklight/download/geojson_download.rb
geoblacklight-0.5.1 lib/geoblacklight/download/geojson_download.rb
geoblacklight-0.5.0 lib/geoblacklight/download/geojson_download.rb
geoblacklight-0.4.2 lib/geoblacklight/download/geojson_download.rb
geoblacklight-0.4.1 lib/geoblacklight/download/geojson_download.rb
geoblacklight-0.4.0 lib/geoblacklight/download/geojson_download.rb
geoblacklight-0.3.4 lib/geoblacklight/download/geojson_download.rb
geoblacklight-0.3.3 lib/geoblacklight/download/geojson_download.rb
geoblacklight-0.3.2 lib/geoblacklight/download/geojson_download.rb
geoblacklight-0.3.1 lib/geoblacklight/download/geojson_download.rb
geoblacklight-0.3.0 lib/geoblacklight/download/geojson_download.rb
geoblacklight-0.2.2 lib/geoblacklight/download/geojson_download.rb
geoblacklight-0.2.1 lib/geoblacklight/download/geojson_download.rb
geoblacklight-0.2.0 lib/geoblacklight/download/geojson_download.rb