Drop Z and/or M dimensions from feature geometries, resetting classes appropriately
st_zm(x, ..., drop = TRUE, what = "ZM")
x | object of class |
---|---|
... | ignored |
drop | logical; drop, or (FALSE) add? |
what | character which dimensions to drop or add |
Only combinations drop=TRUE
, what = "ZM"
, and drop=FALSE
, what="Z"
are supported so far. In case add=TRUE
, x
should have XY
geometry, and zero values are added for Z
.
#>#> Geometry set for 2 features #> geometry type: LINESTRING #> dimension: XY #> bbox: xmin: 1 ymin: 3 xmax: 8 ymax: 16 #> CRS: NA#>#>#> Simple feature collection with 2 features and 1 field #> geometry type: LINESTRING #> dimension: XY #> bbox: xmin: 1 ymin: 3 xmax: 8 ymax: 16 #> CRS: NA #> a geom #> 1 1 LINESTRING (1 9, 2 10, 3 11... #> 2 2 LINESTRING (1 3, 2 4)