Skip to content
Snippets Groups Projects
Commit 0cce25a4 authored by Julien Michel's avatar Julien Michel
Browse files

ENH: These classes need to use the version proxy as well

parent e7c0579c
No related branches found
No related tags found
No related merge requests found
......@@ -27,10 +27,8 @@
#include "gdal.h"
#include "gdal_alg.h"
#include <ogrsf_frmts.h>
#include "ogr_api.h"
#include "ogr_srs_api.h"
#include "otbOGRVersionProxy.h"
namespace otb {
......@@ -142,7 +140,7 @@ protected:
{
if (m_OGRDataSourcePointer != NULL)
{
OGRDataSource::DestroyDataSource(m_OGRDataSourcePointer);
ogr::version_proxy::Close(m_OGRDataSourcePointer);
}
}
......@@ -154,7 +152,7 @@ private:
RasterizeVectorDataFilter(const Self&); //purposely not implemented
void operator=(const Self&); //purposely not implemented
OGRDataSource* m_OGRDataSourcePointer;
ogr::version_proxy::GDALDatasetType * m_OGRDataSourcePointer;
// Vector Of LayersH
std::vector< OGRLayerH > m_SrcDataSetLayers;
......
......@@ -25,8 +25,7 @@
#include "otbVectorData.h"
#include "gdal.h"
#include "ogr_api.h"
#include <ogrsf_frmts.h>
#include "otbOGRVersionProxy.h"
namespace otb {
......@@ -134,7 +133,7 @@ protected:
if (m_OGRDataSourcePointer != NULL)
{
OGRDataSource::DestroyDataSource(m_OGRDataSourcePointer);
ogr::version_proxy::Close(m_OGRDataSourcePointer);
}
}
......@@ -146,7 +145,7 @@ private:
VectorDataToLabelImageFilter(const Self&); //purposely not implemented
void operator=(const Self&); //purposely not implemented
OGRDataSource* m_OGRDataSourcePointer;
ogr::version_proxy::GDALDatasetType * m_OGRDataSourcePointer;
// Vector Of OGRGeometyH
std::vector< OGRGeometryH > m_SrcDataSetGeometries;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment