Sha256: c8c3a2f6505c78fb2b171098b886280503b2efe7b7fd746be8f979addd6a0369
Contents?: true
Size: 886 Bytes
Versions: 17
Compression:
Stored size: 886 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
17 entries across 17 versions & 1 rubygems