Hi
This is an app-schema related question.
I am creating GeoSciML 4.1 for Geologic Unit, and while I can create valid
GeoSciML, if I request enough features such that there are duplicate IDs in the
WFS, those duplicates aren't being turned into xlink:href.
For example, if I have a GeologicFeatureRelation which is at XPath
/wfs:FeatureCollection/wfs:member/gsmlb:GeologicUnit/gsmlb:relatedFeature/gsmle:GeologicFeatureRelation
<gsmlb:relatedFeature>
<gsmle:GeologicFeatureRelation
gml:id="asud.gsml.geologicfeaturerelation.11667">
<gml:identifier
codeSpace="urn:ietf:rfc:1738">http://pid.geoscience.gov.au/feature/asc/gsml/geologicalunit/11667</gml:identifier>
<gml:name>Mereenie Sandstone</gml:name>
<gsmlb:relatedFeature
xlink:href="http://www.opengis.net/def/nil/OGC/0/inapplicable"/>
<gsmle:relationship
xlink:href="http://pid.geoscience.gov.au/def/voc/geologicrelationgroup/stratigraphic_relation"
xlink:title="stratigraphic relation"/>
<gsmle:sourceRole
xlink:href="http://pid.geoscience.gov.au/def/voc/geologicrelationtype/overlies"
xlink:title="overlies"/>
</gsmle:GeologicFeatureRelation>
</gsmlb:relatedFeature>
And another which is the same object as above, the second one does not change
into an xlink:href="#asud.gsml.geologicfeaturerelation.11667"
This is causing validation errors, eg from Oxygen
System ID:
http://localhost:8080/gsmlb/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=gsmlb:GeologicUnit&outputFormat=gml32&maxFeatures=100
Main validation file:
http://localhost:8080/gsmlb/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=gsmlb:GeologicUnit&outputFormat=gml32&maxFeatures=100
Schemas:
http://schemas.opengis.net/gml/3.2.1/gml.xsd
http://schemas.opengis.net/gsml/4.1/geoSciMLBasic.xsd
http://schemas.opengis.net/gsml/4.1/geoSciMLExtension.xsd
http://schemas.opengis.net/wfs/2.0/wfs.xsd
https://standards.iso.org/iso/19115/-3/cit/1.0/cit.xsd
https://standards.iso.org/iso/19115/-3/mrl/1.0/mrl.xsd
Engine name: Xerces
Severity: error
Description: cvc-id.2: There are multiple occurrences of ID value
'asud.gsml.geologicfeaturerelation.11667'.
Start location: 48961:55
End location: 48961:96
URL: http://www.w3.org/TR/xmlschema-1/#cvc-id
Not sure how to resolve this. I had expected GeoServer to turn duplicate IDs
into hrefs, as this is what it had been going for GeologicUnit objects.
Thanks
Michael
Geoscience Australia Disclaimer: This e-mail (and files transmitted with it) is
intended only for the person or entity to which it is addressed. If you are not
the intended recipient, then you have received this e-mail by mistake and any
use, dissemination, forwarding, printing or copying of this e-mail and its file
attachments is prohibited. The security of emails transmitted cannot be
guaranteed; by forwarding or replying to this email, you acknowledge and accept
these risks.
-------------------------------------------------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users