Exemplo n.º 1
0
        private static DataTable BuildFeatureClassErrorTable(string tblName, DataTable mainTbl)
        {
            DataTable _tbl = new DataTable(tblName);
            DataTableHelper _dtHelper = new DataTableHelper(ref _tbl);

            string[] _colNames = { "fClass" };
            string[] _colTypes = { "String" };

            _tbl = _dtHelper.BuildTable(tblName, _colNames, _colTypes);
            _tbl = _dtHelper.SelectDistinct("DistinctFeatureClassList", mainTbl, "fClass");
            return _tbl;
        }
Exemplo n.º 2
0
        private static DataTable BuildErrorTable(string tblName)
        {
            DataTable _tbl = new DataTable(tblName);
            DataTableHelper _dtHelper = new DataTableHelper(ref _tbl);

            string[] _colNames = { "objId", "fId", "fClass", "x", "y" };
            string[] _colTypes = { "Int32", "Int32", "String", "Double", "Double" };

            _tbl = _dtHelper.BuildTable(tblName, _colNames, _colTypes);

            // Setting the Primary Key when there are
            // three columns in the Primary Key.

            DataColumn[] colPk = new DataColumn[3];
            colPk[0] = _tbl.Columns["objId"];
            colPk[1] = _tbl.Columns["fClass"];
            colPk[2] = _tbl.Columns["fId"];
            _tbl.PrimaryKey = colPk;

            return _tbl;
        }