Issue with unresolved gml namespace prefix when using GeoSciML with app-schema

Dear GeoServer community,

I’m currently implementing the GeoSciML schema using the app-schema extension in GeoServer.

Most things are working well; however, I’m encountering an issue during XML serialization: the gml namespace prefix appears as null: in the output, instead of being correctly resolved.

I’m using GeoSciML-Basic 4.1 and GML 3.2, and I’ve defined the gml namespace as follows in my mapping file:

gml http://www.opengis.net/gml/3.2

Despite this, elements like gml:name or gml:identifier are serialized as null:name and null:identifier in the response.

Has anyone encountered this issue? Am I missing a configuration step related to the namespace declarations or schema references?

Any help would be greatly appreciated.

Best regards,

Josep

Welcome @josepsitjar and thanks for checking into the user forum.

I do not have any app-schema experience myself, but I note you may need to take some extra configuration steps with unity resolution, to allow GeoServer to access the GeoSciML XSD files.

There have been some additional security restrictions introduced over time; and you should review the update instructions. While the common OGC and INSPIRE locations are allowed, you will need to perform some configuration for other locations…

Thanks @jive for your answer.

The issue I’m having with namespaces is only related to GML. Its default location (Index of /gml) is theoretically allowed, and GeoServer does seem to recognize it correctly — it validates without errors.

However, the only problem is that it’s being displayed as null. Here’s an example:

gml:featureMember>
<gsmlb:GeologicUnit gml:id="APAR-MLMST">
<null:identifier codeSpace="http://data.bgs.ac.uk/">
http://data.bgs.ac.uk/id/Lexicon/LithologyComponent/MLMST_APAR
</null:identifier>
<null:name>
APPIN GROUP AND ARGYLL GROUP (UNDIFFERENTIATED) - METALIMESTONE
</null:name>
<gsmlb:geologicHistory>
<gsmlb:GeologicEvent id="gsmlga.ge-APAR-MLMST">
<null:name>Unnamed event</null:name>
<gsmlb:eventProcess xlink:href="http://resource.geosciml.org/classifier/cgi/eventprocess/metamorphic_process" xlink:title="metamorphic process"/>
<gsmlb:olderNamedAge xlink:href="http://resource.geosciml.org/classifier/ics/ischart/Neoproterozoic" xlink:title="Neoproterozoic"/>
<gsmlb:youngerNamedAge xlink:href="http://resource.geosciml.org/classifier/ics/ischart/Neoproterozoic" xlink:title="Neoproterozoic"/>
<gsmlb:eventEnvironment>