Skip to main content
Solved

How to create a INSPIRE GML without the gml:boundedBy-tag

  • October 12, 2016
  • 7 replies
  • 50 views

Hi,

I'd like to create a inspire GML-file (using the inspire GML writer) without the <gml:boundedBy>-tag.

<gml:boundedBy> <gml:Envelope srsName="EPSG:28992" srsDimension="3"> <gml:lowerCorner>96465.102 471796.29 0.00</gml:lowerCorner> <gml:upperCorner>145855.225 563146.105 0.00</gml:upperCorner> </gml:Envelope> </gml:boundedBy>

Is there a way to generate such a zipped gml (with the INSPIRE gml writer) without the above text/tag. How do I prevent my workbench from generating this tag.

Thanks in advance.

Bas Boers

Best answer by takashi

Hi @bas_boers, just an idea. If you write the data into a file with the FeatureWriter (Format: INSPIRE GML), I think you can delete unnecessary elements from the resulting XML with the XMLUpdater transformer.

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.

7 replies

takashi
Celebrity
  • Best Answer
  • October 12, 2016

Hi @bas_boers, just an idea. If you write the data into a file with the FeatureWriter (Format: INSPIRE GML), I think you can delete unnecessary elements from the resulting XML with the XMLUpdater transformer.


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • October 12, 2016

Hi @bas_boers, In the past I had to apply something very similar to the idea @takashi mentions, I am afraid that it is not possible to accomplish with the writer.


  • Author
  • October 12, 2016

Thanks @takashi and @itay for your replies,

My problem following takashi's suggesion is that the gml:boundedBy-tag is no attribute that can be deleted using the xmlUpdater. I'll try another type of GML-writer instead to transfer my data to IMKL2015 application schema. Maybe a nonpreferable solution lies in altering fme's gml config-files??


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • October 12, 2016

Thanks @takashi and @itay for your replies,

My problem following takashi's suggesion is that the gml:boundedBy-tag is no attribute that can be deleted using the xmlUpdater. I'll try another type of GML-writer instead to transfer my data to IMKL2015 application schema. Maybe a nonpreferable solution lies in altering fme's gml config-files??

I seem to remember using the XML Templater to create the result gml and not the writer, this gives you total control over the resulting schema. However it is initially more work....

 

 


takashi
Celebrity
  • October 12, 2016

Thanks @takashi and @itay for your replies,

My problem following takashi's suggesion is that the gml:boundedBy-tag is no attribute that can be deleted using the xmlUpdater. I'll try another type of GML-writer instead to transfer my data to IMKL2015 application schema. Maybe a nonpreferable solution lies in altering fme's gml config-files??

If my understanding is correct, the "gml:boundedBy" is an XML element and I therefore think the XMLUpdater can be used to delete the element easily. This is a simplified example.

 

 


  • Author
  • October 12, 2016

thanks a lot @takashi,

your solution works. I mad a mistake implementing the first time, but the example helped.

Regards.


deanatsafe
Safer
Forum|alt.badge.img+6
  • Safer
  • March 27, 2017

@bas_boers Another way to do this is to create a FeatureCollection feature and make sure it has no boundedBy geometry on it. Or you can set the boundedBy geometry to null and that should cause it to be dropped. This works as of FME 2017.0. See outboundedbytest.zip