[geotk] parsing sensorml

Guilhem guilhem.legal at geomatys.fr
Wed Dec 3 06:12:21 PST 2014


Hi juergen,

In the JAXB binding classes of geotk, the attribute "metaDataProperty" 
is not supported for GML 3.1.1
I think its handled in 3.2.1 version but because this attribute has a 
kind of dynamic content, its pretty hard to read for JAXB.

You are free to parse the SensorML file with another parsing factory, or 
use a dom parser.

Guilhem Legal

Le 02/12/2014 10:21, juergen sorg a écrit :
> hi,
>
> i tried to parse a sensorml with geotoolkit 3.19
>
> the parsing works, but on "output" elements we have a metadata element 
> (sensorml conform. see sensorml fragment below) child that determines 
> an offering the "output" belongs to.
>
> now my question: how can i change geotoolkit sensorml parsing to parse 
> also the metadata element.
>
> can i introduce a new parsing factory?
> or is it possible to use a cursor and traverse the metadata subtree 
> with dom capabilities.
>
> btw. , it is not (easily) possible for me to compile the 
> geotoolkit/sis with maven (maven verion 3 is required, and some other 
> exceptions are occure when compiling it)
>
> thanks in advance
>
> gruss juergen
>
>
>
>
> <sml:output name="AirRelativeHumidity2m" xlink:type="simple">
>                         <swe:Quantity definition="AirRelativeHumidity2m">
>                             <gml:metaDataProperty>
>                                 <offering>
>                                     <id>Climate</id>
> <name>Climate</name>
>                                 </offering>
>                             </gml:metaDataProperty>
>                             <gml:description />
>                             <swe:uom code="%" xlink:type="simple" />
>                         </swe:Quantity>
>                     </sml:output>
>
>
>
> _______________________________________________
> Geotoolkit mailing list
> Geotoolkit at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geotoolkit

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geotoolkit/attachments/20141203/23a52d7c/attachment.html>


More information about the Geotoolkit mailing list