Sha256: 6380d22a56d31eaf488cb7d533c47f6d489151302725d040f0000b3cf75b8749
Contents?: true
Size: 1.26 KB
Versions: 6
Compression:
Stored size: 1.26 KB
Contents
module GeoWorks module Processors module Raster class Base < Hydra::Derivatives::Processors::Processor include Hydra::Derivatives::Processors::ShellBasedProcessor include GeoWorks::Processors::BaseGeoProcessor include GeoWorks::Processors::Image include GeoWorks::Processors::Gdal def self.encode(path, options, output_file) case options[:label] when :thumbnail encode_raster(path, output_file, options) when :display_raster reproject_raster(path, output_file, options) end end # Set of commands to run to encode the raster thumbnail. # @return [Array] set of command name symbols def self.encode_queue [:translate, :convert] end # Set of commands to run to reproject the raster. # @return [Array] set of command name symbols def self.reproject_queue [:warp, :compress] end def self.encode_raster(in_path, out_path, options) run_commands(in_path, out_path, encode_queue, options) end def self.reproject_raster(in_path, out_path, options) run_commands(in_path, out_path, reproject_queue, options) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems