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
balazsdukai
changed the title
[Feature request] Allow cjio to read accessible web stored json data
Allow cjio to read accessible web stored json data
Mar 23, 2022
Just for clarification, a fix for this would still download the whole file at once, however the downloading and loading would be handled automatically by cjio. The whole citymodel would be loaded in one go. You wouldn't need a separate download + cityjson.load() step.
Or do you mean to stream the citymodel, loading cityobjects one-by-one as you request them?
I think the first option you have suggested is certainly enough for what I would like to do.
I am not going to stream this information but rather extract just the building's information I need.
My use case is: I have a polygon boundary of an area in the world, in this case NYC, and I want to find all the building objects in that polygon. All json files with this info are stored online (I'm using OpenCityModel for this) and I want to read them and only extract the building objects I need by saving them in a json file on my local computer. I do not wish to download any of those OpenCityModel json files, but if there is no other option, then I will download them and keep them temporarily.
I would like it to be possible to load a json file from a link url with
cityjson.load(path)
For example, I want to load this file, but I don't want to download it, I want to read it directly from the web:
https://s3.dualstack.us-east-1.amazonaws.com/opencitymodel/2019-jun/json/NewYork/36061/NewYork-36061-000.json
Refer to this discussion for more information: cityjson/specs#114
The text was updated successfully, but these errors were encountered: