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

debian trixie: TypeError: 'MultiPolygon' object is not iterable #279

Open
schenlap opened this issue Oct 12, 2024 · 2 comments
Open

debian trixie: TypeError: 'MultiPolygon' object is not iterable #279

schenlap opened this issue Oct 12, 2024 · 2 comments

Comments

@schenlap
Copy link

schenlap commented Oct 12, 2024

With debian trixie i get the following error during "Assemble Vector data"

  full_area=VECT.ensure_MultiPolygon(ops.cascaded_union([dico_airports[airport]['boundary'],dico_airports[airport]['runway'][0],dico_airports[airport]['hangar'],dico_airports[airport]['taxiway'][0],dico_airports[airport]['apron'][0]]))
Exception in thread Thread-1 (build_poly_file):
Traceback (most recent call last):
  File "/usr/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.12/threading.py", line 1012, in run
    self._target(*self._args, **self._kwargs)
  File "/home/xxx/X-Plane 12/Ortho4XP-1.30/src/O4_Vector_Map.py", line 42, in build_poly_file
    (apt_array,apt_area)=include_airports(vector_map,tile) 
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/xxx/X-Plane 12/Ortho4XP-1.30/src/O4_Vector_Map.py", line 138, in include_airports
    APT.smooth_raster_over_airports(tile,dico_airports)
  File "/home/xxx/X-Plane 12/Ortho4XP-1.30/src/O4_Airport_Utils.py", line 429, in smooth_raster_over_airports
    for polygon in full_area:
                   ^^^^^^^^^
TypeError: 'MultiPolygon' object is not iterable

Python 3.12.6

@schenlap
Copy link
Author

i thought with #186 it should be fixed?

@w8sl
Copy link

w8sl commented Oct 13, 2024

It should be:

for polygon in full_area.geoms

186 has been merged to 1.40 - not 1.30

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

2 participants