Ejemplo n.º 1
0
        /// <summary>
        /// Computes a copy of the input <c>Geometry</c> with the calculated common bits
        /// removed from each coordinate.
        /// </summary>
        /// <param name="geom0">The Geometry to remove common bits from.</param>
        /// <returns>A copy of the input Geometry with common bits removed.</returns>
        private Geometry RemoveCommonBits(Geometry geom0)
        {
            _cbr = new CommonBitsRemover();
            _cbr.Add(geom0);
            var geom = _cbr.RemoveCommonBits((Geometry)geom0.Copy());

            return(geom);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Computes a copy of each input <c>Geometry</c>s with the calculated common bits
        /// removed from each coordinate.
        /// </summary>
        /// <param name="geom0">A Geometry to remove common bits from.</param>
        /// <param name="geom1">A Geometry to remove common bits from.</param>
        /// <returns>
        /// An array containing copies
        /// of the input Geometry's with common bits removed.
        /// </returns>
        private Geometry[] RemoveCommonBits(Geometry geom0, Geometry geom1)
        {
            _cbr = new CommonBitsRemover();
            _cbr.Add(geom0);
            _cbr.Add(geom1);
            var geom = new Geometry[2];

            geom[0] = _cbr.RemoveCommonBits((Geometry)geom0.Copy());
            geom[1] = _cbr.RemoveCommonBits((Geometry)geom1.Copy());
            return(geom);
        }