I am looking at the code now ... you are correct that is the bug.
Will apply patches to both lines and run the tests.
Andrea are you going to be cool with a commit on this one?
Vincent ... for those just following along on email using a slightly
larger code example made the "fix" clear.
> Schema schema = contentHandler.getSchema();
> if( schemas.get(targetNamespace)!=null ){
> schema=merge(schema, (Schema)
> schemas.get(targetNamespace));
> }
>
> schemas.put(targetNamespace, schema );
Cheers,
Jody
> Hello,
>
> I'm coming back with my problem with WFS DataStore. I tried to contact David
> Zwiers with his address on gmail but no reply so far. Anyway I'm
> investigating the issue which really looks like a serious bug.
>
> I remind that the only solution I have found to perform different queries *on
> different feature types* is to recreate a new FeatureSource and even a new
> DataStore (!) for each new request! This workaround is obvliously desastrous
> for performances.
>
> >From what I can understand the problem seems to come from the following
> >method:
> SchemaFactory.getRealInstance(URI targetNamespace2, InputStream is1, Level
> level)
>
> Line 344 (version 3.2.1) there is:
> schemas.put(targetNamespace, contentHandler.getSchema());
>
> But it should be:
> schemas.put(targetNamespace, schema);
> To take in care the new merged schema.
>
> Maybe someone could confirm me?
>
> Thanks,
>
> Vincent.
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users