MCPcopy Create free account
hub / github.com/Kitware/VTK / GetFeatureCount

Method GetFeatureCount

IO/GDAL/vtkGDALVectorReader.cxx:477–492  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

475
476//------------------------------------------------------------------------------
477int 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//------------------------------------------------------------------------------
495int vtkGDALVectorReader::GetActiveLayerType()

Callers 1

Calls 2

InitializeInternalMethod · 0.95
GetLayerMethod · 0.80

Tested by

no test coverage detected