Learn R Programming

gdalBindings (version 0.1.17)

GDALOpen: Open GDAL raster

Description

Function to open GDAL Dataset

Usage

GDALOpen(filename, readonly = TRUE)

Value

An R6 object of GDALDataset class.

Arguments

filename

Character. The path to a GDAL dataset.

readonly

Logical. Flag to open a read only GDALDataset with GA_ReadOnly or GA_Update. Default TRUE.

Examples

Run this code
ds_path <- system.file("extdata", "example.tif", package="gdalBindings")

ds <- GDALOpen(ds_path)
ds$Close()

Run the code above in your browser using DataLab