I have a sfc
-object consisting of just points. Unfortunately, when I read in the shapefile, it created points of type XYZ
. Now I removed some points and can't figure out how to export the remaining points as shapefile. I get the error:
GDAL Error 6: Geometry type of `3D Point' not supported in shapefiles
As I don't really need the third dimension So I thought I'd just remove it. But I don't know how. This is how the sfc
-object looks like at the moment.
First 5 geometries:
POINT Z (397864 6302484 0)
POINT Z (386440.2 6299046 0)
POINT Z (390490.3 6296620 0)
POINT Z (391614.7 6293960 0)
POINT Z (377803.1 6276244 0)