Class: GeoWorks::Derivatives::Processors::Raster::Info

Inherits:
Object
  • Object
show all
Defined in:
lib/geo_works/derivatives/processors/raster/info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#docObject

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_maxString

Returns the min and max values for a raster.

Returns:

  • (String)

    computed min and max values



22
23
24
# File 'lib/geo_works/derivatives/processors/raster/info.rb', line 22

def min_max
  @min_max ||= raster_min_max
end

#sizeArray

Returns the raster size.

Returns:

  • (Array)

    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

#driverString

Returns the gdal driver name

Returns:

  • (String)

    driver name



16
17
18
# File 'lib/geo_works/derivatives/processors/raster/info.rb', line 16

def driver
  @driver = driver_name
end