Skip to main content

I'm needing to write a reasonably complex GML v 3.2 file that will be created from a series of flat tables. I'm not sure how to construct the data in FME so that the writer will create the "nested table" structure required by the GML.

An example of the output structure would be as follows:

<gml:featureMember>

<geometryProperty>

<gml:Point> etc...

</geometryProperty>

<propertyType>Private</propertyType>

<addressList>

<address>

<number>12</number>

<street>Main</street>

<zip>39945</zip>

</address>

<address>

<number>12b</number>

<street>Main</street>

<zip>39945</zip>

</address>

<address>

<number>13</number>

<street>Main</street>

<zip>39945</zip>

</address>

</addressList>

</gml:featureMember>

Is there a tutorial on using the writer for complex output like this or can someone advise what the data should look like in FME for me to hand this to the writer and have the output look correct? I understand how I can take a flat table and just output based on the attribute names but now do I get data to appear deeply nested in the GML tree. Do I need to construct the nested GML elements as strings stored in attributes and build up the structure one bit at a time?

Hi @jstanger,

This might help:

https://knowledge.safe.com/articles/812/gml-writing-with-application-schemas.html

I expect fme to handle the output schema.

Hope this helps.


Hi @jstanger,

This might help:

https://knowledge.safe.com/articles/812/gml-writing-with-application-schemas.html

I expect fme to handle the output schema.

Hope this helps.

Also this tutorial:

 

https://knowledge.safe.com/articles/29553/tutorial-getting-started-with-xml.html

 

In general the XMLTemplater was the transformer you would traditionally use. If you need more help do respond, or please contact our support team (safe.com/support) who will be more than happy to help (I really mean that - some of them still wear I ? XML t-shirts)

 


Reply