Commit f6759712 authored by Julien Michel's avatar Julien Michel

TEST: Updating tests

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