コード例 #1
0
 public override bool ContainsProperly(Geometry g)
 {
     // short-circuit test
     if (!EnvelopeCovers(g))
     {
         return(false);
     }
     return(PreparedPolygonContainsProperly.ContainsProperly(this, g));
 }
コード例 #2
0
        /// <summary>Computes the <c>containsProperly</c> predicate between a <see cref="PreparedPolygon"/> and a <see cref="Geometry"/>.
        /// </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, Geometry geom)
        {
            var polyInt = new PreparedPolygonContainsProperly(prep);

            return(polyInt.ContainsProperly(geom));
        }