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