Class: GeoConcerns::Processors::Vector::Shapefile
- Inherits:
-
Base
- Object
- Hydra::Derivatives::Processors::Processor
- Base
- GeoConcerns::Processors::Vector::Shapefile
- Includes:
- Zip
- Defined in:
- app/processors/geo_concerns/processors/vector/shapefile.rb
Class Method Summary collapse
Methods inherited from Base
encode_queue, encode_vector, reproject_queue, reproject_vector
Methods included from Rendering
Methods included from BaseGeoProcessor
#basename, #id, #label, #options_for, #output_size, #output_srid
Class Method Details
.encode(path, options, output_file) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'app/processors/geo_concerns/processors/vector/shapefile.rb', line 7 def self.encode(path, , output_file) unzip(path, output_file) do |zip_path| case [:label] when :thumbnail encode_vector(zip_path, output_file, ) when :display_vector reproject_vector(zip_path, output_file, ) end end end |