DeScarGAN
DeScarGAN copied to clipboard
Regards to create_synthetic_dataset.py
Hello!
I am having problem with create_synthetic_dataset.py.
It seems that the code underlined in red is not working.
When I intersect ea with eb and print(mp) the print message is LINESTRING EMPTY.
The error states TypeError: 'LineString' object is not iterable is the final message in line x = [p.x for p in mp].
It seems that there is no intersection between LINEARRINGs. Is there a code debugging for this?
I will post a screenshot of my error.
Thank you in advanced!
Hi Thanks for your message. I will check it out whether I get the same error message.
I have the same problem, any solution for this? What is the version of your python environment?
solved
try: x = [p.x for p in mp] y = [p.y for p in mp] return x, y except: return [], []