OK.In your case,you can just use the GeometryPropertySetter with an appropriate Geometry XQuery in order to add the "gml_id" trait to the Polygon part.
GeometryPropertySetter: Geometry XQuery | Test Clauses
Part to Test | Left Value | Operator | Right Value |
This part | Geometry Type | = | IFMEPolygon |
Assuming that the input surface feature has an attribute called "gml_id" that stores the Polygon ID value (e.g."id_19_205_polygon"),the parameters setting looks like this.
If the Polygon part always has the geometry name "exterior" (and other parts don't have the same name),this test clause would also be available.
Part to Test | Left Value | Operator | Right Value |
This part | Geometry Name | = | exterior |
The most suitable Geometry XQuery setting could be vary depending on the conditions and the requirements.
Hope this helps.
Hi Mark,I am doing that to create the cityGML surface feature,but that feature will have a multi surface element which then has a polygon element.It is this polygon element to which I want to assign a Gml:id.I believe what I am looking for is very similar to this post: https://knowledge.亚搏在线safe.com/questions/3695/setting-gmlid-attribute-to-geometry-in-citygml.html
Kind regards,
Steve
I think you'd need to use an AttributeCreator to create an ID attribute called gml_id.Follow up with a GeometryPropertySetter to set these as traits using the attribute you just created as the source.
I'm not a 3D expert but I'm fairly certain that is the right way to go about this.If not,let us know and I'll investigate some more.