Skip to main content

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.

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.


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

 


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 @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