Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="geom"></param>
        private void ComputeSegmentIntersection(IGeometry geom)
        {
            // check segment intersection
            // get all lines from geom (e.g. if it's a multi-ring polygon)
            IList lines = LinearComponentExtracter.GetLines(geom);
            SegmentIntersectionTester si = new SegmentIntersectionTester();
            bool hasIntersection         = si.HasIntersectionWithLineStrings(rectSeq, lines);

            if (hasIntersection)
            {
                intersects = true;
                return;
            }
        }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="geom"></param>
 private void ComputeSegmentIntersection(IGeometry geom)
 {
     // check segment intersection
     // get all lines from geom (e.g. if it's a multi-ring polygon)
     IList lines = LinearComponentExtracter.GetLines(geom);
     SegmentIntersectionTester si = new SegmentIntersectionTester();
     bool hasIntersection = si.HasIntersectionWithLineStrings(rectSeq, lines);
     if (hasIntersection)
     {
         intersects = true;
         return;
     }
 }