Hi,
I'm getting some strange behaviour when I attempt to encode 
SF_Specimen/samplingLocation.
The first samplingLocation/gml:Point is being correctly encoded, but all 
subsequent locations, whether at that location or a different one, are # 
xlink:refs.
For example:
http://nssc-soilml-vc.nexus.csiro.au:8080/geoserver/wfs?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAME=spec:SF_Specimen&COUNT=100&OUTPUTFORMAT=gml32
returns:
<snip>
<spec:samplingLocation>
            <gml:Point gml:id="specimen.199.CAN.C410.1.location" 
srsDimension="2" srsName="urn:ogc:def:crs:EPSG::4326">
                        <gml:pos>-34.79847 146.067917</gml:pos>
            </gml:Point>
</spec:samplingLocation>
<snip>
spec:samplingLocation xlink:href="#specimen.199.CAN.C410.1.location" /> <-- 
this is correct
<snip>
<spec:samplingLocation xlink:href="#specimen.199.CAN.C502.1.location" /> <-- 
there is no gml:Point in the returned file for this location
<snip>
<spec:samplingLocation xlink:href="#specimen.199.CAN.C503.1.location" /> <-- 
there is no gml:Point in the returned file for this location
<...>

With no actual gml:Point for specimen.199.CAN.C502.1.location, 
specimen.199.CAN.C503.1.location etc.
The configuration file for the spec:samplingLocation has:

<AttributeMapping>
            <targetAttribute>spec:samplingLocation</targetAttribute>
            <idExpression>
                        <OCQL>SPECIMEN_POINT_GML_ID</OCQL>-->
            </idExpression>
            <sourceExpression>
                        <OCQL>SPECIMEN_POINT</OCQL>
            </sourceExpression>
</AttributeMapping>

I've tried leaving the idExpression off (returns all the gml:Points but is 
invalid as it leaves the gml:id off).
Thoughts?

Cheers
Bruce Simons
Information Modeller
CSIRO Land and Water/ Environmental Information Infrastructures
E: [email protected]<mailto:[email protected]> T: +61 3 9252 6514 M: 
+61 475 954 391
PO Box 56, Highett, Victoria, 3190

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to