keepOrigGeom {reproducible} | R Documentation |
Keep original geometries of sf
objects
Description
When intersections occur, what was originally 2 polygons features can become
LINESTRING
and/or POINT
and any COLLECTIONS
or MULTI-
versions of these.
This function evaluates what the original geometry was and drops any newly created
different geometries. For example, if a POLYGON
becomes a COLLECTION
of
MULTIPOLYGON
, POLYGON
and POINT
geometries, the POINT
geometries will
be dropped. This function is used internally in postProcessTo()
.
Usage
keepOrigGeom(newObj, origObj)
Arguments
newObj |
The new, derived |
origObj |
The previous, object whose geometries should be used. |
Value
The original newObj
, but with only the type of geometry that entered
into the function.
[Package reproducible version 2.1.0 Index]