Example #1
0
        /// <summary>
        /// Unions a valid polygonal coverage or linear network.
        /// </summary>
        /// <param name="coverage">A coverage of polygons or lines</param>
        /// <returns>The union of the coverage</returns>
        /// <exception cref="TopologyException">Thrown in some cases if the coverage is invalid</exception>
        public static Geometry Union(Geometry coverage)
        {
            var noder = new SegmentExtractingNoder();

            // a precision model is not needed since no noding is done
            return(OverlayNG.Union(coverage, null, noder));
        }
Example #2
0
        private Geometry PrepareNonPoint(Geometry geomInput)
        {
            // if non-point not in output no need to node it
            if (_resultDim == 0)
            {
                return(geomInput);
            }

            // Node and round the non-point geometry for output
            var geomPrep = OverlayNG.Union(_geomNonPointInput, _pm);

            return(geomPrep);
        }