Ejemplo n.º 1
0
 /// <summary>
 /// Creates an instance of this operation.
 /// </summary>
 /// <param name="prepLine">The target PreparedLineString</param>
 public PreparedLineStringIntersects(PreparedLineString prepLine)
 {
     this.prepLine = prepLine;
 }
 ///<summary>
 /// Creates an instance of this operation.
 /// </summary>
 /// <param name="prepLine">The target PreparedLineString</param>
 public PreparedLineStringIntersects(PreparedLineString prepLine)
 {
     this.prepLine = prepLine;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Computes the intersects predicate between a <see cref="PreparedLineString"/>
        /// and a <see cref="IGeometry"/>.
        /// </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, IGeometry geom)
        {
            var op = new PreparedLineStringIntersects(prep);

            return(op.Intersects(geom));
        }
 ///<summary>
 /// Computes the intersects predicate between a <see cref="PreparedLineString"/>
 /// and a <see cref="IGeometry"/>.
 ///</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, IGeometry geom)
 {
     PreparedLineStringIntersects op = new PreparedLineStringIntersects(prep);
     return op.Intersects(geom);
 }