You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am trying to generate as indicated in the example, but it fails with the following error:
File "/home/yacine/indeed/data-pipelines/venv/lib/python3.8/site-packages/geoh/geoh.py", line 44, in _flatten return [item for sublist in lyst for item in sublist] File "/home/yacine/indeed/data-pipelines/venv/lib/python3.8/site-packages/geoh/geoh.py", line 44, in <listcomp> return [item for sublist in lyst for item in sublist] File "/home/yacine/indeed/data-pipelines/venv/lib/python3.8/site-packages/geoh/geoh.py", line 48, in _multi_polygon_to_polygons return list(geom) TypeError: 'MultiPolygon' object is not iterable
Hello,
I am trying to generate as indicated in the example, but it fails with the following error:
File "/home/yacine/indeed/data-pipelines/venv/lib/python3.8/site-packages/geoh/geoh.py", line 44, in _flatten return [item for sublist in lyst for item in sublist] File "/home/yacine/indeed/data-pipelines/venv/lib/python3.8/site-packages/geoh/geoh.py", line 44, in <listcomp> return [item for sublist in lyst for item in sublist] File "/home/yacine/indeed/data-pipelines/venv/lib/python3.8/site-packages/geoh/geoh.py", line 48, in _multi_polygon_to_polygons return list(geom) TypeError: 'MultiPolygon' object is not iterable
Specifically, I have a geo json file that I obtained from converting the shp file from US census data, but I got the error.
To confirm that the issue is not with my file, I also tried your code with many other json files from the below sources, but I still get the same error.
https://github.com/johan/world.geo.json/blob/master/countries/USA.geo.json
https://eric.clst.org/tech/usgeojson/
https://github.com/loganpowell/census-geojson
Any hints?
Thanks.
The text was updated successfully, but these errors were encountered: