Commit e3272cad authored by Cresson Remi's avatar Cresson Remi

REFAC: use otbImageFunctor

parent fc8778f5
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include "itkProcessObject.h" #include "itkProcessObject.h"
#include "otbStreamingManager.h" #include "otbStreamingManager.h"
#include "otbLabelImageToVectorDataFilter.h" #include "otbLabelImageToVectorDataFilter.h"
#include "itkCommand.h"
namespace otb namespace otb
{ {
......
...@@ -124,19 +124,7 @@ protected: ...@@ -124,19 +124,7 @@ protected:
virtual void GenerateData(); virtual void GenerateData();
VectorDataToLabelImageCustomFilter(); VectorDataToLabelImageCustomFilter();
virtual ~VectorDataToLabelImageCustomFilter() virtual ~VectorDataToLabelImageCustomFilter() override {}
{
// Destroy the geometries stored
for (unsigned int idx = 0; idx < m_SrcDataSetGeometries.size(); ++idx)
{
OGR_G_DestroyGeometry(m_SrcDataSetGeometries[idx]);
}
if (m_OGRDataSourcePointer != NULL)
{
OGRDataSource::DestroyDataSource(m_OGRDataSourcePointer);
}
}
virtual void GenerateOutputInformation(); virtual void GenerateOutputInformation();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment