Answers for "How to add gml:id to a CityGML Polygon element" https://knowledge.亚搏在线safe.com/questions/52008/how-to-add-gmlid-to-a-citygml-polygon-element.html The latest answers for the question "How to add gml:id to a CityGML Polygon element" Answer by takashi https://knowledge.亚搏在线safe.com/answers/52042/view.html

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.

Fri,01 Sep 2017 00:04:18 GMT takashi
Answer by steveway https://knowledge.亚搏在线safe.com/answers/52029/view.html

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

Thu,31 Aug 2017 20:42:04 GMT steveway
Answer by mark2at亚搏在线safe https://knowledge.亚搏在线safe.com/answers/52024/view.html

Hi@steveway

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.

Thu,31 Aug 2017 19:46:27 GMT mark2at亚搏在线safe