Ejemplo n.º 1
0
 public ILineString CreateLineString(IEnumerable<ICoordinate> coordinates)
 {
     LineString l = new LineString(coordinates);
     l.Factory = this;
     return l;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Checks whether this instance is spatially equal to the LineString 'l'
        /// </summary>
        /// <param name="l">LineString to compare to</param>
        /// <returns>true of the objects are spatially equal</returns>
        public Boolean Equals(LineString l)
        {
            if (ReferenceEquals(l, null))
            {
                return false;
            }
            if (l.PointCount != PointCount)
            {
                return false;
            }
            for (Int32 i = 0; i < l.PointCount; i++)
            {
                if (!l._vertices[i].Equals(_vertices[i]))
                {
                    return false;
                }
            }

            return true;
        }
Ejemplo n.º 3
0
 public ILineString CreateLineString()
 {
     LineString l = new LineString();
     l.Factory = this;
     return l;
 }