gt_raster: Create geotrellis raster object

Description Usage Arguments Details Value See Also Examples

Description

This function creates a geotrellis raster object (gt_RasterLayer).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
gt_raster(x, ...)

## S4 method for signature 'character'
gt_raster(x)

## S4 method for signature 'RasterLayer'
gt_raster(x)

## S4 method for signature 'ANY'
gt_raster(x, ...)

Arguments

x

input object.

...

additional arguments passed to raster if x is not character or raster.

Details

This function essentially loads x into geotrellis as as raster data using the following methods:

Value

gt_RasterLayer object.

See Also

raster.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# create gt_raster object using a raster
g1 <- gt_raster(raster(matrix(1:4, ncol=2)))
# create gt_raster object using a geotiff path
g2 <- gt_raster(system.file('extdata', 'test.tif', package='geotrellis'))
# create gt_raster object using default method
g3 <- gt_raster(matrix(1:4, ncol=2))

## End(Not run)

jeffreyhanson/geotrellis documentation built on May 19, 2019, 4 a.m.