DeScarGAN icon indicating copy to clipboard operation
DeScarGAN copied to clipboard

Regards to create_synthetic_dataset.py

Open seanko29 opened this issue 2 years ago • 3 comments

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]. image

It seems that there is no intersection between LINEARRINGs. Is there a code debugging for this?

I will post a screenshot of my error. image

Thank you in advanced!

seanko29 avatar Sep 24 '22 07:09 seanko29

Hi Thanks for your message. I will check it out whether I get the same error message.

JuliaWolleb avatar Oct 04 '22 05:10 JuliaWolleb

I have the same problem, any solution for this? What is the version of your python environment?

zhongziqi233 avatar Mar 22 '23 16:03 zhongziqi233

solved

try: x = [p.x for p in mp] y = [p.y for p in mp] return x, y except: return [], []

zhongziqi233 avatar Mar 23 '23 09:03 zhongziqi233