Skip to main content
Question

INSPIRE validator problem

  • February 14, 2022
  • 4 replies
  • 91 views

Forum|alt.badge.img

Hello,

I have a problem with INSPIRE validator. I created a ETL schema in my FME Desktop environment according to INSPIRE theme of Protected Sites. So I've done it by applying all the technical guides from INSPIRE, and solved all my previous validation errors except this one:

The dataset has 1 file(s) with errors for this assertion.

XML document 'ProtectedSites ETRS89_jasmin.gml': The file has 1 schema validation error(s).

XML document 'ProtectedSites ETRS89_jasmin.gml': 1:729: cvc-elt.1.a: Cannot find the declaration of element 'gml:FeatureCollection'.

When I use the Hale studio for transformation and get my GML, validation process goes smoothly, but with FME I have a problem.

During my analysis I saw that in Hale Studio GML I have a longer <gml: FeatureCollection > tag in the xxsi:schemaLocation part.

Here is the Hale xsi: schemaLocation:

xsi:schemaLocation="http://inspire.ec.europa.eu/schemas/ps/4.0 https://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/deprecatedTypes.xsd"

Here is the FME xsi: schemaLocation:

xsi:schemaLocation="http://inspire.ec.europa.eu/schemas/ps/4.0 http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd"

 

See the difference? When I manually copy from Hale GML to FME GML this missing part, I get my validation to pass. How to do this automatically through the FME schema?

 

Thank you.

4 replies

fgiron
Supporter
Forum|alt.badge.img+20
  • Supporter
  • February 15, 2022

Hi @jasmincatic16​ ,

There's a parameter in the GML Writer under the Advanced section where you can manually set the xsi:schemaLocation:

 

xsi:schemaLocation 

This is the way it's set up in the INSPIRE GML Protected Sites template from con terra (https://hub.safe.com/publishers/con-terra/templates/inspire-gml-protected-sites-simple-schema). You can't load most transformers without the INSPIRE Solution Pack for FME plugin, but you can still have a look at the writer settings.


Forum|alt.badge.img

Hello @fgiron​,

I figured it out already, and yeah I applied the same solution as you. Validation process passed.

Thank you for reply and for your time to help me on this one. I really appreciate it.

 

Sincerely,

Jasmin

 


helmoetz
Contributor
Forum|alt.badge.img+13
  • Contributor
  • March 12, 2024
fgiron wrote:

Hi @jasmincatic16​ ,

There's a parameter in the GML Writer under the Advanced section where you can manually set the xsi:schemaLocation:

 

xsi:schemaLocation 

This is the way it's set up in the INSPIRE GML Protected Sites template from con terra (https://hub.safe.com/publishers/con-terra/templates/inspire-gml-protected-sites-simple-schema). You can't load most transformers without the INSPIRE Solution Pack for FME plugin, but you can still have a look at the writer settings.

Sorry @fgiron your link is broken.

 


fgiron
Supporter
Forum|alt.badge.img+20
  • Supporter
  • March 12, 2024
helmoetz wrote:
fgiron wrote:

Hi @jasmincatic16​ ,

There's a parameter in the GML Writer under the Advanced section where you can manually set the xsi:schemaLocation:

 

xsi:schemaLocation 

This is the way it's set up in the INSPIRE GML Protected Sites template from con terra (https://hub.safe.com/publishers/con-terra/templates/inspire-gml-protected-sites-simple-schema). You can't load most transformers without the INSPIRE Solution Pack for FME plugin, but you can still have a look at the writer settings.

Sorry @fgiron your link is broken.

 

Hi @helmoetz, it looks like we have now a verified publisher and a community publisher. Here’s the right link: https://hub.safe.com/publishers/con-terra-lab/templates/inspire-gml-protected-sites-simple-schema


Reply


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