Jody Garnett ha scritto: > There were three errors: > - Two cases where a list of features was being created; used > DataUtilities.list( fc ) > - FeatureWrapper; looks to be an adapater to something that expects an > iterator; I was able to use the above DataUtilities.list( fc ) method - > but this would of course load everything into memory; The javadocs > indicate this this is specifically to allow for an object (ie the > feature collection) to be used with the for/each loop - I would like to > ask the author of this code what they are adapting to and if there is > any way we can close the iterator that is created.
I see that in the meantime your created a custom wrapper, good, you got me worried with this one. Just to double check, does the iterator returned by the feature collection close itself properly in case of exception and when it reaches the end of the iterator, or should we add those checks to the wrapper? Cheers Andrea ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
