I want to obtain a square from a circle using simplification function in sf.
This is my circle:
With this code, I obtain a rhombus
plot(st_simplify(st_geometry(sfdf),dTolerance = 1000))
How can I obtain a square? in QGIS I manage to obtain it using SnapToGrid option in simplification process.