Skip to main content
Solved

Writing nested GML files

  • November 21, 2016
  • 2 replies
  • 17 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.

View original
Did this help you find an answer to your question?

2 replies

itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • 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+45
  • Safer
  • November 21, 2016
itay wrote:

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings