[geotk] Using JAXPStreamFeatureReader with WFS 1.0 and 2.0

Emmanuel Blondel emmanuel.blondel1 at gmail.com
Fri Jan 9 15:56:30 PST 2015


Thanks Johann,

As reported below, i'm also having issue with WFS 2.0, and similarly as 
for 1.0, I've started inspecting code trying to make it work with WFS 2.0.

One question i have is how you would deal with JAXB bindings and the 
different GML target namespace handled with WFS 2.0. Indeed, by using 
WFS 2.0, the GML format used is 3.2.1, and its targetNamespace is not 
"http://www.opengis.net/gml" but "http://www.opengis.net/gml/3.2", which 
causes a JAXBException trying to handle data with JAXB.

Thanks in advance
Emmanuel

Le 09/01/2015 10:28, johann sorel a écrit :
> Hello emmanuel,
>
> The JTSWrapper module isn't really new, this is something which will 
> change in the futur with the work on Apache SIS.
> Thanks for the contribution, the patch has been merged in.
>
>
> Johann Sorel
> Geomatys
>
>
> On 08/01/2015 23:57, Emmanuel Blondel wrote:
>> Hello,
>>
>> I come back to you on this testing.
>> I've investigated a bit the first issue (with WFS 1.0), by cloning 
>> and inspecting geotk code.
>> I think i have identified the issue, and sent a small pull request: 
>> https://github.com/Geomatys/geotoolkit/pull/2
>>
>> With this minor change, I could fix the NullPointerException below 
>> and properly use JAXPStreamFeatureReader with WFS 1.0
>> I'd like to get your feedback on this, and if you think it's ok, can 
>> you merge the fix?
>>
>> Thanks
>> Emmanuel
>>
>>
>> Le 04/01/2015 21:36, Emmanuel Blondel a écrit :
>>> Hello,
>>>
>>> I come back to you on testing the Geotk WFS client.
>>> i've been using the JAXPStreamFeatureReader to read WFS features. It 
>>> works well with 1.1, but unfortunately not with 1.0 and 2.0.
>>>
>>> For 1.0, i get this NullPointerException: http://pastebin.com/dMRuC63F
>>> For 2.0, strangely it enters into an infinite sequence of schema 
>>> downloading attempts.
>>>
>>> Thanks in advance for your feedback,
>>> 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



More information about the Geotoolkit mailing list