Beispiel #1
0
        private static LinearRing Normalized(LinearRing ring, bool clockwise)
        {
            var res = (LinearRing)ring.Copy();

            Normalize(res, clockwise);
            return(res);
        }
Beispiel #2
0
        /// <inheritdoc cref="Geometry.CopyInternal"/>>
        protected override Geometry CopyInternal()
        {
            var shellCopy = (LinearRing)_shell.Copy();
            var holesCopy = new LinearRing[_holes.Length];

            for (int i = 0; i < _holes.Length; i++)
            {
                holesCopy[i] = (LinearRing)_holes[i].Copy();
            }
            return(new Polygon(shellCopy, holesCopy, Factory));
        }