Class: GeoConcerns::Processors::Raster::Info

Inherits:
Object
  • Object
show all
Defined in:
app/processors/geo_concerns/processors/raster/info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Info

Returns a new instance of Info.



8
9
10
# File 'app/processors/geo_concerns/processors/raster/info.rb', line 8

def initialize(path)
  @doc = gdalinfo(path)
end

Instance Attribute Details

#docObject

Returns the value of attribute doc.



5
6
7
# File 'app/processors/geo_concerns/processors/raster/info.rb', line 5

def doc
  @doc
end

#min_maxString

Returns the min and max values for a raster.

Returns:

  • (String)

    computed min and max values



14
15
16
# File 'app/processors/geo_concerns/processors/raster/info.rb', line 14

def min_max
  @min_max ||= raster_min_max
end

#sizeArray

Returns the raster size.

Returns:

  • (Array)

    raster size



20
21
22
# File 'app/processors/geo_concerns/processors/raster/info.rb', line 20

def size
  @size ||= raster_size
end