Skip to main content

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.

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 ?


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 :-)

 


Reply