Ejemplo n.º 1
0
        /// <summary>
        /// Computes the <see cref="IntersectionMatrix"/> for the spatial relationship
        ///  between two <see cref="Geometry"/>s, using the specified Boundary Node Rule
        /// </summary>
        /// <param name="a">A geometry to test</param>
        /// <param name="b">A geometry to test</param>
        /// <param name="boundaryNodeRule">The Boundary Node Rule to use</param>
        /// <returns>The <c>IntersectionMatrix</c> for the spatial relationship between the geometries</returns>
        public static IntersectionMatrix Relate(Geometry a, Geometry b, IBoundaryNodeRule boundaryNodeRule)
        {
            var relOp = new RelateOp(a, b, boundaryNodeRule);
            var im    = relOp.IntersectionMatrix;

            return(im);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Computes the <see cref="IntersectionMatrix"/> for the spatial relationship
        ///  between two <see cref="Geometry"/>s, using the default (OGC SFS) Boundary Node Rule
        /// </summary>
        /// <param name="a">A geometry to test</param>
        /// <param name="b">A geometry to test</param>
        /// <returns>The <c>IntersectionMatrix</c> for the spatial relationship between the geometries</returns>
        public static IntersectionMatrix Relate(Geometry a, Geometry b)
        {
            var relOp = new RelateOp(a, b);
            var im    = relOp.IntersectionMatrix;

            return(im);
        }