Example #1
0
 public override void Apply(ICoordinateSequenceFilter filter)
 {
     if (_points.Count == 0)
         return;
     for (int i = 0; i < _points.Count; i++)
     {
         filter.Filter(_points, i);
         if (filter.Done)
             break;
     }
     if (filter.GeometryChanged)
         GeometryChanged();
 }
Example #2
0
 public override void Apply(ICoordinateSequenceFilter filter)
 {
     if (IsEmpty)
         return;
     filter.Filter(_coordinates, 0);
     if (filter.GeometryChanged)
         GeometryChanged();
 }
Example #3
0
 ///<summary>
 /// Performs an operation on the coordinates in this <c>Geometry</c>'s <see cref="ICoordinateSequence"/>s.
 /// </summary>
 /// <remarks>
 /// If the filter reports that a coordinate value has been changed, 
 /// <see cref="GeometryChanged"/> will be called automatically.
 ///</remarks>
 /// <param name="filter">The filter to apply</param>
 public abstract void Apply(ICoordinateSequenceFilter filter);
 public override void Apply(ICoordinateSequenceFilter filter)
 {
     if (_geometries.Length == 0)
         return;
     for (int i = 0; i < _geometries.Length; i++)
     {
         ((Geometry)_geometries[i]).Apply(filter);
         if (filter.Done)
         {
             break;
         }
     }
     if (filter.GeometryChanged)
         GeometryChanged();
 }
Example #5
0
 public override void Apply(ICoordinateSequenceFilter filter)
 {
     ((LinearRing)_shell).Apply(filter);
     if (!filter.Done)
     {
         for (int i = 0; i < _holes.Length; i++)
         {
             ((LinearRing)_holes[i]).Apply(filter);
             if (filter.Done)
                 break;
         }
     }
     if (filter.GeometryChanged)
         GeometryChanged();
 }