Failure to handle GML Feature associations as properties in output schema
-------------------------------------------------------------------------
Key: GEOS-595
URL: http://jira.codehaus.org/browse/GEOS-595
Project: GeoServer
Type: Bug
Components: WFS
Versions: 1.4.M0
Reporter: Rob Atkinson
Assigned to: Ian Turton
Fix For: 1.4.M0
Attachments: geoserver_conf.zip
When a GML Feature Type has a property that is an instance of another Feature, its actually a construct that allows inline or by reference instantiation:
eg (from ISO19112 Gazetteer definition, a Data Dir attached - uses data in a postgres table via locationsXY store, but should be testable via shapefile)
<element name="locationType" type="iso19112:SI_LocationTypePropertyType"/>
<complexType name="SI_LocationTypePropertyType">
<sequence minOccurs="0">
<element ref="iso19112:SI_LocationType"/>
</sequence>
<attributeGroup ref="gml:AssociationAttributeGroup"/>
</complexType>
often these are constrained to be "byReference"
so an instance would look like this
<x>
...
<locationType xlink:href="http://my.org/featuretypecatalogue.xml#ft1002"/>
...
</x>
in the schema mappings file we have:
<AttributeMapping>
<targetAttribute>SI_LocationInstance/locationType</targetAttribute>
<sourceExpression>
<OCQL>featurecode</OCQL>
</sourceExpression>
</AttributeMapping>
which produces:
<iso19112:locationType />
or using an explicit mapping:
<targetAttribute>SI_LocationInstance/locationType/@xlink:href</targetAttribute>
fails (with or with the xlink: prefix)
with logs saying:
[java] Caused by: java.lang.IllegalArgumentException: attribute @href not found in http://www.opengis.net/iso19112:locationType
NB this pattern is common when creating an application schema using the ISO19118 rules (and thus INSPIRE, FGDC etc domains are affected)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira