UNOFFICIAL

Hi GeoServer users,

Are there any fellow geoserver-users who have feature chained a dynamic list of 
fields for a swe:DataRecord object, who might be able to offer some guidance on 
how to set up the mapping files in app-schema?

This is the sweCommon encoding example I am trying to achieve  
http://schemas.opengis.net/sweCommon/2.0/examples/spec/record_weather.xml

I have attempted various mappings, but could only get it working as multiple 
instances of the entire DataRecord or just the first item. 

Setting the linkField targetElement to swe:field would be correct, but I don't 
think it's possible to add the name attribute to the swe:field node. 

This is the structure of the data table I am attempting to map

ID              ANALYSIS_NO     FIELD           VALUE   UOM
1287247.ALM     1287247 Almandine       1 4     %
1287247.CL      1287247 Chlorite                30 70   %
1287247.EP      1287247 Epidote         1 4     %
1287247.MC      1287247 Microcline      30 70   %
1287247.OGC     1287247 Oligoclase      30 70   %
1287247.SERC    1287247 Sericite                30 70   %

This is the output when targeting the swe:DataRecord element, but this is 
obviously not correct as the feature link needs to be one element down at 
swe:field.
<om:OM_Observation>
        <om:result>
                <swe:DataRecord id="1287247.ALM">
                <swe:label>Mineral abundances by volume</swe:label>
                        <swe:field name="Almandine">
                                <swe:QuantityRange>
                                        <swe:label>Almandine</swe:label>
                                        <swe:value>1 4</swe:value>
                                </swe:QuantityRange>
                        </swe:field>
                </swe:DataRecord>
        </om:result>
</om:OM_Observation>


I also had a go at using the <jdbcMultipleValue> syntax, but wasn't able to get 
anything to output as xml. This does seem like another workable solution, but 
I'm not sure how to deeply nest using this syntax.

Any advice would be greatly appreciated! 

Kind regards,
Ursula



_______________________________________________
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


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to