Skip to main content
Question

Handle GML in the correct way?

  • October 1, 2018
  • 2 replies
  • 21 views

nielsgerrits
VIP
Forum|alt.badge.img+64

This is a bit of a review question... I try to convert GML and I wonder if I'm on the right track. Workbench does the job but I'm not sure this is the way to do it.

For example, the featuretype "Waterleiding" has a relation to the featuretype "UtilityLink", which I like to restore. My goal is to add the attributes from Waterleiding to the line UtilityLink. In the end, I want to import the GML using FME server in our WebGIS application to visualise the contents.

Waterleiding:

  • inspireId.Identifier.localId = KN1100.2009051707431500023782
  • inspireId.Identifier.namespace = nl.imkl
  • link = nl.imkl-KN1100.2009051707431500023782.ulink

UtilityLink:

  • inspireId.Identifier.localId = KN1100.2009051707431500023782.ulink

My current solution is to create an attribute LinkId in the Waterleiding set from the link attribute (AttributeCreator_5) and replace string the namespace attribute (StringReplacer_2) to convert nl.imkl-KN1100.2009051707431500023782.ulink to KN1100.2009051707431500023782.ulink. This way I can use the FeatureMerger to connect UtilityLink to Waterleiding.

Is this the way to do it or do I miss something?

Workspace (2018.1) and data as template file attached. Thanks for looking.

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

stalknecht
Contributor
Forum|alt.badge.img+22
  • Contributor
  • October 1, 2018

Looks like it works, my comments: You can expose attributes on the reader. Then you will get rid of transformers. I saw a lot of Inspire so maybe you are using the wrong reader. Did you had a look at: https://knowledge.safe.com/articles/1321/eu-inspire-initiative-tutorial.html ?


nielsgerrits
VIP
Forum|alt.badge.img+64

Looks like it works, my comments: You can expose attributes on the reader. Then you will get rid of transformers. I saw a lot of Inspire so maybe you are using the wrong reader. Did you had a look at: https://knowledge.safe.com/articles/1321/eu-inspire-initiative-tutorial.html ?

Thanks for reviewing. It works but it felt cumbersome. If this is the way to go I can stop looking for a better solution and get to work :-)

 

Adding AttributeExposers instead of exposing attributes in FeatureReaders is a personal thing, I prefer 'wide' workspaces over 'deep' ones to keep overview.

 

The data is an example of a 'GebiedsinformatieLevering', the new standard for KLIC data from 01-01-2019. (IMKL 1.2) Never did anything with Inspire data before but I couldn't find any differences reading the file with the Inspire reader compared with the default GML reader. But I am a GML novice so I might miss something, hence the question :-)