I have a WFS service I am running using the app-schema extension. (This is using the GeoSciML-Portrayal schema for the GeologicUnits polygons.) My workspace name is “gsmlp” and the source data is in PostGIS. (Attached is my mapping file.)
The error I get when running is WFS GetFeature request is:
The prefix “null” for element “null:GeologicUnitView” is not bound.
The request is
It also fails using WFS 1.0.0 (java.lang.ClassCastException: org.geotools.feature.type.ComplexFeatureTypeImpl cannot be cast to org.opengis.feature.simple.SimpleFeatureType) but actually returns a response with WFS 2.0.0.
A strange behavior is that if I make the gsmlp worksapce the default workspace, then this app-schema service works great. As well, if I enable “Strict CITE Compliance” for the WFS:gsmlp service, then the service works fine as well. However, in these cases when the gsmlp WFS services (app schema based) work (i.e., they return valid WFS GetFeature responses), then none of the other WFS services I have on the machine work properly. Here is an example of a WFS service on the server.
The fact that when the app-schema gsmlp WFS service works, none of the other WFS services work, and vice-versa, makes me think the mapping file is correct but geoserver is not utilizing xmlns:gsmlp=“http://xmlns.geosciml.org/geosciml-portrayal/2.0” in the feature response.
Any suggestions on what I can try? Thanks.
- John
John Callahan
Research Scientist
Delaware Geological Survey
University of Delaware
http://www.dgs.udel.edu
GeologicUnitView.xml (5.63 KB)