Skip to content

Commit

Permalink
rbind
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Jul 9, 2024
1 parent e9f2f19 commit b9be6d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions man/c.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
\alias{c,SpatRasterCollection-method}
\alias{c,SpatVector-method}
\alias{c,SpatVectorCollection-method}
\alias{c,SpatVector-method}

\alias{rbind.SpatVector}
\alias{rbind}


\title{Combine SpatRaster or SpatVector objects}
Expand Down
4 changes: 3 additions & 1 deletion man/union.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Union SpatVector or SpatExtent objects

\description{

Overlapping polygons (between, not within, objects) are intersected. Union for lines and points simply combines the two data sets; without any geometric intersections. This is equivalent to \code{\link{c}}. Attributes are joined. See \code{\link{c}} if you want to combine polygons without intersection.
If you want to append polygon SpatVectors use \code{rbind} instead of \code{union}. \code{union} will also intersect overlapping polygons between, not within, objects. Union for lines and points simply combines the two data sets; without any geometric intersections. This is equivalent to \code{\link{rbind}}. Attributes are joined.

If \code{x} and \code{y} have a different geometry type, a SpatVectorCollection is returned.

Expand All @@ -41,6 +41,8 @@ SpatVector or SpatExtent
}

\seealso{
\code{\link[terra]{rbind}}

\code{\link[terra]{intersect}}

\code{\link{merge}} and \code{\link{mosaic}} to union SpatRasters.
Expand Down

0 comments on commit b9be6d4

Please sign in to comment.