Skip to main content
Question

How to read XML with GML geometry inside


gianpiero

Hello,

I have a XML file with a GML geometry inside (in attach). Moreover I have the XSD file (named: CensusTechSheet).

Can I read that file with FME? I suppose: yes. But someone can suggest me how can I do this?

Regards

 

Gianpiero

 

 

3 replies

erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • May 6, 2020

You can use the XML reader and then take the GML part and create a geometry from it using the GeometryReplacer transformer.

That transformer reads a geometry definition from an attribute and creates the geometry.

It has a GML definition option.

Hope this helps.


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • May 6, 2020

In addition to erik answer the xml reader will create a xml_fragment attribute that holds the xml element, you can use that in the geometry replacer transformer.


gianpiero
  • Author
  • May 7, 2020

Erik and Itay thanks for your reply.

Gianpiero


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