Sha256: 0530dda37b3a26cc948f27b2c26027db81e3c58602027d295c9e9d81d717d822
Contents?: true
Size: 807 Bytes
Versions: 1
Compression:
Stored size: 807 Bytes
Contents
module GeoConcerns module Processors module Vector class Processor < Hydra::Derivatives::Processors::Processor def process vector_processor_class.new(source_path, directives, output_file_service: output_file_service).process end # Returns a vector processor class based on mime type passed in the directives object. # # @return vector processing class def vector_processor_class case directives.fetch(:input_format) when 'application/zip; ogr-format="ESRI Shapefile"' GeoConcerns::Processors::Vector::Shapefile else GeoConcerns::Processors::Vector::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/vector/processor.rb |