Mapsui.Providers.MemoryProvider.GetExtents C# (CSharp) 메소드

GetExtents() 공개 메소드

Boundingbox of dataset
public GetExtents ( ) : BoundingBox
리턴 BoundingBox
        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;
            }
        }