Skip to main content
Question

Hello Everyone, How can I add new attributes in Citygml file and export it with any data loss in the source file

  • April 28, 2023
  • 1 reply
  • 75 views

ladisrikanta123
Participant
Forum|alt.badge.img

i want to add volume of each building part of my CityGML file in its attribute .And than export it in the CityGML format it self,but i dont want any kind of data loss in quality wise .

 

Can you guys please help me on this ?

 

Thanks

Srikant

1 reply

deanatsafe
Safer
Forum|alt.badge.img+6
  • Safer
  • May 10, 2023

You should be able to just add a CityGML reader, then a VolumeCalculator and then add the volume attribute to your destination feature type (Building) and write back out to CityGML. The CityGML writer will then create generic user attributes for whatever custom attributes you have added, which will look something like this:

<bldg:Building>
<gen:stringAttribute name="_volume">
<gen:value>6</gen:value>
</gen:stringAttribute>
<bldg:lod1Solid>

The next question is more around what is your planned workflow and what is reading the updated CityGML. Not all CityGML apps read 'gen:' generic / custom user attributes. See the attached basic CityGML workspace for an example of creating custom user attributes.


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