Closed yuezhilanyi closed 1 year ago
As can be seen from the output, the process finished with a warning. This doesn't mean it failed.
As can be seen from the output, the process finished with a warning. This doesn't mean it failed.
but the result file of cityjson has nothing in it. test-res.txt
Right, but that's because your input file is not CityGML. Most of your XML elements are associated with the namespace "http://www.safe.com/gml/fme"
which is not an official CityGML namespace. As a consequence, citygml-tools cannot not find any CityGML content in your file that could be translated to CityJSON and, thus, the output file is empty.
I am not sure how you create your data. If you really want to output correct CityGML, then I recommend checking the official OGC Standard documents at https://www.ogc.org/standard/citygml/. For CityGML 2.0, download this PDF. In chapter 4.3, you can find a table showing the official CityGML namespaces. And there are some simple examples for CityGML 2.0 buildings at https://schemas.opengis.net/citygml/examples/2.0/building/.
thanks very much @clausnagel
i got the gml file online, and i thought it was a citygml.
when i tryied to convert a citygml to cityjson, it failed with cmd output like below:
i validated the citygml, but there is no problem:
could anyone tell me, what should i do to convert it to cityjson sucessfully?
test file has been uploaded with txt postfix test.txt