Ejemplo n.º 1
0
        public static MapExtent?FromPoints(List <MapPoint> points)
        {
            if (points == null || points.Count == 0)
            {
                return(null);
            }
            MapExtent me = FromPoint(points[0]);

            for (int i = 1; i < points.Count; i++)
            {
                me.Combine(points[i]);
            }
            return(me);
        }
Ejemplo n.º 2
0
        public override MapExtent QueryExtent(string tableName)
        {
            List <Datarow> rows = Query(tableName, MapExtent.Max);

            if (rows.Count > 0)
            {
                MapExtent extent = rows[0].Extent;
                for (int i = 1; i < rows.Count; i++)
                {
                    extent.Combine(rows[i].Extent);
                }
                return(extent);
            }
            return(MapExtent.None);
        }