Sha256: 5ff260f83d3661c7ac50aed1994593148708db698bdc9d0179f1f0289f1c602a

Contents?: true

Size: 473 Bytes

Versions: 8

Compression:

Stored size: 473 Bytes

Contents

# frozen_string_literal: true

class Map::Gdal::RgbService
  include Map::Gdal::Base

  attr_reader :merge

  delegate :clean, to: :merge

  def initialize(files)
    @merge = Map::Gdal::MergeService.new(files)
  end

  def call
    # http://www.processamentodigital.com.br/2013/11/23/qgis-2-0-composicao-colorida-rgb-para-imagens-landsat-8/

    out = @merge.call([
      '-separate',
      '-co TFW=yes',
      '-of GTiff'
    ])

    add_to_clean(out)

    out
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
aqila-mapas-0.4.12 lib/map/gdal/rgb_service.rb
aqila-mapas-0.4.11 lib/map/gdal/rgb_service.rb
aqila-mapas-0.4.9 lib/map/gdal/rgb_service.rb
aqila-mapas-0.4.8 lib/map/gdal/rgb_service.rb
aqila-mapas-0.4.7 lib/map/gdal/rgb_service.rb
aqila-mapas-0.4.6 lib/map/gdal/rgb_service.rb
aqila-mapas-0.4.5 lib/map/gdal/rgb_service.rb
aqila-mapas-0.4.4 lib/map/gdal/rgb_service.rb