* @throws IOException
*/
static CalcResult calculateBounds(
FeatureCollection<? extends FeatureType, ? extends Feature> collection)
throws IllegalFilterException, IOException {
BoundsVisitor boundsVisitor = new BoundsVisitor();
collection.accepts(boundsVisitor, null);
return boundsVisitor.getResult();
}