/// <summary>
 ///
 /// </summary>
 private void BuildIndex()
 {
     sweepLine = new SweepLineIndex();
     foreach (var ring in rings)
     {
         var env      = ring.EnvelopeInternal;
         var sweepInt = new SweepLineInterval(env.MinX, env.MaxX, ring);
         sweepLine.Add(sweepInt);
     }
 }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 private void BuildIndex()
 {
     sweepLine = new SweepLineIndex();
     for (int i = 0; i < rings.Count; i++)
     {
         ILinearRing       ring     = (ILinearRing)rings[i];
         Envelope          env      = (Envelope)ring.EnvelopeInternal;
         SweepLineInterval sweepInt = new SweepLineInterval(env.MinX, env.MaxX, ring);
         sweepLine.Add(sweepInt);
     }
 }
 /// <summary>
 ///
 /// </summary>
 private void BuildIndex()
 {
     _sweepLine = new SweepLineIndex();
     for (int i = 0; i < _rings.Count; i++)
     {
         LinearRing        ring     = (LinearRing)_rings[i];
         IEnvelope         env      = ring.EnvelopeInternal;
         SweepLineInterval sweepInt = new SweepLineInterval(env.Minimum.X, env.Maximum.X, ring);
         _sweepLine.Add(sweepInt);
     }
 }
        private void BuildIndex()
        {
            sweepLine = new SweepLineIndex();

            int nCount = rings.Count;

            for (int i = 0; i < nCount; i++)
            {
                LinearRing ring = (LinearRing)rings[i];
                Envelope   env  = ring.Bounds;

                SweepLineInterval sweepInt = new SweepLineInterval(env.MinX, env.MaxX, ring);
                sweepLine.Add(sweepInt);
            }
        }