[geotk] Problems with JAXPStreamFeatureReader (side-effects from recent changes?)

johann sorel johann.sorel at geomatys.com
Mon Feb 9 03:30:43 PST 2015


Hello,

I have pushed some more changes on GML to support NamedGroup properties 
(which were skipped before).
There is also a beginning of GMLFeatureStore to read standalone files 
(not tested yet).
More changes will come soon.

Johann Sorel
johann.sorel at geomatys.com



On 06/02/2015 16:54, Emmanuel Blondel wrote:
> Thanks Guilhem and Johann,
>
> Indeed, the changes performed in Geotk modified a bit the behavior of 
> our functions, about feature types. However, we could manage it by 
> controling better the feature type of interest we needed for reading 
> the WFS data.
> The exception report indeed was due to wrong properties were passed to 
> the GetFeature request.
>
> Last but not least:
> - If i have a GML-WFS local file (taken from downloaded), and i don't 
> have the equivalent featureType xml: Is it possible with Geotk to read 
> the file to get a list of Features (according to GeoAPI) ?
> - do you know when is planned a release (or milestone pre-release) of 
> Geotk?
>
>
> Le 05/02/2015 17:52, johann sorel a écrit :
>> Hello,
>>
>> You are right I made several updates on the GML XSD reader, inherited 
>> types and properties from different namespaces where missing.
>> As a result the xsd contains a lot more informations (if you are 
>> using sub-type of gml : citygml, observations, ...)
>> I will work some more on GML/WFS 2.0 in the coming weeks.
>>
>> Could you provide a small test case for your issue ? I'll have a look 
>> soon.
>>
>>
>> thanks
>>
>> Johann Sorel
>>
>>
>>
>> On 05/02/2015 16:43, Emmanuel Blondel wrote:
>>> Hello,
>>>
>>> I come back to you on the JAXP StreamFeatureReader.
>>> So far we used it successfully in one of our project, for getting 
>>> data from WFS 1.0 and 1.1 (i've reported on this list the kind of 
>>> issue we had with WFS 2.0). Due to some recent bug fixing, we were 
>>> still relying on the 4.x-SNAPSHOT version.
>>> Unfortunately, this is not working anymore, and i get some error 
>>> like this one (subset for what concerns geotk):
>>>
>>> /java.lang.IllegalArgumentException: The xml does not describe the 
>>> same type of feature: //
>>> // Expected: _FeatureCollection//
>>> //FeatureCollection//
>>> //_Coverage//
>>> //_ContinuousCoverage//
>>> //_DiscreteCoverage//
>>> //Observation//
>>> //DirectedObservation//
>>> //DirectedObservationAtDistance//
>>> //FAO_MAJOR//
>>> //
>>> //But was: ExceptionReport//
>>> //    at 
>>> org.geotoolkit.feature.xml.jaxp.JAXPStreamFeatureReader.read(JAXPStreamFeatureReader.java:204)//
>>> //    at 
>>> org.geotoolkit.feature.xml.jaxp.JAXPStreamFeatureReader.read(JAXPStreamFeatureReader.java:131)//
>>> ////...//
>>> //
>>> /Since we didn't change anything on our side, we suspect it could be 
>>> a side-effect of recent changes?
>>>
>>> Many thanks in advance if you could have a look into this
>>>
>>> Cheers
>>> Emmanuel
>>>
>>>
>>> _______________________________________________
>>> Geotoolkit mailing list
>>> Geotoolkit at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/geotoolkit
>>
>>
>>
>> _______________________________________________
>> Geotoolkit mailing list
>> Geotoolkit at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geotoolkit
>
>
>
> _______________________________________________
> 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/20150209/af2fa282/attachment.html>


More information about the Geotoolkit mailing list