Re: [Geotools-devel] Parsing large feature collections

2007-02-21 Thread Justin Deoliveira
Hi Michael, I suggest for any reasonable size dataset you use the StreamingParser: StreamingParser parser = new StreamingParser(configuration,"//gml:featureMember"); try{ Feature f = null; while ( ( f = parser.parse() ) != null ) { ... } }... } Some more info ab

[Geotools-devel] Parsing large feature collections

2007-02-21 Thread Michael Lutz
We are running into big memory problems when trying to parse large GML files containing WFS feature collections (e.g. 25000 points, about 25MB as GML) using the following code: public static FeatureCollection readFromInputStream(InputStream in) { Configuration configuration = new WFSConfigur