Skip to main content
Solved

Issue with FeatureCollection in INSPIRE GML


oscard
Influencer
Forum|alt.badge.img+21

Good morning.

This week has been released the new INSPIRE validator:

http://inspire-sandbox.jrc.ec.europa.eu/validator

This tool allows you to validate a GML file.

I have several GML that I got using the INSPIRE GML writer in FME. To validate them, I just checked them against the XSD provided by INSPIRE. That validation was always OK.

But with the new validator I'm getting this error:

cvc-elt.1.a: Cannot find the declaration of element 'gml:FeatureCollection'.

I have attached a sample of my GML. There is a FeatureCollection tag...

Does anyone know if I have to change something of the INSPIRE GML writer to build a proper FeatureCollection?

Thanks!

Best answer by lars_de_vries

Hi @oscard,

it could be an error in the GML, in the Writer and in the Validator.

You should have a look in the XSD to see whether the FeatureCollection tag is declared there. If it is declared, it might be an error in the Validator. If not, there might be a problem in the Writer.

Hope this helps.

View original
Did this help you find an answer to your question?

2 replies

lars_de_vries
Forum|alt.badge.img+10

Hi @oscard,

it could be an error in the GML, in the Writer and in the Validator.

You should have a look in the XSD to see whether the FeatureCollection tag is declared there. If it is declared, it might be an error in the Validator. If not, there might be a problem in the Writer.

Hope this helps.


oscard
Influencer
Forum|alt.badge.img+21
  • Author
  • Influencer
  • July 27, 2017
lars_de_vries wrote:

Hi @oscard, 

it could be an error in the GML, in the Writer and in the Validator. 

You should have a look in the XSD to see whether the FeatureCollection tag is declared there. If it is declared, it might be an error in the Validator. If not, there might be a problem in the Writer. 

Hope this helps.

I needed to add more elements to the schemeLocation URL parameter of the writer:

 

 

http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd http://inspire.ec.europa.eu/schemas/cp/4.0 http://inspire.ec.europa.eu/schemas/cp/4.0/CadastralParcels.xsd

 

With that, the new validator gives the OK to my files.

 

Thanks for your answer. It took me to the right path.

 


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