File: st_split.Rd

package info (click to toggle)
r-cran-lwgeom 0.2-14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,532 kB
  • sloc: ansic: 40,523; cpp: 439; sh: 14; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 709 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/split.R
\name{st_split}
\alias{st_split}
\title{Return a collection of geometries resulting by splitting a geometry}
\usage{
st_split(x, y)
}
\arguments{
\item{x}{object with geometries to be splitted}

\item{y}{object split with (blade); if \code{y} contains more than one feature geometry, the geometries are \link[sf:geos_combine]{st_combine} 'd}
}
\value{
object of the same class as \code{x}
}
\description{
Return a collection of geometries resulting by splitting a geometry
}
\examples{
library(sf)
l = st_as_sfc('MULTILINESTRING((10 10, 190 190), (15 15, 30 30, 100 90))')
pt = st_sfc(st_point(c(30,30)))
st_split(l, pt)
}