Sha256: 17d3765b18dddd4ba14893a7a1f3e06617575ecf6d68b7371b4e1f0e541e68ee

Contents?: true

Size: 544 Bytes

Versions: 6

Compression:

Stored size: 544 Bytes

Contents

module GeoWorks
  module Processors
    module Vector
      class Shapefile < GeoWorks::Processors::Vector::Base
        include GeoWorks::Processors::Zip

        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
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
geo_works-0.2.0 app/processors/geo_works/processors/vector/shapefile.rb
geo_works-0.1.4 app/processors/geo_works/processors/vector/shapefile.rb
geo_works-0.1.3 app/processors/geo_works/processors/vector/shapefile.rb
geo_works-0.1.2 app/processors/geo_works/processors/vector/shapefile.rb
geo_works-0.1.1 app/processors/geo_works/processors/vector/shapefile.rb
geo_works-0.1.0 app/processors/geo_works/processors/vector/shapefile.rb