Class: GeoConcerns::Processors::Vector::Shapefile

Inherits:
Base
  • Object
show all
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

simple_tiles_map

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, options, output_file)
  unzip(path, output_file) do |zip_path|
    case options[:label]
    when :thumbnail
      encode_vector(zip_path, output_file, options)
    when :display_vector
      reproject_vector(zip_path, output_file, options)
    end
  end
end