Transform CityGML to CityJSON into memory rather than file? #211
-
Hello everyone 👋 I am getting more and more versatile with the CItyJSON standard :) One thing that could improve the performance of my data pipeline is to transform the raw CityGML to CityJSON in memory rather than creating a new CityJSON file. Right now I have the following Python function:
I read in a CityGML file, convert it to a CityJSON file using the CLI command and load the content back in to pass it to the next steps of my data pipeline. I would love to skip the file creation and loading step. Is there any solution for this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
this is a question for https://github.com/citygml4j/citygml-tools/ actually. I don't think that it allows you to write to stdout out, I checked but don't see it. But @clausnagel knows better here. |
Beta Was this translation helpful? Give feedback.
-
That's correct, the current version of citygml-tools doesn't support writing to stdout. PRs are welcome :-) But under Linux, simply use named pipes to avoid creating temporary files. |
Beta Was this translation helpful? Give feedback.
That's correct, the current version of citygml-tools doesn't support writing to stdout. PRs are welcome :-)
But under Linux, simply use named pipes to avoid creating temporary files.