[Geoserver-users] App-schema feature linkage issue

Hello All,

Thank you for you help so far.

I now am having an issue with using gmd:MD_Metadata,

I can display it fine requesting just itself, I can also see it building up the ‘feature’ when linked to another but something seems to go wrong and it just displays a blank element on output.

Below is ‘summary’ output / snippets from files, have also attached the relevant XML/XSD files and geoserver log for the entirety of the query.

Output:

gml:featureMembers

<company:Employee gml:id=“company.Employee.1”>

company:fullNameempl 2</company:fullName>
company:employeeID15</company:employeeID>
company:salary10300</company:salary>
company:metadata/

</company:Employee>

Trace from geoserver.log (final output):

2013-10-21 14:42:55,777 TRACE [org.geotools.data.complex.filter] - ENTRY FeatureImpl:Employee=[AttributeImpl:employeeID=23, AttributeImpl:fullName=bm 3, AttributeImpl:salary=50000] company:metadata [FeatureImpl:MD_Metadata<MD_Metadata_Type id=gmd.MD_Metadata.3>=[ComplexAttributeImpl:dateStamp<Date_PropertyType>=[AttributeImpl:Date<Date_Type>=2012-11-11], ComplexAttributeImpl:contact<CI_ResponsibleParty_PropertyType>=[ComplexAttributeImpl:CI_ResponsibleParty<CI_ResponsibleParty_Type>=[ComplexAttributeImpl:role<CI_RoleCode_PropertyType>=[ComplexAttributeImpl:CI_RoleCode<CodeListValue_Type>=[AttributeImpl:simpleContent=Other]]]], ComplexAttributeImpl:identificationInfo<MD_Identification_PropertyType>=[ComplexAttributeImpl:MD_DataIdentification<MD_DataIdentification_Type>=[ComplexAttributeImpl:citation<CI_Citation_PropertyType>=[ComplexAttributeImpl:CI_Citation<CI_Citation_Type>=[ComplexAttributeImpl:date<CI_Date_PropertyType>=[ComplexAttributeImpl:CI_Date<CI_Date_Type>=[ComplexAttributeImpl:date<Date_PropertyType>=[AttributeImpl:Date<Date_Type>=2012-11-11]]], ComplexAttributeImpl:title<CharacterString_PropertyType>=[AttributeImpl:CharacterString=My Title 3 title]]], ComplexAttributeImpl:abstract<CharacterString_PropertyType>=[AttributeImpl:CharacterString=Abstract Number 3], ComplexAttributeImpl:language<CharacterString_PropertyType>=[AttributeImpl:CharacterString=English]]], ComplexAttributeImpl:language<CharacterString_PropertyType>=[AttributeImpl:CharacterString=English], ComplexAttributeImpl:fileIdentifier<CharacterString_PropertyType>=[AttributeImpl:CharacterString=/dev/null]]] null null
2013-10-21 14:42:55,777 DEBUG [org.geotools.xml] - _Feature is abstract
2013-10-21 14:42:55,778 TRACE [org.geotools.data.complex] - no more features, produced 3
2013-10-21 14:42:55,778 DEBUG [org.geotools.jdbc] - CLOSE CONNECTION

Snippet for feature link in Employee.xml:

company:metadata pe_id gmd:MD_Metadata FEATURE_LINK[2]

Snippet for feature link in MD_Metadata.xml:

FEATURE_LINK[2] fm_id

XSD Mapping file entry:

geoserver-md-fail.txt (36.6 KB)

people.xsd (3.27 KB)

MD_Metadata.xml (4.7 KB)

Employee.xml (3.13 KB)

Try adding an element of property type in your schema:

<xs:element name="gmd:MD_Metadata" type="gmd:MD_Metadata_PropertyType"/>

And update your EmployeeType accordingly:

<complexType name="EmployeeType">
    <complexContent>
      <extension base="company:PersonType">
        <sequence>
          <element name="employeeID" type="integer"/>
          <element name="salary" type="integer"/>
          <element name="metadata" type="gmd:MD_Metadata_PropertyType"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/App-schema-feature-linkage-issue-tp5084723p5085678.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,

Thanks using ‘PropertyType’ instead of just ‘Type’ made the metadata show up.

Such minor things :frowning:

···

On 25 October 2013 14:53, Rini Angreani <Rini.Angreani@anonymised.com7…> wrote:

Try adding an element of property type in your schema:

<xs:element name=“gmd:MD_Metadata” type=“gmd:MD_Metadata_PropertyType”/>

And update your EmployeeType accordingly:


View this message in context: http://osgeo-org.1560.x6.nabble.com/App-schema-feature-linkage-issue-tp5084723p5085678.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Not minor. Core design feature of GML, embodied in the encoding rules, which require properties and objects to be correctly ordered.

Kind regards,
Ben.

On 25/10/13 15:34, snuffy wrote:

Thanks using 'PropertyType' instead of just 'Type' made the metadata
show up.

Such minor things :frowning:

--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre