Skip to main content
Solved

Set datatypes for generic attributes in CityGML

  • August 7, 2019
  • 1 reply
  • 32 views

Forum|alt.badge.img

Hey,

I'm converting data from IFC to CityGML. I used the GeomertyPropertyExtractor to extract attributes from the IFC PropertySets. These attributes all have the datatype string. These attributes are set as generic attributes in CityGML, but I want to change their datatype. I can do this for integers, doubles,... in the CityGML-Writer. But I also want to set data types like meter and square-meter. CityGML supports the data types like meter with the data type MeasureType.

Does anyone know how to set these data types?

Thanks

Best answer by ahotschek

So I found the solution myself, perhaps it helps someone else and saves him a lot of time. You have to create a new attribute with attributename_units where you set the data type (for example #m for meter).

In the CityGML writer the attribute gets its matching type like xml_decimal and the attributename_units gets the type xml_buffer.

 

After running the workspace you get a generic Attribute with the type Measuretype:

View original
Did this help you find an answer to your question?

1 reply

Forum|alt.badge.img
  • Author
  • Best Answer
  • August 9, 2019

So I found the solution myself, perhaps it helps someone else and saves him a lot of time. You have to create a new attribute with attributename_units where you set the data type (for example #m for meter).

In the CityGML writer the attribute gets its matching type like xml_decimal and the attributename_units gets the type xml_buffer.

 

After running the workspace you get a generic Attribute with the type Measuretype:


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