Sha256: f34fb13a535de8b69230dd3fda6bb37df64cae578901320eeb870a20df671cc2
Contents?: true
Size: 896 Bytes
Versions: 1
Compression:
Stored size: 896 Bytes
Contents
module GeoConcerns module Processors module Raster class Processor < Hydra::Derivatives::Processors::Processor def process raster_processor_class.new(source_path, directives, output_file_service: output_file_service).process end # Returns a raster processor class based on mime type passed in the directives object. # # @return raster processing class def raster_processor_class case directives.fetch(:input_format) when 'text/plain; gdal-format=USGSDEM' GeoConcerns::Processors::Raster::Dem when 'application/octet-stream; gdal-format=AIG' GeoConcerns::Processors::Raster::Aig else GeoConcerns::Processors::Raster::Base end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
geo_concerns-0.0.1 | app/processors/geo_concerns/processors/raster/processor.rb |