Sha256: 4ab425567b05aa926ba3c34a821fa78c875a41e619d325d7289d73cb53ab112d
Contents?: true
Size: 1.38 KB
Versions: 6
Compression:
Stored size: 1.38 KB
Contents
module GeoConcerns module Processors module Vector class Base < Hydra::Derivatives::Processors::Processor include Hydra::Derivatives::Processors::ShellBasedProcessor include GeoConcerns::Processors::BaseGeoProcessor include GeoConcerns::Processors::Ogr include GeoConcerns::Processors::Gdal include GeoConcerns::Processors::Mapnik include GeoConcerns::Processors::Zip def self.encode(path, options, output_file) case options[:label] when :thumbnail encode_vector(path, output_file, options) when :display_vector reproject_vector(path, output_file, options) end end # Set of commands to run to encode the vector thumbnail. # @return [Array] set of command name symbols def self.encode_queue [:reproject, :mapnik_vector_thumbnail] end # Set of commands to run to reproject the vector. # @return [Array] set of command name symbols def self.reproject_queue [:reproject, :zip] end def self.encode_vector(in_path, out_path, options) run_commands(in_path, out_path, encode_queue, options) end def self.reproject_vector(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