SetPrecision returns 3D empty geometries after collapsing
|Reported by:||caspervdw||Owned by:||strk|
This detail popped up after implementing a workaround for #1136 in pygeos. It is also obfuscated by the issue that the WKT writer does not serialialize 3D empty geometries as 3D.
SetPrecision on for instance POLYGON ((0 0, 0.1 0, 0.1 0.1, 0 0.1, 0 0)) with grid size of 1 and the default make_valid behaviour gives a 3D empty polygon as result.