| 397 | } |
| 398 | |
| 399 | void OGRTable::FillStringAndIntegerColIdMap(std::vector<int>& col_map) |
| 400 | { |
| 401 | std::vector<int> t; |
| 402 | FillColIdMap(t); |
| 403 | int numeric_cnt = 0; |
| 404 | for (int i=0, iend=t.size(); i<iend; i++) { |
| 405 | if (GetColType(t[i]) == GdaConst::long64_type || |
| 406 | GetColType(t[i]) == GdaConst::string_type) { |
| 407 | numeric_cnt++; |
| 408 | } |
| 409 | } |
| 410 | col_map.resize(numeric_cnt); |
| 411 | int cnt=0; |
| 412 | for (int i=0, iend=t.size(); i<iend; i++) { |
| 413 | if (GetColType(t[i]) == GdaConst::long64_type || |
| 414 | GetColType(t[i]) == GdaConst::string_type) { |
| 415 | col_map[cnt++] = t[i]; |
| 416 | } |
| 417 | } |
| 418 | } |
| 419 | |
| 420 | void OGRTable::FillStringColIdMap(std::vector<int>& col_map) |
| 421 | { |
no test coverage detected