public BoundingBox GetExtents()
{
lock (_syncRoot)
{
BoundingBox box = null;
foreach (IFeature feature in Features)
{
if (feature.Geometry.IsEmpty()) continue;
box = box == null
? feature.Geometry.GetBoundingBox()
: box.Join(feature.Geometry.GetBoundingBox());
}
return box;
}
}