ContentFeatureStore fixes
-------------------------

                 Key: GEOT-3586
                 URL: http://jira.codehaus.org/browse/GEOT-3586
             Project: GeoTools
          Issue Type: Bug
          Components: data
    Affects Versions: 8.0-M0
            Reporter: Lee Breisacher
         Attachments: ContentFeatureStore.txt

These three fixes need to be made to ContentFeatureStore to support CSV 
datastore:

1. removeFeatures() has this loop:
{noformat}
            //remove everything
            while( writer.hasNext() ) {
                writer.next();
                writer.remove();
                writer.write();
            }
{noformat}

but it really should look like this:

{noformat}
            //remove everything
            while( writer.hasNext() ) {
                writer.next();
                writer.remove();
            }
{noformat}

The writer.write() should not be there.

2. ContentFeatureStore.getWriter(Query, int) needs to have (at least) a 
FilteringWriter. See attached patch.

3. There's a minor tweak in ContentFeatureStore.getWriter(Filter, int). Instead 
of "new DefaultQuery(..." it should be "new Query(.." -- DefaultQuery is 
deprecated.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to