Question

Converting CityGML to Cesium 3DTiles: Problem writing Numeric Attributes as float or int

  • 18 May 2022
  • 1 reply
  • 1 view

I have a CityGML file with some attributes containing numbers, but also strings.

But for example, the folllowing attribute is supposed to be a float or integer in the 3DTiles format, but is written as a String, no matter what I specify as datatype in the writer's user attributes.

 

<gen:stringAttribute name="DatenquelleDachhoehe">

  <gen:value>1000</gen:value>

</gen:stringAttribute>

 

What could be the reason for the 3Dtiles writer ignoring the specified datatypes?


1 reply

Userlevel 1
Badge +10

Hi @jobot​, I took a stab at reproducing your scenario with a CityGML file containing a string attribute call DIVISION, like so:

<gen:stringAttribute name="DIVISION">
<gen:value>130</gen:value>
</gen:stringAttribute>

It seems to work and output an integer in the resulting 3DTiles dataset.   I've attached my workspace template to this comment.

 

Would you mind sharing your workspace and/or a sample of your output?  How are you determining that the output is a string vs. integer?

Reply