sf (version 0.2-8)

st_drop_zm: Drop Z and/or M dimensions from feature geometries

Description

Drop Z and/or M dimensions from feature geometries, resetting classes appropriately

Usage

st_drop_zm(x, ...)

Arguments

x
object of class sfg, sfc or sf
...
ignored

Examples

Run this code
st_drop_zm(st_linestring(matrix(1:32,8)))
x = st_sfc(st_linestring(matrix(1:32,8)), st_linestring(matrix(1:8,2)))
st_drop_zm(x)
a = st_sf(a = 1:2, geom=x)
st_drop_zm(a)

Run the code above in your browser using DataLab