class Geoloader::Loaders::GeotiffSolr

Attributes

geotiff[R]
solr[R]

Public Class Methods

new(*args) click to toggle source

Configure the asset, connect to Solr.

Calls superclass method
# File lib/geoloader/loaders/geotiff_solr.rb, line 14
def initialize(*args)

  super

  # Create and configure the asset.
  @geotiff = Geoloader::Assets::Asset.new(@file_path, @workspace, @desc_path)
  @geotiff.extend(Geoloader::Assets::Geotiff)
  @geotiff.extend(Geoloader::Assets::Solr)

  # Connect to Solr.
  @solr = Geoloader::Services::Solr.new

end

Public Instance Methods

load() click to toggle source

Push a GeoTIFF to Solr.

# File lib/geoloader/loaders/geotiff_solr.rb, line 31
def load
  @geotiff.stage do
    @solr.create_document(@geotiff)
  end
end