I am pretty new to Python, so the answer to this question is probably pretty simple, but I searched everywhere and tried a lot, but could not find the answer.
Simplifying a polygon with Shapely can result in an empty polygon. I want to replace the polygon with a dot if it is empty. What will work like:
if mypoly is empty: mypoly = [(0,0)]
source share