| 418 | } |
| 419 | |
| 420 | void OGRTable::FillStringColIdMap(std::vector<int>& col_map) |
| 421 | { |
| 422 | std::vector<int> t; |
| 423 | FillColIdMap(t); |
| 424 | int string_cnt = 0; |
| 425 | for (int i=0, iend=t.size(); i<iend; i++) { |
| 426 | if (GetColType(t[i]) == GdaConst::string_type) |
| 427 | string_cnt++; |
| 428 | } |
| 429 | col_map.resize(string_cnt); |
| 430 | int cnt=0; |
| 431 | for (int i=0, iend=t.size(); i<iend; i++) { |
| 432 | if (GetColType(t[i]) == GdaConst::string_type) |
| 433 | col_map[cnt++] = t[i]; |
| 434 | } |
| 435 | } |
| 436 | |
| 437 | void OGRTable::FillDateTimeColIdMap(std::vector<int>& col_map) |
| 438 | { |
no test coverage detected