Esempio n. 1
0
        public static Geometry Intersection(Point point, MultiPoint multiPoint)
        {
            if (point.IsValid == false)
            {
                return(null);
            }

            return(IntersectCheckOperator.IsIntersects(point, multiPoint) ? point.Clone() : null);
        }
Esempio n. 2
0
        public static Geometry Union(Point point, MultiPoint multiPoint)
        {
            if (IntersectCheckOperator.IsIntersects(point, multiPoint))
            {
                return(multiPoint.Clone());
            }

            if (multiPoint?.IsValid != true)
            {
                return(point?.IsValid == true?point.Clone() : null);
            }

            var nMultiPoint = multiPoint.Clone() as MultiPoint;

            if (point?.IsValid == true)
            {
                nMultiPoint.Geometries.Add(point.Clone());
            }

            return(nMultiPoint);
        }