///<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>
 /// Creates an instance of this operation.
 /// </summary>
 /// <param name="prepPoly">The PreparedPolygon to evaluate</param>
 protected AbstractPreparedPolygonContains(PreparedPolygon prepPoly)
     : base(prepPoly)
 {
 }
Esempio n. 3
0
 ///<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>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));
        }
Esempio n. 5
0
        ///<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));
        }
Esempio n. 6
0
 ///<summary>
 /// Creates an instance of this operation.
 ///</summary>
 /// <param name="prepPoly">the PreparedPolygon to evaluate</param>
 public PreparedPolygonContains(PreparedPolygon prepPoly)
     : base(prepPoly)
 {
 }
Esempio n. 7
0
 ///<summary>
 /// Creates an instance of this operation.
 ///</summary>
 /// <param name="prepPoly">The prepared polygon</param>
 public PreparedPolygonIntersects(PreparedPolygon prepPoly) :
     base(prepPoly)
 {
 }
Esempio n. 8
0
        ///<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));
        }
Esempio n. 9
0
 ///<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;
 }