///<summary> /// Creates an instance of this operation. ///</summary> /// <param name="prepPoly">The prepared polygon</param> public PreparedPolygonIntersects(PreparedPolygon prepPoly) : base(prepPoly) { }
///<summary> /// Computes the <c>Covers</c> spatial relationship predicate for a <see cref="PreparedPolygon"/> relative to all other <see cref="IGeometry"/> classes. ///</summary> /// <param name="prep">The prepared polygon</param> /// <param name="geom">A test geometry</param> /// <returns>true if the polygon covers the geometry</returns> public static bool Covers(PreparedPolygon prep, IGeometry geom) { PreparedPolygonCovers polyInt = new PreparedPolygonCovers(prep); return polyInt.Covers(geom); }
///<summary> /// Creates an instance of this operation. /// </summary> /// <param name="prepPoly">The PreparedPolygon to evaluate</param> protected AbstractPreparedPolygonContains(PreparedPolygon prepPoly) : base(prepPoly) { }
///<summary> /// Computes the intersects predicate between a <see cref="PreparedPolygon"/> /// and a <see cref="IGeometry"/>. ///</summary> /// <param name="prep">The prepared polygon</param> /// <param name="geom">A test geometry</param> /// <returns>true if the polygon intersects the geometry</returns> public static bool Intersects(PreparedPolygon prep, IGeometry geom) { var polyInt = new PreparedPolygonIntersects(prep); return(polyInt.Intersects(geom)); }
///<summary> /// Creates an instance of this operation. ///</summary> /// <param name="prepPoly">the PreparedPolygon to evaluate</param> public PreparedPolygonContains(PreparedPolygon prepPoly) : base(prepPoly) { }
///<summary> /// Creates an instance of this operation. ///</summary> /// <param name="prepPoly">The prepared polygon</param> public PreparedPolygonIntersects(PreparedPolygon prepPoly) : base(prepPoly) { }
///<summary> /// Creates an instance of this operation. ///</summary> /// <param name="prepPoly">the PreparedPolygon to evaluate</param> public PreparedPolygonContains(PreparedPolygon prepPoly) : base(prepPoly) { }
/// <summary> /// Creates an instance of this operation. /// </summary> /// <param name="prepPoly">the PreparedPolygon to evaluate</param> protected PreparedPolygonPredicate(PreparedPolygon prepPoly) { this.prepPoly = prepPoly; _targetPointLocator = prepPoly.PointLocator; }
///<summary> /// Creates an instance of this operation. ///</summary> /// <param name="prepPoly">The target PreparedPolygon</param> public PreparedPolygonLineIntersection(PreparedPolygon prepPoly) { _prepPoly = prepPoly; }
///<summary> /// Computes the intersection between a <see cref="PreparedLineString"/> and a <see cref="IGeometry"/>. ///</summary> /// <param name="prep">The prepared linestring</param> /// <param name="geom">A geometry</param> /// <returns>The intersection geometry</returns> public static IGeometry Intersection(PreparedPolygon prep, IGeometry geom) { PreparedPolygonLineIntersection op = new PreparedPolygonLineIntersection(prep); return op.Intersection(geom); }
///<summary> /// Creates an instance of this operation. ///</summary> /// <param name="prepPoly">The PreparedPolygon to evaluate</param> public PreparedPolygonCovers(PreparedPolygon prepPoly) : base(prepPoly) { RequireSomePointInInterior = false; }
///<summary> /// Computes the <c>Covers</c> spatial relationship predicate for a <see cref="PreparedPolygon"/> relative to all other <see cref="IGeometry"/> classes. ///</summary> /// <param name="prep">The prepared polygon</param> /// <param name="geom">A test geometry</param> /// <returns>true if the polygon covers the geometry</returns> public static bool Covers(PreparedPolygon prep, IGeometry geom) { PreparedPolygonCovers polyInt = new PreparedPolygonCovers(prep); return(polyInt.Covers(geom)); }
///<summary> /// Creates an instance of this operation. ///</summary> /// <param name="prepPoly">the PreparedPolygon to evaluate</param> protected PreparedPolygonPredicate(PreparedPolygon prepPoly) { this.prepPoly = prepPoly; _targetPointLocator = prepPoly.PointLocator; }
///<summary> /// Creates an instance of this operation. ///</summary> /// <param name="prepPoly">The PreparedPolygon to evaluate</param> public PreparedPolygonCovers(PreparedPolygon prepPoly) : base(prepPoly) { RequireSomePointInInterior = false; }
///<summary>Computes the <c>containsProperly</c> predicate between a <see cref="PreparedPolygon"/> and a <see cref="IGeometry"/>. ///</summary> /// <param name="prep">The prepared polygon</param> ///<param name="geom">A test geometry</param> /// <returns>true if the polygon properly contains the geometry</returns> public static bool ContainsProperly(PreparedPolygon prep, IGeometry geom) { PreparedPolygonContainsProperly polyInt = new PreparedPolygonContainsProperly(prep); return polyInt.ContainsProperly(geom); }
///<summary> /// Creates an instance of this operation. ///</summary> /// <param name="prepPoly">The PreparedPolygon to evaluate</param> public PreparedPolygonContainsProperly(PreparedPolygon prepPoly) : base(prepPoly) { }
///<summary> /// Creates an instance of this operation. ///</summary> /// <param name="prepPoly">The PreparedPolygon to evaluate</param> public PreparedPolygonContainsProperly(PreparedPolygon prepPoly) : base(prepPoly) { }
///<summary> /// Computes the <c>contains</c> spatial relationship predicate between a <see cref="PreparedPolygon"/> and a <see cref="IGeometry"/>. ///</summary> /// <param name="prep">The prepared polygon</param> /// <param name="geom">A test geometry</param> /// <returns>true if the polygon contains the geometry</returns> public static bool Contains(PreparedPolygon prep, IGeometry geom) { var polyInt = new PreparedPolygonContains(prep); return(polyInt.Contains(geom)); }
///<summary> /// Computes the intersection between a <see cref="PreparedLineString"/> and a <see cref="IGeometry"/>. ///</summary> /// <param name="prep">The prepared linestring</param> /// <param name="geom">A geometry</param> /// <returns>The intersection geometry</returns> public static IGeometry Intersection(PreparedPolygon prep, IGeometry geom) { PreparedPolygonLineIntersection op = new PreparedPolygonLineIntersection(prep); return(op.Intersection(geom)); }
///<summary> /// Computes the intersects predicate between a <see cref="PreparedPolygon"/> /// and a <see cref="IGeometry"/>. ///</summary> /// <param name="prep">The prepared polygon</param> /// <param name="geom">A test geometry</param> /// <returns>true if the polygon intersects the geometry</returns> public static bool Intersects(PreparedPolygon prep, IGeometry geom) { var polyInt = new PreparedPolygonIntersects(prep); return polyInt.Intersects(geom); }
///<summary> /// Creates an instance of this operation. ///</summary> /// <param name="prepPoly">The target PreparedPolygon</param> public PreparedPolygonLineIntersection(PreparedPolygon prepPoly) { _prepPoly = prepPoly; }
///<summary> /// Creates an instance of this operation. /// </summary> /// <param name="prepPoly">The PreparedPolygon to evaluate</param> protected AbstractPreparedPolygonContains(PreparedPolygon prepPoly) : base(prepPoly) { }
///<summary>Computes the <c>containsProperly</c> predicate between a <see cref="PreparedPolygon"/> and a <see cref="IGeometry"/>. ///</summary> /// <param name="prep">The prepared polygon</param> ///<param name="geom">A test geometry</param> /// <returns>true if the polygon properly contains the geometry</returns> public static bool ContainsProperly(PreparedPolygon prep, IGeometry geom) { PreparedPolygonContainsProperly polyInt = new PreparedPolygonContainsProperly(prep); return(polyInt.ContainsProperly(geom)); }