Skip to main content
Question

GML xlink:role


Forum|alt.badge.img

Hello,

is there a way to access a value of GML xlink:role property? I can access other xlink properties such as href and title but not this one.

Thanks for suggestions.

3 replies

trentatsafe
Safer
Forum|alt.badge.img+6

Hello @honkovam,

One option that can be used to access the GML xlink:role property, would consist of the following:

 

 

1) Add an XML reader with the Feature path set to Geometry.

 

2) Use a FeatureMerger to merge the GML features with the XML geometry attributes based on the ID. This should allow you to see all features then.

 

 

I hope that helps for the time being.

deanatsafe
Safer
Forum|alt.badge.img+6
  • Safer
  • June 1, 2018

Normally we ignore some of these optional schema elements because they are very seldom used. However, if you need access to this, you can carefully modify your gml_config.xml in your FME installation. I recommend backing up the original before modifying anything.

  1. Go to FME2018.0\\xml\\gml_v3.2
  2. Back up your gml_config.xml
  3. Go to line 211 ( in version 2018.0.1) and comment out the role line by replacing '<v>role</v>' with '<!-- <v>role</v> no longer ignore role -->'
  4. Save and restart FME

The next time you add any GML based reader, if your data has xlink:role attributes, then the GML reader should pick them up. If you feel this is an option that should be part of the default INSPIRE or GML readers, I would invite you to add a new Community Idea to that effect. I'm attaching my gml_config.xml as an example. Below you can see a feature being read with xlink:role values:

gml-config.xml


Forum|alt.badge.img
  • Author
  • June 5, 2018
deanatsafe wrote:

Normally we ignore some of these optional schema elements because they are very seldom used. However, if you need access to this, you can carefully modify your gml_config.xml in your FME installation. I recommend backing up the original before modifying anything.

  1. Go to FME2018.0\\xml\\gml_v3.2
  2. Back up your gml_config.xml
  3. Go to line 211 ( in version 2018.0.1) and comment out the role line by replacing '<v>role</v>' with '<!-- <v>role</v> no longer ignore role -->'
  4. Save and restart FME

The next time you add any GML based reader, if your data has xlink:role attributes, then the GML reader should pick them up. If you feel this is an option that should be part of the default INSPIRE or GML readers, I would invite you to add a new Community Idea to that effect. I'm attaching my gml_config.xml as an example. Below you can see a feature being read with xlink:role values:

gml-config.xml

Hi @DeanAtSafe, thanks a lot for your help, works a treat.

 


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