Class: GeoWorks::Derivatives::Processors::Raster::Info
- Inherits:
-
Object
- Object
- GeoWorks::Derivatives::Processors::Raster::Info
- Defined in:
- lib/geo_works/derivatives/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
-
#driver ⇒ String
Returns the gdal driver name.
-
#initialize(path) ⇒ Info
constructor
A new instance of Info.
Constructor Details
#initialize(path) ⇒ Info
Returns a new instance of Info.
10 11 12 |
# File 'lib/geo_works/derivatives/processors/raster/info.rb', line 10 def initialize(path) @doc = gdalinfo(path) end |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
7 8 9 |
# File 'lib/geo_works/derivatives/processors/raster/info.rb', line 7 def doc @doc end |
#min_max ⇒ String
Returns the min and max values for a raster.
22 23 24 |
# File 'lib/geo_works/derivatives/processors/raster/info.rb', line 22 def min_max @min_max ||= raster_min_max end |
#size ⇒ Array
Returns the raster size.
28 29 30 |
# File 'lib/geo_works/derivatives/processors/raster/info.rb', line 28 def size @size ||= raster_size end |
Instance Method Details
#driver ⇒ String
Returns the gdal driver name
16 17 18 |
# File 'lib/geo_works/derivatives/processors/raster/info.rb', line 16 def driver @driver = driver_name end |