Sha256: 353f733dc9b3015e62e39601da40d6e61a9b1347b7ab02b50de893f19c9d2147
Contents?: true
Size: 874 Bytes
Versions: 6
Compression:
Stored size: 874 Bytes
Contents
module GeoWorks 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' GeoWorks::Processors::Raster::Dem when 'application/octet-stream; gdal-format=AIG' GeoWorks::Processors::Raster::Aig else GeoWorks::Processors::Raster::Base end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems