コード例 #1
0
 public override bool Intersects(Geometry g)
 {
     if (!EnvelopesIntersect(g))
     {
         return(false);
     }
     return(PreparedLineStringIntersects.Intersects(this, g));
 }
コード例 #2
0
        /// <summary>
        /// Computes the intersects predicate between a <see cref="PreparedLineString"/>
        /// and a <see cref="Geometry"/>.
        /// </summary>
        /// <param name="prep">The prepared linestring</param>
        /// <param name="geom">A test geometry</param>
        /// <returns>true if the linestring intersects the geometry</returns>
        public static bool Intersects(PreparedLineString prep, Geometry geom)
        {
            var op = new PreparedLineStringIntersects(prep);

            return(op.Intersects(geom));
        }