cs_buffer = cs.copy()
cs_buffer = cs_buffer.to_crs("epsg:25832")
cs_buffer.geometry = cs_buffer.geometry.buffer(40, single_sided=True)
cs_buffer = cs_buffer.to_crs("epsg:4326")
My code should do a single side buffer. The problem is, sometimes it makes the buffer on the wrong side.
I think it is because of the wrong direction of the LINESTRING. As we can see the upper left one is correct. It catches the buildings. The right on is on the wrong side, it should get the upper buildings not the lower ones. Sometimes it is right sometimes it is not.
Is it possible to fix it?
Without Buffer it looks like this
In this example it is also false.
Left one is false, right one is correct.