mathieuripert / geoh Goto Github PK
View Code? Open in Web Editor NEWTransform a geoJSON into a list of geohashes that intersect with it
License: MIT License
Transform a geoJSON into a list of geohashes that intersect with it
License: MIT License
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.