Ejemplo n.º 1
0
        /// <inheritdoc />
        public override DataTable Clone()
        {
            FeatureTable cln = (FeatureTable)base.Clone();

            cln.InitVars();
            return(cln);
        }
Ejemplo n.º 2
0
        /// <inheritdoc/>
        public DataTable GetSchemaTable()
        {
            // FeatureTable automatically has a long FID and binary Geometry.
            FeatureTable result = new FeatureTable();

            foreach (Field field in _attributeTable.Columns)
            {
                if (Fields != null && Fields.Length > 0)
                {
                    // only include desired fields in our output schema.
                    if (!Fields.Contains(field.ColumnName))
                    {
                        continue;
                    }
                }
                result.Columns.Add(field.ColumnName, field.DataType);
            }
            return(result);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FeatureRow"/> class.
 /// </summary>
 /// <param name="rb">The datarow builder.</param>
 internal FeatureRow(DataRowBuilder rb)
     : base(rb)
 {
     _featureTable = (FeatureTable)Table;
 }