コード例 #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;
            }
        }
コード例 #2
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;
     }
 }