Ejemplo n.º 1
0
 /// <summary>
 /// Initialize an <c>Envelope</c> for a region defined by a single Coordinate.
 /// </summary>
 /// <param name="p">The Coordinate.</param>
 public virtual void Init(Coordinate p)
 {
     if (p == null)
     {
         Init();
         return;
     }
     _min = p.Copy();
     _max = p.Copy();
     OnEnvelopeChanged();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a copy of this Point with the same factory
        /// specifications and values.
        /// </summary>
        protected override void OnCopy(Geometry copy)
        {
            base.OnCopy(copy);
            Point p = copy as Point;

            if (p != null)
            {
                p.SetCoordinate(Coordinate.Copy());
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates an <c>Envelope</c> for a region defined by a single Coordinate.
 /// </summary>
 /// <param name="p">The Coordinate.</param>
 public Envelope(Coordinate p)
 {
     DoInit(p, p.Copy());
 }