------------------------------------------------------------------------------
| 475 | |
| 476 | //------------------------------------------------------------------------------ |
| 477 | int vtkGDALVectorReader::GetFeatureCount(int layerIndex) |
| 478 | { |
| 479 | if (this->InitializeInternal() == VTK_ERROR) |
| 480 | { |
| 481 | return -1; |
| 482 | } |
| 483 | |
| 484 | OGRLayer* layer = this->Implementation->Source->GetLayer(layerIndex); |
| 485 | |
| 486 | if (!layer) |
| 487 | { |
| 488 | return -1; |
| 489 | } |
| 490 | |
| 491 | return layer->GetFeatureCount(); |
| 492 | } |
| 493 | |
| 494 | //------------------------------------------------------------------------------ |
| 495 | int vtkGDALVectorReader::GetActiveLayerType() |
no test coverage detected