Skip to main content
Question

How to give GUID to each LineaRing objects of Polygons during writing CityGML?

  • September 16, 2023
  • 2 replies
  • 15 views

At my workspace I can give GUID's to surface polygons. (Lod4Multisurface). But as you know polygons consists LinearRings. With GeometryPropertySetter or Attribute manager I could not access to LinearRing and assign GUID values for them. Am I using wrong trasnsformer or wrong using wrong parameters at related trasnsformers. I will be gratefull if somebody knows how to.

2 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • September 26, 2023

Hi @sevketbediroglu​,

You can use GeometryPropertySetters to set the GUID as a trait named gml_id at the appropriate level of the geometry hierarchy. For example, to set the GUID of the Linear Ring, create a GUID named gml_id, then set it as a trait on the FMEPolygon layer using a Geometry Xquery in the GeometryPropertySetter:

Screen Shot 2023-09-26 at 4.52.51 PMI have attached a workspace illustrating how to break up the MultiSurfaces into individual Faces, set separate GUIDs at the Face and Polygon layers, then rebuild the MultiSurface and set a GUID on it as well:

Screen Shot 2023-09-26 at 4.48.49 PM


Dear Dave,@daveatsafe​ 

 

I sincerely thank you for your reply and help. But i could fix Linearring id Problem "choosing IFMELine at Geometry Property Setter" am I making something wrong or your method is true? I am not professional at FME absolutely you now better.

 

Secondly I want to ask a following isssue. I am clipping door surfaces from wall surfaces then I create LinearRings the problem here is I get same LinearRing id for interior and exterior Linearrings of clipped places. As you know, all LinearRing id's should be uniğue in a City GML file. Please can you help me about fixing this issue,?

 

I am sharing my workflow and output Linearring id problem screen shots.

Linear2Linear1linearring


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