rasterToContour

0th

Percentile

Raster to contour lines conversion

RasterLayer to contour lines. This is a wrapper around contourLines

Keywords
spatial
Usage
rasterToContour(x, maxpixels=100000, ...)
Arguments
x

a RasterLayer object

maxpixels

Maximum number of raster cells to use; this function fails when too many cells are used

...

Any argument that can be passed to contourLines

Details

Most of the code was taken from maptools::ContourLines2SLDF, by Roger Bivand & Edzer Pebesma

Value

SpatialLinesDataFrame

Aliases
  • rasterToContour
Examples
# NOT RUN {
f <- system.file("external/test.grd", package="raster")
r <- raster(f)
x <- rasterToContour(r)
class(x)
plot(r)
plot(x, add=TRUE)
# }
Documentation reproduced from package raster, version 2.9-5, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.