-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_subset_ids() : get all children #165
Comments
I assume you're using master branch, right? I fixed that a while ago (2fb9f90) but it's in branch 'develop' only at the moment since I didn't test it properly. Perhaps you could test it and report here? That would be super useful. How to use the develop branch is explained there: https://github.com/cityjson/cjio#installation |
I'm using cjio installed via pip so I'm in version v0.8.1 and I didn't use the develop version yet. I wrote a workaround but I'll try to use the develop branch If I find the time. |
No it's not, it's just where we fix things. @balazsdukai is working very very part-time on cjlib, so not sure when it'll be ready.... |
Indeed, very very part-time is a good way to put it :-). I hope that I'll get some time over the summer for cjlib. |
Is your feature request related to a problem? Please describe.
I'm trying to clip a CityJSON file to keep only buildings situated inside a polygon.
I wrote a python script using cjio to test if building/buildingparts ground surfaces are contained in the polygon. The result is a list of Building IDs I'm using with
cityjson.get_subset_ids()
to try and filter the original cityjson file.Doing so, I stumbled on a case where the depth of children harvesting in
select_co_ids()
does not seem to be sufficient.In this example, if i try to
get_subset_ids(['Node_1647'])
, I never getNode_41582
and a chimney is lost in the process ;)I presume the depth of search is not sufficient in
select_co_ids(j,IDs)
Describe the solution you'd like
As an user, I expect to get all children of a building node at any depth.
Describe alternatives you've considered
For the moment, the solutions seems to keep all intermediate children IDs and also pass them to
get_subset_ids()
. edit : Tested it this morning and it does work fine.Additional context
I would also be interested in a clipping function in cjio :)
Thanks in advance
The text was updated successfully, but these errors were encountered: