Sha256: 2d16834c05b56d9625bfc14d3702937578f94327d4801163b521da3fa570eda5
Contents?: true
Size: 524 Bytes
Versions: 8
Compression:
Stored size: 524 Bytes
Contents
# frozen_string_literal: true # gdalwarp - image reprojection and warping utility # http://www.gdal.org/gdalwarp.html class Map::Gdal::WarpService include Map::Gdal::Base attr_reader :tif def initialize(tif) @tif = tif end def call(options) raise "Arquivo TIF inválido. [#{tif.inspect}]" unless tif && File.exist?(tif) out = get_path_to_temp_file(:warp, :tif) run_command(%{gdalwarp -q -overwrite #{options_to_command_line(options)} "#{tif}" "#{out}"}) add_to_clean(out) out end end
Version data entries
8 entries across 8 versions & 1 rubygems