[geotk] Feature identifier retrieved from WFS prepended a '@' ??

Emmanuel Blondel emmanuel.blondel1 at gmail.com
Wed Mar 11 08:10:10 PDT 2015


Hello,

I'm using JAXPStreamFeatureReader and JAXBFeatureTypeReader to read WFS 
data.
Until now everything worked well (WFS 1.0.0 / 1.1.0), now testing i see 
i get the "fid" taken from the xml attribute of the same name. Strangely 
the featureType retrieved prepends "fid" with "@" -> "@fid" (i believe 
related code is 
https://github.com/Geomatys/geotoolkit/blob/master/modules/jaxp-xml-parser/geotk-jaxp-gml/src/main/java/org/geotoolkit/feature/xml/jaxb/JAXBFeatureTypeReader.java#L748). 
I'm just wondering if it's correct behavior.
It's good to have access to the feature identifier, but shouldn't we 
rather expect to have the exact attribute name? (with no '@'). What do 
you think? or is there a particular reason that requires this naming?

Thanks in advance

Bests,
Emmanuel




More information about the Geotoolkit mailing list