ruirzma / osmsc

This repo created an easy-to-use Python package, named OSMsc, to improve the availability, consistency and generalizability of urban semantic data.
MIT License
17 stars 4 forks source link

Missing info for downloading non-OSM building data #3

Open paulterinho opened 1 year ago

paulterinho commented 1 year ago

Hi all, I was curious how to get a hold of the building geojson that is in the data folder (in the examples repository)? Is there a URL to download these for cities not in the examples folder?

ruirzma commented 1 year ago

THX for this comment. Non-OSM building data is downloaded case by case, like this website for Portland . At present, OSMsc mainly works on OSM data. What I want to demonstrate in the example repository is that OSMsc can also incorporate with non-OSM building data, if any.

paulterinho commented 1 year ago

Hi Rui, no problem! Its a very cool project! What kind of data is used for the building height, are those just "building footprints"?

The examples repo may be out of phase with this repository. I tried a clean install and the Denver case study wouldn't run. seems there were some capitalization errors, and some main namespace objects were inaccessible. I had to create a work-around in the __init__.py to get it almost working, but then was stopped by the cityjson object that was trying to access keys that no longer existed.

ruirzma commented 1 year ago

yeah. Recently, I have updated this repo. The previous examples repo is also needed to do so. I am glad u have edited the code in init.py, I am working on the v.0.2.0 version of it. All these errrors will be fixed. As for the "key" you mentioned, I guess they are osm keys, instead of access keys (like Mapbox keys). Possibly, the key info in your city object is None, did you add key preferences at the begining? or did OSM return the valid json?