public static Geometry Union(this Geometry geom, List <Geometry> geoms)
 {
     foreach (var item in geoms)
     {
         geom = geom.Union(item);
     }
     return(geom);
 }
Esempio n. 2
0
        public Envelope Union(Envelope otherEnv)
        {
            Geometry a            = this.GetGeometry();
            Geometry b            = otherEnv.GetGeometry();
            Geometry intersection = a.Union(b);

            if (intersection == null)
            {
                return(null);
            }
            else
            {
                Envelope e = new Envelope();
                intersection.GetEnvelope(e);
                return(e);
            }
        }