Images

In this section, we revisit the gdalworkshop/world.tif dataset.

dataset = ArchGDAL.read("gdalworkshop/world.tif")
GDAL Dataset (Driver: GTiff/GeoTIFF)
File(s): 

Dataset (width x height): 2048 x 1024 (pixels)
Number of raster bands: 3
  [GA_ReadOnly] Band 1 (Red): 2048 x 1024 (UInt8)
  [GA_ReadOnly] Band 2 (Green): 2048 x 1024 (UInt8)
  [GA_ReadOnly] Band 3 (Blue): 2048 x 1024 (UInt8)

A description of the display is available in Raster Datasets.

Reading from Datasets

We can construct an image from it in the following way:

ArchGDAL.imread(dataset)

Reading from Files

We can read the file as an image instead:

ArchGDAL.imread("gdalworkshop/world.tif")