I want to export some data to gml, and I see that I have some complex geometries, which results in different sets of coordinates for each polygon (after geometry extractor). I made a list and each element within the list contains the set of coordinates for each segment of the geometry, but not all the polygons have the extra dimensions.
Therefore, I want to make an if-statement where only the extra xml-statement is shown when there is data in the list. I tried using this, but it does not work.
Can anybody point out an error in the statement.
Not only the line with the statement posList..., but also the other statements around them, I want to delete when the list element is not existing.
If there is another way of doing this (e.g. with a loop), I am open to suggestions.
</gml:exterior>
If {(fme:has-attribute("interior_xy_l{0}.part")) then (
<gml:exterior>
<gml:LinearRing>
<gml:posList>{fme:get-attribute("interior_xy_l{0}.part")}</gml:posList>
</gml:LinearRing>
</gml:exterior>)
else ()}