Sha256: b1f6814497939b7ea2bbe0467e7d9ba326f35c01c02f42738452eabb1882eccf

Contents?: true

Size: 762 Bytes

Versions: 1

Compression:

Stored size: 762 Bytes

Contents

require 'spec_helper'

describe GeoConcerns::Processors::Raster::Dem do
  let(:output_file) { 'output/geo.png' }
  let(:file_name) { 'files/geo.dem' }
  let(:options) { { output_format: 'PNG',
                    output_size: '150 150',
                    label: :thumbnail }
  }

  subject { described_class.new(file_name, {}) }

  describe '#translate' do
    it 'returns a translate command for the USGS Digital Elevation Model format' do
      expect(subject.class.translate(file_name, options, output_file))
        .to include('USGSDEM')
    end
  end

  describe '#hillshade' do
    it 'returns a gdal hillshade command' do
      expect(subject.class.hillshade(file_name, options, output_file))
        .to include('gdaldem hillshade')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
geo_concerns-0.0.1 spec/processors/geo_concerns/processors/raster/dem_spec.rb