Description Usage Arguments Details Value See Also Examples
This function creates a geotrellis raster object (gt_RasterLayer
).
1 2 3 4 5 6 7 8 9 10 |
x |
input object. |
... |
additional arguments passed to |
This function essentially loads x
into geotrellis as
as raster data using the following methods:
character
objectx
is treated as a file path
for raster data loaded directly into the Scala interpreter.
RasterLayer-class
objectx
is saved to disk
and loaded into the Scala interpreter.
otherwisean attempt is made to coerce x
to a RasterLayer-class
object and then it is saved to disk and loaded into the Scala interpreter.
gt_RasterLayer
object.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.