Skip to main content
Question

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

  • May 18, 2022
  • 1 reply
  • 10 views

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

nampreetatsafe
Safer
Forum|alt.badge.img+13

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?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings