Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3Di Beta Processing: Rasterize channel fails with Python error "vector too long" #37

Open
leendertvanwolfswinkel opened this issue Jul 17, 2024 · 0 comments

Comments

@leendertvanwolfswinkel
Copy link
Contributor

leendertvanwolfswinkel commented Jul 17, 2024

Algorithm fails when making wedges between channels with ID 10994 and 10799

centrum.zip

Traceback (most recent call last):
File "C:\Users\leendert.vanwolfswin\AppData\Roaming\3Di\QGIS3\profiles\default/python/plugins\threedi_beta_processing\rasterize_channel_algorithms.py", line 551, in processAlgorithm
fill_wedges(channels, feedback=feedback)
File "C:\Users\leendert.vanwolfswin\AppData\Roaming\3Di\QGIS3\profiles\default/python/plugins\threedi_beta_processing\rasterize_channel.py", line 1372, in fill_wedges
channel1.fill_wedge(channel2)
File "C:\Users\leendert.vanwolfswin\AppData\Roaming\3Di\QGIS3\profiles\default/python/plugins\threedi_beta_processing\rasterize_channel.py", line 911, in fill_wedge
offset_curve_fixed(wedge_fill_points_source.geometry, shift),
File "C:\Users\leendert.vanwolfswin\AppData\Roaming\3Di\QGIS3\profiles\default/python/plugins\threedi_beta_processing\rasterize_channel.py", line 151, in offset_curve_fixed
result = line if distance == 0 else line.offset_curve(distance=distance)
File "C:\PROGRA~1\3DIMOD~1.34\apps\Python39\lib\site-packages\shapely\geometry\linestring.py", line 159, in offset_curve
return shapely.offset_curve(self, distance, quad_segs, join_style, mitre_limit)
File "C:\PROGRA~1\3DIMOD~1.34\apps\Python39\lib\site-packages\shapely\decorators.py", line 77, in wrapped
return func(*args, **kwargs)
File "C:\PROGRA~1\3DIMOD~1.34\apps\Python39\lib\site-packages\shapely\constructive.py", line 248, in offset_curve
return lib.offset_curve(
shapely.errors.GEOSException: vector too long
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant