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