VRTSource *VRTParseFilterSources( CPLXMLNode *psChild, const char *pszVRTPath ) { VRTSource *poSrc; if( EQUAL(psChild->pszValue,"KernelFilteredSource") ) { poSrc = new VRTKernelFilteredSource(); if( poSrc->XMLInit( psChild, pszVRTPath ) == CE_None ) return poSrc; else delete poSrc; } return NULL; }
VRTSource *VRTParseFilterSources( CPLXMLNode *psChild, const char *pszVRTPath, void* pUniqueHandle, std::map<CPLString, GDALDataset*>& oMapSharedSources ) { if( EQUAL(psChild->pszValue, "KernelFilteredSource") ) { VRTSource *poSrc = new VRTKernelFilteredSource(); if( poSrc->XMLInit( psChild, pszVRTPath, pUniqueHandle, oMapSharedSources ) == CE_None ) return poSrc; delete poSrc; } return nullptr; }