Skip to main content
Question

How to read XML with GML geometry inside

  • May 6, 2020
  • 3 replies
  • 114 views

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

 

 

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.

3 replies

erik_jan
Contributor
Forum|alt.badge.img+26
  • 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+18
  • 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