@Override
public ReferencedEnvelope getBounds() {
if(attribute == null) {
// in this case we just have to expand the original collection bounds
ReferencedEnvelope re = delegate.getBounds();
re.expandBy(distance);
return re;
} else {
// unlucky case, we need to actually compute by hand...
return DataUtilities.bounds(features());
}