/// <summary>
 ///
 /// </summary>
 /// <param name="filter"></param>
 public override void Apply(ICoordinateFilter filter)
 {
     for (int i = 0; i < _points.Count; i++)
     {
         filter.Filter(_points.GetCoordinate(i));
     }
 }
Example #2
0
 /// <summary>
 /// Applys a given ICoordinateFilter to this LineString
 /// </summary>
 /// <param name="filter"></param>
 public override void Apply(ICoordinateFilter filter)
 {
     foreach (Coordinate c in _points)
     {
         filter.Filter(c);
     }
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="filter"></param>
 public override void Apply(ICoordinateFilter filter)
 {
     for (int i = 0; i < _geometries.Length; i++)
     {
         _geometries[i].Apply(filter);
     }
 }
Example #4
0
 /// <inheritdoc cref="Geometry.Apply(ICoordinateFilter)"/>
 public override void Apply(ICoordinateFilter filter)
 {
     _shell.Apply(filter);
     for (int i = 0; i < _holes.Length; i++)
     {
         _holes[i].Apply(filter);
     }
 }
Example #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="filter"></param>
 public override void Apply(ICoordinateFilter filter)
 {
     if (IsEmpty)
     {
         return;
     }
     filter.Filter(Coordinate);
 }
Example #6
0
 ///<summary>
 ///  Performs an operation with or on this Geometry's coordinates.
 ///</summary>
 ///<param name="filter">The filter to apply to this Geometry's coordinates.</param>
 public override void Apply(ICoordinateFilter filter)
 {
     if (filter == null)
     {
         throw new ArgumentNullException("filter");
     }
     foreach (Coordinate coord in _points)
     {
         filter.Filter(coord);
     }
 }
 ///<summary>
 ///  Performs an operation with or on this Geometry's coordinates.
 ///</summary>
 ///<param name="filter">The filter to apply to this Geometry's coordinates</param>
 public override void Apply(ICoordinateFilter filter)
 {
     if (filter == null)
     {
         throw new ArgumentException("Filters cannot be null");
     }
     foreach (Geometry geom in _geometries)
     {
         geom.Apply(filter);
     }
 }
Example #8
0
 ///<summary>
 ///  Performs an operation with or on this Geometry's coordinates.
 ///</summary>
 ///<param name="filter">The filter to apply to this Geometry's coordinates.</param>
 public override void Apply(ICoordinateFilter filter)
 {
     if (filter == null)
     {
         throw new ArgumentNullException("filter");
     }
     _shell.Apply(filter);
     for (int i = 0; i < _holes.Length; i++)
     {
         _holes[i].Apply(filter);
     }
 }
Example #9
0
 ///<summary>
 ///  Performs an operation with or on this Geometry's coordinates.
 ///</summary>
 ///<param name="filter">The filter to apply to this Geometry's coordinates</param>
 public override void Apply(ICoordinateFilter filter)
 {
     if (IsEmpty())
     {
         return;
     }
     if (filter == null)
     {
         throw new ArgumentNullException("filter");
     }
     filter.Filter(_coordinate);
 }
Example #10
0
		///<summary>
		///  Performs an operation with or on this Geometry's coordinates.  
		///</summary>
		///<param name="filter">The filter to apply to this Geometry's coordinates</param>
		public override void Apply(ICoordinateFilter filter)
		{
			if ( IsEmpty() ) return;
			if (filter==null)
			{
				throw new ArgumentNullException("filter");
			}
			filter.Filter( _coordinate );
		}
Example #11
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="filter"></param>
 public override void Apply(ICoordinateFilter filter) 
 {
     for (int i = 0; i < points.Count; i++)
         filter.Filter(points.GetCoordinate(i));
 }
Example #12
0
		///<summary>
		///  Performs an operation with or on this Geometry's coordinates.  
		///</summary>
		///<param name="filter">The filter to apply to this Geometry's coordinates.</param>
		public override void Apply(ICoordinateFilter filter)
		{
			if (filter==null)
			{
				throw new ArgumentNullException("filter");
			}
			_shell.Apply(filter);
			for(int i = 0; i < _holes.Length; i++)
			{
				_holes[i].Apply(filter);
			}
		}
Example #13
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="filter"></param>
 public override void Apply(ICoordinateFilter filter)
 {
     shell.Apply(filter);
     for (int i = 0; i < holes.Length; i++) 
         holes[i].Apply(filter);            
 }
Example #14
0
 public override void Apply(ICoordinateFilter filter) => Linearize().Apply(filter);
Example #15
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="filter"></param>
 public override void Apply(ICoordinateFilter filter) 
 {
     if (IsEmpty) 
         return;             
     filter.Filter((Coordinate) Coordinate);
 }
Example #16
0
 /// <summary>
 /// Performs an operation with or on this <c>Geometry</c>'s
 /// coordinates. If you are using this method to modify the point, be sure
 /// to call GeometryChanged() afterwards. Notice that you cannot use this
 /// method to
 /// modify this Geometry if its underlying CoordinateSequence's Get method
 /// returns a copy of the Coordinate, rather than the actual Coordinate stored
 /// (if it even stores Coordinates at all).
 /// </summary>
 /// <param name="filter">The filter to apply to this <c>Geometry</c>'s coordinates</param>
 public abstract void Apply(ICoordinateFilter filter);
 /// <summary>
 ///
 /// </summary>
 /// <param name="filter"></param>
 public override void Apply(ICoordinateFilter filter)
 {
     for (int i = 0; i < _geometries.Length; i++)
         _geometries[i].Apply(filter);
 }
		///<summary>
		///  Performs an operation with or on this Geometry's coordinates.  
		///</summary>
		///<param name="filter">The filter to apply to this Geometry's coordinates</param>
		public override void Apply(ICoordinateFilter filter)
		{
			if(filter == null)
			{
				throw new ArgumentException("Filters cannot be null");
			}
			foreach(Geometry geom in _geometries)
			{
				geom.Apply(filter);
			}
		}
Example #19
0
		///<summary>
		///  Performs an operation with or on this Geometry's coordinates.  
		///</summary>
		///<param name="filter">The filter to apply to this Geometry's coordinates</param>
		public abstract void Apply(ICoordinateFilter filter);
Example #20
0
 /// <summary>
 /// Applys a given ICoordinateFilter to this LineString
 /// </summary>
 /// <param name="filter"></param>
 public override void Apply(ICoordinateFilter filter)
 {
     foreach (Coordinate c in _points)
     {
         filter.Filter(c);
     }
 }
Example #21
0
		///<summary>
		///  Performs an operation with or on this Geometry's coordinates.  
		///</summary>
		///<param name="filter">The filter to apply to this Geometry's coordinates.</param>
		public override void Apply(ICoordinateFilter filter)
		{
			if (filter==null)
			{
				throw new ArgumentNullException("filter");
			}
			foreach(Coordinate coord in _points)
			{
				filter.Filter( coord );
			}
		}