Skip to main content
Solved

Writing nested GML files

  • November 21, 2016
  • 2 replies
  • 25 views

jstanger
Forum|alt.badge.img+1

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?

Best answer by itay

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • 1442 replies
  • Best Answer
  • November 21, 2016

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.


mark2atsafe
Safer
Forum|alt.badge.img+56
  • Safer
  • 2554 replies
  • November 21, 2016

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)