------------------------------------------------------------------------------
| 649 | |
| 650 | //------------------------------------------------------------------------------ |
| 651 | int 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 | } |
| 677 | VTK_ABI_NAMESPACE_END |
no outgoing calls
no test coverage detected