Skip to content
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

CityJSON export #166

Merged
merged 43 commits into from
Feb 2, 2021
Merged

CityJSON export #166

merged 43 commits into from
Feb 2, 2021

Conversation

clausnagel
Copy link
Member

@clausnagel clausnagel commented Jan 27, 2021

This PR complements the CityJSON export capabilities and solves #89.

Major contents:

  • Reworked config to separate general and format-specific import and export options.
  • Adapted GUI and CLI to reflect these changes.
  • Added CityJSON export to the GUI and CLI.

As discussed in #92, a main challenge for the CityJSON export is that specific CityJSON properties such as the "vertices" array must be kept in main memory and can only be released after the file has been completely written. This can lead to memory issues when exporting too many city objects to the same file.

The CityJSON community is currently working on streaming support for CityJSON. This will solve the issue in the future because it will allow us to apply the same chunk-wise processing approach as we use it for CityGML files.

In the meantime, users should use tiling for CityJSON exports. The exporter will raise a warning dialog if tiling is not enabled. We could also think about applying an automatic tiling to CityJSON exports. But this would require more substantial code changes, so I would like to keep this discussion out of this PR.

@clausnagel clausnagel requested a review from yaozhihang January 27, 2021 07:34
@clausnagel clausnagel self-assigned this Jan 27, 2021
@clausnagel clausnagel changed the title Cityjson support CityJSON export Jan 27, 2021
Copy link
Member

@yaozhihang yaozhihang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@clausnagel Nice Implementation. Please check my comments below.

@clausnagel clausnagel merged commit 091a639 into master Feb 2, 2021
@clausnagel clausnagel deleted the cityjson-support branch February 2, 2021 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants