Skip to content
Snippets Groups Projects
Commit ada7d454 authored by Julien Malik's avatar Julien Malik
Browse files

BUG: OGRIOHelper needs to create Memory datasource, so OGRRegisterAll need to...

BUG: OGRIOHelper needs to create Memory datasource, so OGRRegisterAll need to be called. this fixes test otbVectorDataToLabelImageFilterWithoutReader
parent d675bea0
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,7 @@ ADD_LIBRARY(OTBIO ${OTBIO_SRCS})
# )
TARGET_LINK_LIBRARIES (OTBIO ${TIFF_LIBRARY} ${GEOTIFF_LIBRARY} ${GDAL_LIBRARY} ${OGR_LIBRARY} ${JPEG_LIBRARY} ${OPENTHREADS_LIBRARY} OTBCommon OTBBasicFilters OTBCurlAdapters)
TARGET_LINK_LIBRARIES (OTBIO ITKIO ITKCommon ${LIBKML_LIBRARIES} ${TINYXML_LIBRARIES} ${LIBLAS_LIBRARIES})
TARGET_LINK_LIBRARIES (OTBIO OTBOGRAdapters)
IF( OTB_USE_JPEG2000 )
TARGET_LINK_LIBRARIES (OTBIO otbopenjpeg)
......
......@@ -18,7 +18,7 @@
#include "otbOGRIOHelper.h"
#include "ogrsf_frmts.h"
#include "otbOGR.h"
#include "itkTimeProbe.h"
namespace otb
......@@ -165,7 +165,9 @@ OGRIOHelper
OGRIOHelper
::OGRIOHelper()
{}
{
otb::ogr::Drivers::Init();
}
OGRIOHelper
......
......@@ -27,12 +27,6 @@ ADD_TEST(NAME FA-0000495-StreamingImageFileWriterProgressReporting
${TEMP}/FA-0000495-output1.tif
${TEMP}/FA-0000495-output2.tif)
ADD_TEST(NAME otbVectorDataToLabelImageFilterWithoutReader
COMMAND ${CXX_TEST_PATH}/otbVectorDataToLabelImageFilterWithoutReader
${TEMP}/rasterizedVectorData.tif)
# ------- Vectorization issue -----------------------------------
# http://bugs.orfeo-toolbox.org/view.php?id=94
ADD_TEST(FA-0000094-fe-PolygonsVectorization ${CXX_TEST_PATH}/0000094-PolygonsVectorization
......
......@@ -267,3 +267,9 @@ ENDIF(BUILD_APPLICATIONS)
ADD_TEST(FA-0000437-WriteImageCentOS ${CXX_TEST_PATH}/0000437-WriteImageCentOS
${OTB_DATA_ROOT}/Baseline/OTB/Fa/FA-0000437-WriteImageCentOSInput.tif
${TEMP}/FA-0000437-WriteImageCentOSOutput.tif)
ADD_TEST(NAME otbVectorDataToLabelImageFilterWithoutReader
COMMAND ${CXX_TEST_PATH}/otbVectorDataToLabelImageFilterWithoutReader
${TEMP}/rasterizedVectorData.tif)
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