buildRelations: Overlap between two polygonal simple features

View source: R/relations.R

buildRelationsR Documentation

Overlap between two polygonal simple features

Description

Computes the overlap between each pair of objects from two simple features and returns their intersection area. This function can be used to compute the relation between GLOBIOM representations and specific regions such as states or biomes. It returns a data.table with three columns: One ID from the first simple feature, one ID from the second simple feature, and their intersection area in Mha. Objects with no intersection will not be shown in the output.

Usage

buildRelations(geom, ref, id, normalize = TRUE)

Arguments

geom

First simple feature, whose unique identified is the attribute ID. This object is usually from GLOBIOM, a SimU, CR, or LU dataset.

ref

Second simple feature, representing the region(s) to be mapped to GLOBIOM representation.

id

The attribute to be used as unique identifier for the second simple feature.

normalize

normalizeRelationsByArea() should be called with the result? Default is TRUE.


pedro-andrade-inpe/colrow documentation built on Oct. 3, 2023, 8:48 a.m.