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

Method InitializeInternal

IO/GDAL/vtkGDALVectorReader.cxx:651–676  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

649
650//------------------------------------------------------------------------------
651int vtkGDALVectorReader::InitializeInternal()
652{
653 if (!this->FileName)
654 {
655 vtkErrorMacro(<< "FileName not set or empty:");
656 return VTK_ERROR;
657 }
658
659 if (!this->Implementation)
660 {
661 this->Implementation =
662 new vtkGDALVectorReader::Internal(this->FileName, this->AppendFeatures, this->AddFeatureIds);
663 if (!this->Implementation || this->Implementation->LastError)
664 {
665 if (this->Implementation)
666 {
667 vtkErrorMacro(<< this->Implementation->LastError);
668 delete this->Implementation;
669 this->Implementation = nullptr;
670 }
671 return VTK_ERROR;
672 }
673 }
674
675 return VTK_OK;
676}
677VTK_ABI_NAMESPACE_END

Callers 4

GetNumberOfLayersMethod · 0.95
GetLayerTypeMethod · 0.95
GetFeatureCountMethod · 0.95
RequestDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected