cityjson / cjio

CityJSON/io: Python CLI to process and manipulate CityJSON files
MIT License
125 stars 32 forks source link

Subset by long list of IDs via command line #178

Open Swahhillie opened 11 months ago

Swahhillie commented 11 months ago

Is your feature request related to a problem? Please describe. I would like to subset a city json file by a list of Ids. The list of Ids is too long to provide as a command line argument. (Perhaps a windows specific problem?) The use case is to subset a town. In QGIS I filtered the BAG by location and attributes. I want to filter a tile of the 3DBAG using the Ids I obtained in the previous step.

Describe the solution you'd like A solution would be to provide the filter arguments in the form of a file.

Describe alternatives you've considered I have considered using the 3DBAG api to download the specific building required and then merge them together again with CJIO. Perhaps using the CJIO python API I could go around the command line restrictions.

hugoledoux commented 11 months ago

This could be added but I don't see us here doing this in the near future... If someone wants to implement this I'll happily merge the PR.

In the meantime, your best bet is to use the API indeed.

cjio's API is a bit clunky and badly maintained... better to use the 3dbag API I reckon.