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
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