intersect

0th

Percentile

Intersect Extent

Intersect two Extent objects. Returns the intersection, i.e. the area of overlap of two Extent objects. The second argument can also be any argument from which an Extent object can be extracted. If the first object is a Raster* object, this function is equivalent to crop.

Keywords
methods, spatial
Usage
## S3 method for class 'Extent':
intersect(x, y)

## S3 method for class 'Raster':
intersect(x, y)
Arguments
x
Extent or Raster* object
y
Extent object, or any object from which an Extent can be extracted
Value

  • Extent or Raster* object

See Also

union, extent, crop

Aliases
  • intersect
  • intersect,Extent-method
  • intersect,Raster-method
Examples
e1 <- extent(-10, 10, -20, 20)
e2 <- extent(0, 20, -40, 5)
intersect(e1, e2)
Documentation reproduced from package raster, version 2.1-41, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.