tiling: Slice raster image in square tiles

Description Usage Arguments Details Value See Also Examples

Description

tiling uses gdal_translate to slice a raster image into square tiles preserving the georeferencing of the input raster.

Usage

1
2
tiling(file, size, outsize = 100, path = NULL, co = "COMPRESS=JPEG",
  of = "GTiff", ...)

Arguments

file

raster image file name

size

size of square tiles in pixels

outsize

reduction in resolution (default=none)

path

path to write to

co

compression algorithm

of

output format

...

further parameters passed to gdal_translate

Details

The default settings preserve the resolution but use JPEG compression to reduce the tiles' file size.

Value

none

See Also

gdal_translate

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 

library(raster)

file <- system.file("extdata", "example.tif", package = "cartotools")
plot(raster(file))

tiling(file, size=10)
 

## End(Not run)

sumtxt/cartotools documentation built on May 26, 2019, 5:30 a.m.