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

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


I'm also wondering if it is correct to add this 'fid' as part of the 
featureType by default, as it is not explicitely part of the WFS 
DescribeFeatureType response (except maybe if we consider super properties?)

Le 11/03/2015 16:10, Emmanuel Blondel a écrit :
> 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