-
Notifications
You must be signed in to change notification settings - Fork 149
Biological or Remote Sensing FGDC xsds
When referencing FGDC xsds in your geoportal definition.xml files, care must be taken. The xsds available from the FGDC site will not work as-is because they contain an issue with the FGDCstring simpleType element in the fgdc-std-001-1998.xsd file. The issue results in a StackOverflowError message thrown by the Apache xerces library used in the geoportal when the fgdc xsd schema validation is invoked.
The workaround is to download the xsds, make a change such that this error is not thrown, and reference the local copy of the xsds in the geoportal FGDC definition files. Alternatively, there may be other versions of the FGDC xsd hosted elsewhere that already have the change, and those other versions could be referenced in the geoportal FGDC definition files.
The adjustment to the FGDCstring simpleType element is shown below:
<xs:simpleType name="FGDCstring">
<xs:restriction base="xs:string">
<xs:whiteSpace value="collapse"/>
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
Back to FGDC Biological Profile and Remote Sensing Extension.