Sha256: 17b12bdb7427d5b26f6662504fba96bc9ad6daf669b34aac2323d49d2fd5762e

Contents?: true

Size: 967 Bytes

Versions: 17

Compression:

Stored size: 967 Bytes

Contents

module GeoConcerns
  module Processors
    module Raster
      class Dem < GeoConcerns::Processors::Raster::Base
        # Set of commands to run to encode the DEM thumbnail.
        # @return [Array] set of command name symbols
        def self.encode_queue
          [:hillshade, :convert]
        end

        # Set of commands to run to reproject the DEM.
        # @return [Array] set of command name symbols
        def self.reproject_queue
          [:hillshade, :warp]
        end

        # Executes a gdal hillshade command. Calculates hillshade
        # on a raster that contains elevation data.
        # @param in_path [String] file input path
        # @param out_path [String] processor output file path
        # @param options [Hash] creation options
        def self.hillshade(in_path, out_path, _options)
          execute "gdaldem hillshade -q "\
                    "-of GTiff \"#{in_path}\" #{out_path}"
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
geo_concerns-0.3.4 app/processors/geo_concerns/processors/raster/dem.rb
geo_concerns-0.3.3 app/processors/geo_concerns/processors/raster/dem.rb
geo_concerns-0.3.2 app/processors/geo_concerns/processors/raster/dem.rb
geo_concerns-0.3.1 app/processors/geo_concerns/processors/raster/dem.rb
geo_concerns-0.3.0 app/processors/geo_concerns/processors/raster/dem.rb
geo_concerns-0.2.0 app/processors/geo_concerns/processors/raster/dem.rb
geo_concerns-0.1.1 app/processors/geo_concerns/processors/raster/dem.rb
geo_concerns-0.1.0 app/processors/geo_concerns/processors/raster/dem.rb
geo_concerns-0.0.10 app/processors/geo_concerns/processors/raster/dem.rb
geo_concerns-0.0.9 app/processors/geo_concerns/processors/raster/dem.rb
geo_concerns-0.0.8 app/processors/geo_concerns/processors/raster/dem.rb
geo_concerns-0.0.7 app/processors/geo_concerns/processors/raster/dem.rb
geo_concerns-0.0.6 app/processors/geo_concerns/processors/raster/dem.rb
geo_concerns-0.0.5 app/processors/geo_concerns/processors/raster/dem.rb
geo_concerns-0.0.4 app/processors/geo_concerns/processors/raster/dem.rb
geo_concerns-0.0.3 app/processors/geo_concerns/processors/raster/dem.rb
geo_concerns-0.0.2 app/processors/geo_concerns/processors/raster/dem.rb