Sha256: 8e4cc04181164ffc26c6aa825d8ba9fe0bab92792775d8d9ab5b82a07d8d5a9a

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

require 'spec_helper'
require 'support/integration_help'
require 'ffi-gdal'

TIF_FILES.each do |file|
  dataset =  GDAL::Dataset.open(file, 'r')

  RSpec.describe 'GeoTransform Info' do
    after :all do
      dataset.close
    end

    subject do
      dataset.geo_transform
    end

    describe '#x_origin' do
      it 'is a Float' do
        expect(subject.x_origin).to be_a Float
      end
    end

    describe '#y_origin' do
      it 'is a Float' do
        expect(subject.y_origin).to be_a Float
      end
    end

    describe '#pixel_width' do
      it 'is a Float' do
        expect(subject.pixel_width).to be_a Float
      end
    end

    describe '#x_rotation' do
      it 'is a Float' do
        expect(subject.x_rotation).to be_a Float
      end
    end

    describe '#y_rotation' do
      it 'is a Float' do
        expect(subject.y_rotation).to be_a Float
      end
    end

    describe '#pixel_height' do
      it 'is a Float' do
        expect(subject.pixel_height).to be_a Float
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta5 spec/integration/gdal/geo_transform_info_spec.rb
ffi-gdal-1.0.0.beta4 spec/integration/gdal/geo_transform_info_spec.rb