Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Dec 13, 2024
2 parents 0cf8f8d + 871752d commit cfa8a71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion man/distance.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ If \code{y} is missing, the distance between each points in \code{x} with all ot
\item{target}{numeric. The value of the cells for which distances to cells that are not \code{NA} should be computed}
\item{exclude}{numeric. The value of the cells that should not be considered for computing distances}
\item{unit}{character. Can be either "m" or "km"}
\item{haversine}{logical. Use the haversine formula for lon/lat data use the haversine formula? If \code{FALSE}, the more precise but slower method of Karney (2003) is used}
\item{haversine}{logical. Use the haversine formula for lon/lat data? If \code{FALSE}, the more precise but slower method of Karney (2003) is used}
\item{rasterize}{logical. If \code{TRUE} distance is computed from the cells covered by the geometries after rasterization. This can be much faster in some cases}
\item{filename}{character. Output filename}
\item{...}{additional arguments for writing files as in \code{\link{writeRaster}}}
Expand Down
6 changes: 4 additions & 2 deletions man/relate.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Spatial relationships between geometries
\description{
\code{relate} returns a logical matrix indicating the presence or absence of a specific spatial relationships between the geometries in \code{x} and \code{y}.

\code{is.related} returns a logical vector indicating the presence or absence of a specific spatial relationships between \code{x} and any of the geometries in \code{y}
\code{is.related} returns a logical vector indicating the presence or absence of a specific spatial relationships between \code{x} and any of the geometries in \code{y}.
}

\usage{
Expand All @@ -47,7 +47,7 @@ Spatial relationships between geometries
\arguments{
\item{x}{SpatVector or SpatExtent}
\item{y}{missing or as for \code{x}}
\item{relation}{character. One of "intersects", "touches", "crosses", "overlaps", "within", "contains", "covers", "coveredby", "disjoint". Or a "DE-9IM" string such as "FF*FF****". See \href{https://en.wikipedia.org/wiki/DE-9IM}{wikipedia} or \href{https://docs.geotools.org/stable/userguide/library/jts/dim9.html}{geotools doc}}
\item{relation}{character. One of "intersects", "touches", "crosses", "overlaps", "within", "contains", "covers", "coveredby", "disjoint". Or a "DE-9IM" string such as "FF*FF****". See \href{https://en.wikipedia.org/wiki/DE-9IM}{Wikipedia} or \href{https://docs.geotools.org/stable/userguide/library/jts/dim9.html}{GeoTools doc}}
\item{pairs}{logical. If \code{TRUE} a two-column matrix is returned with the indices of the cases where the requested relation is \code{TRUE}. This is especially helpful when dealing with many geometries as the returned value is generally much smaller}
\item{na.rm}{logical. If \code{TRUE} and \code{pairs=TRUE}, geometries in \code{x} for which there is no related geometry in \code{y} are omitted}
}
Expand All @@ -57,6 +57,8 @@ matrix (relate) or vector (is.related)
}

\seealso{
\code{\link{compareGeom}} to check if the geometries are identical (equivalent to the "equals" relation)

\code{\link{adjacent}}, \code{\link{nearby}}, \code{\link{intersect}}, \code{\link{crop}}
}

Expand Down

0 comments on commit cfa8a71

Please sign in to comment.