Skip to main content
Solved

Create a CityGML Bridge with BridgeParts


harmen
Contributor
Forum|alt.badge.img+9

I'm looking for some help with creating a Bridge in CityGML with two BridgeParts. Those BridgeParts can consists of one or more other objecttypes like BridgeConstructionElements.

 

I've tried many things, but I can not figure out how to create the hierarchy of all the components in CityGML...

Of course using the gml_id and gml_parent_id to connect elements, but unfortunately this somehow doesn't work out the right way.

 

Anyone ?

Like to share the final solution!

 

What I like to see is a hierarchy:

one bridge

consists of two bridgeparts

whereas different bridge elements like constructionelements can be found in both 'bridge' and the two bridgeparts

 

So, something like this (simplified of course):

<Bridge gml_id: BRIDGE>
 
	Bridgepart
	gml_id = part_1
	gml_parent_id = BRIDGE

		BridgeConstructionElement
		gml_id = 563456
		gml_parent_id = part_1

		BridgeConstructionElement
		gml_id = 373648
		gml_parent_id = part_1

		BridgeConstructionElement
		gml_id = 238656
		gml_parent_id = part_1

	BridgePart
	gml_id = part_2
	gml_parent_id = BRIDGE

		BridgeConstructionElement
		gml_id = 956345
		gml_parent_id = part_1

		BridgeConstructionElement
		gml_id = 397364
		gml_parent_id = part_1

		BridgeConstructionElement
		gml_id = 238965
		gml_parent_id = part_1

</Bridge>

 

Best answer by daveatsafe

Hi @Harmen Kampinga​,

To set up the CityGML hierarchy, it is necessary to set both the hierarchy links and roles. For features with geometry, both the LoD and role can be set with the FME Hub transformer CityGMLGeometrySetter. For features without geometry, simple create the attribute citygml_feature_role and set it to appropriate role. These roles are defined in the CityGML Bridge UML, which can be found at https://www.citygmlwiki.org/images/a/a0/CityGML_Bridge.pdf.

I am attaching an updated workspace illustrating how to create a simple Bridge.

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

3 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • Best Answer
  • August 29, 2023

Hi @Harmen Kampinga​,

To set up the CityGML hierarchy, it is necessary to set both the hierarchy links and roles. For features with geometry, both the LoD and role can be set with the FME Hub transformer CityGMLGeometrySetter. For features without geometry, simple create the attribute citygml_feature_role and set it to appropriate role. These roles are defined in the CityGML Bridge UML, which can be found at https://www.citygmlwiki.org/images/a/a0/CityGML_Bridge.pdf.

I am attaching an updated workspace illustrating how to create a simple Bridge.


harmen
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • September 14, 2023
daveatsafe wrote:

Hi @Harmen Kampinga​,

To set up the CityGML hierarchy, it is necessary to set both the hierarchy links and roles. For features with geometry, both the LoD and role can be set with the FME Hub transformer CityGMLGeometrySetter. For features without geometry, simple create the attribute citygml_feature_role and set it to appropriate role. These roles are defined in the CityGML Bridge UML, which can be found at https://www.citygmlwiki.org/images/a/a0/CityGML_Bridge.pdf.

I am attaching an updated workspace illustrating how to create a simple Bridge.

Thanks @daveatsafe​ ! I will dive into it and let you know!


harmen
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • September 19, 2023
daveatsafe wrote:

Hi @Harmen Kampinga​,

To set up the CityGML hierarchy, it is necessary to set both the hierarchy links and roles. For features with geometry, both the LoD and role can be set with the FME Hub transformer CityGMLGeometrySetter. For features without geometry, simple create the attribute citygml_feature_role and set it to appropriate role. These roles are defined in the CityGML Bridge UML, which can be found at https://www.citygmlwiki.org/images/a/a0/CityGML_Bridge.pdf.

I am attaching an updated workspace illustrating how to create a simple Bridge.

This was exactly I was looking for!

Thank you @daveatsafe​ !


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