The FeatureCollectionWrapper.getUltimateWrappee() looks like this:

public FeatureCollection getUltimateWrappee() {
    FeatureCollection currentWrappee = fc;
    while (currentWrappee instanceof FeatureCollectionWrapper) {
       currentWrappee = ((FeatureCollectionWrapper) currentWrappee).fc;
    }
    return currentWrappee;
}


http://jump-pilot.svn.sourceforge.net/viewvc/jump-pilot/core/trunk/src/com/vividsolutions/jump/feature/FeatureCollectionWrapper.java?revision=859&view=markup#l66

Is there a reason line 66 references .fc directly instead of .getWrappee() ?

For me this currently returns the wrong answer.  In the case of a 
CachingFeatureCollection, there are actually two FeatureCollections: the 
actual wrapped FC and a cached FC (a potentially small subset of the 
wrapped FC).  So, in this case, .fc references the cached FC, which is 
not the FC I'm actually after.

I've overridden CachingFeatureCollection.getWrappee() in a custom 
variant to return the actual wrapped FC, which in my case is a custom 
DataStoreFeatureCollection that mimics a database table, not the cached 
FC subset.


-- Kevin

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to