Exemplo n.º 1
0
        /// <summary>
        /// Gets the feature at the specified Object ID
        /// </summary>
        /// <param name="oid"></param>
        /// <returns></returns>
        internal IFeature GetFeature(int oid)
        {
            if (!_isOpen)
            {
                Open();
            }

            if (oid >= _NumberOfRecords)
            {
                throw (new ArgumentException("Invalid DataRow requested at index " + oid.ToString()));
            }

            var feature = new ShapeFileFeature {
                AttributeReader = this, Oid = oid
            };

            return(feature);
        }
Exemplo n.º 2
0
 protected bool Equals(ShapeFileFeature other)
 {
     return(Id == other.Id && Geometry.EqualsExact(other.Geometry));
 }