-
Notifications
You must be signed in to change notification settings - Fork 26
Description
We ran into a problem validating ISO 19115-2 using the schemas at standards.iso.org/iso/19115/-2/gmi/1.0. XMLSpy was unable to follow the redirect from www.opengis.net/gml/3.2 to schemas.opengis.net/gml/3.2.1 so the schemas in https://schemas.opengis.net/gml/3.2.1 that are included in xml.xsd could not be found.
This problem emerged when the user switched from http://www.isotc211.org/2005/gmi/gmi.xsd to https://standards.iso.org/iso/19115/-2/gmi/1.0/gmi.xsd. I was curious about why that switch caused the problem. It turns out that the file https://standards.iso.org/iso/19115/-2/gmi/1.0/spatialRepresentationInformation.xsd imports gml from www.opengis.net/gml/3.2 causing the redirect problem. The other schemas in this chain (https://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/gco/basicTypes.xsd) import gml through http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19136_Schemas/gml.xsd, avoiding the redirect. Thus we really have two problems - redundant definitions of the gml schema, and a redirect that is not followed by XMLSpy.
This can be fixed by changing the xml schema location in https://standards.iso.org/iso/19115/-2/gmi/1.0/spatialRepresentationInformation.xsd from www.opengis.net/gml/3.2 to http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19136_Schemas/gml.xsd, removing the redundant schema definition and avoiding the redirect.