Class: GeoConcerns::Processors::Raster::Info
- Inherits:
-
Object
- Object
- GeoConcerns::Processors::Raster::Info
- Defined in:
- app/processors/geo_concerns/processors/raster/info.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
-
#min_max ⇒ String
Returns the min and max values for a raster.
-
#size ⇒ Array
Returns the raster size.
Instance Method Summary collapse
-
#initialize(path) ⇒ Info
constructor
A new instance of Info.
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
#doc ⇒ Object
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_max ⇒ String
Returns the min and max values for a raster.
14 15 16 |
# File 'app/processors/geo_concerns/processors/raster/info.rb', line 14 def min_max @min_max ||= raster_min_max end |
#size ⇒ Array
Returns the raster size.
20 21 22 |
# File 'app/processors/geo_concerns/processors/raster/info.rb', line 20 def size @size ||= raster_size end |