Commit f6759712 authored by Julien Michel's avatar Julien Michel

TEST: Updating tests

parent 992be04c
...@@ -202,7 +202,7 @@ OGRDataSourceToLabelImageFilter<TOutputImage>::GenerateData() ...@@ -202,7 +202,7 @@ OGRDataSourceToLabelImageFilter<TOutputImage>::GenerateData()
for(unsigned int band = 0; band < nbBands;++band) for(unsigned int band = 0; band < nbBands;++band)
{ {
GDALRasterBandH hBand = GDALGetRasterBand(dataset, band + 1); GDALRasterBandH hBand = GDALGetRasterBand(dataset, band + 1);
GDALSetRasterNoDataValue(hBand, m_BackgroundValue); GDALFillRaster(hBand, m_BackgroundValue, 0);
} }
// add the geoTransform to the dataset // add the geoTransform to the dataset
......
...@@ -6,7 +6,9 @@ OTB_TEST_APPLICATION(NAME apTvRsRasterizationLines ...@@ -6,7 +6,9 @@ OTB_TEST_APPLICATION(NAME apTvRsRasterizationLines
APP Rasterization APP Rasterization
OPTIONS -in ${LARGEDATA}/VECTOR/MidiPyrenees/roads.shp OPTIONS -in ${LARGEDATA}/VECTOR/MidiPyrenees/roads.shp
-im ${BASELINE}/apTvRsRasterizationLines.tif -im ${BASELINE}/apTvRsRasterizationLines.tif
-out ${TEMP}/apTvRsRasterizationLines.tif uint8 -out ${TEMP}/apTvRsRasterizationLines.tif uint8
-background 255
-mode.binary.foreground 0
VALID --compare-image ${NOTOL} VALID --compare-image ${NOTOL}
${BASELINE}/apTvRsRasterizationLines.tif ${BASELINE}/apTvRsRasterizationLines.tif
${TEMP}/apTvRsRasterizationLines.tif) ${TEMP}/apTvRsRasterizationLines.tif)
...@@ -26,21 +28,25 @@ OTB_TEST_APPLICATION(NAME apTvRsRasterizationPoints ...@@ -26,21 +28,25 @@ OTB_TEST_APPLICATION(NAME apTvRsRasterizationPoints
APP Rasterization APP Rasterization
OPTIONS -in ${LARGEDATA}/VECTOR/MidiPyrenees/points.shp OPTIONS -in ${LARGEDATA}/VECTOR/MidiPyrenees/points.shp
-im ${BASELINE}/apTvRsRasterizationPoints.tif -im ${BASELINE}/apTvRsRasterizationPoints.tif
-out ${TEMP}/apTvRsRasterizationPoints.tif uint8 -out ${TEMP}/apTvRsRasterizationPoints.tif uint8
-background 255
-mode.binary.foreground 0
VALID --compare-image ${NOTOL} VALID --compare-image ${NOTOL}
${BASELINE}/apTvRsRasterizationPoints.tif ${BASELINE}/apTvRsRasterizationPoints.tif
${TEMP}/apTvRsRasterizationPoints.tif) ${TEMP}/apTvRsRasterizationPoints.tif)
ENDIF( OTB_DATA_USE_LARGEINPUT ) ENDIF( OTB_DATA_USE_LARGEINPUT )
OTB_TEST_APPLICATION(NAME apTvRsRasterizationPolygons OTB_TEST_APPLICATION(NAME apTvRsRasterizationPolygons
APP Rasterization APP Rasterization
OPTIONS -in ${INPUTDATA}/Rasterization/polgons.shp OPTIONS -in ${INPUTDATA}/Rasterization/polgons.shp
-szx 1100 -spx 1.
-szy 1100 -spy 1.
-out ${TEMP}/apTvRsRasterizationPolygons.tif uint8 -out ${TEMP}/apTvRsRasterizationPolygons.tif uint8
-background 255
-mode.binary.foreground 0
VALID --compare-image ${NOTOL} VALID --compare-image ${NOTOL}
${BASELINE}/apTvRsRasterizationPolygons.tif ${BASELINE}/apTvRsRasterizationPolygons.tif
${TEMP}/apTvRsRasterizationPolygons.tif) ${TEMP}/apTvRsRasterizationPolygons.tif)
ENDIF( OTB_USE_MAPNIK ) ENDIF( OTB_USE_MAPNIK )
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