Open thisisaaronland opened 7 years ago
The mz.wof.hierarchy
code should be considered relatively stable at this point but keep in mind there may still be bugs so discovering and fixing them if necessary is part of the work.
Also neither of these libraries are included as dependencies in the py-mz.wof
wrapper package so you will need to install them "by hand" for now.
See also: wof-hierarchy-rebuild
$> wof-hierarchy-rebuild -H /usr/local/data/whosonfirst-data/data/110/875/835/5/1108758355.geojson
INFO:root:rebuild hierarchy for /usr/local/data/whosonfirst-data/data/110/875/835/5/1108758355.geojson
INFO:root:append parent and hierarchy for 1108758355
INFO:root:parent ID has changed for 1108758355
INFO:root:Ghinda'e (1108758355) has CHANGED parent ID is now 85671105
INFO:root:[{u'continent_id': 102191573,
u'country_id': 85632781,
u'county_id': 1108758355,
u'region_id': 85671105}]
Specifically:
https://github.com/whosonfirst/py-mapzen-whosonfirst-hierarchy#rebuilding-the-hierarchy-for-a-wof-record
And:
https://github.com/whosonfirst/py-mapzen-whosonfirst-spatial#mapzenwhosonfirstspatialwhosonfirstpip