From 035e2b5b13d8e580f177f0053e6db4b78fe694cc Mon Sep 17 00:00:00 2001 From: Julien Michel <julien.michel@orfeo-toolbox.org> Date: Tue, 19 Jun 2012 17:46:55 +0200 Subject: [PATCH] TEST: Adding a test for attribute rasterization mode --- Testing/Applications/Rasterization/CMakeLists.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Testing/Applications/Rasterization/CMakeLists.txt b/Testing/Applications/Rasterization/CMakeLists.txt index 10ef5caf55..4bbfefb699 100644 --- a/Testing/Applications/Rasterization/CMakeLists.txt +++ b/Testing/Applications/Rasterization/CMakeLists.txt @@ -13,7 +13,18 @@ OTB_TEST_APPLICATION(NAME apTvRsRasterizationLines ${BASELINE}/apTvRsRasterizationLines.tif ${TEMP}/apTvRsRasterizationLines.tif) -# Mapnik is not intended to rasterize big images (tile effects happen), GDAL should do the job +OTB_TEST_APPLICATION(NAME apTvRsRasterizationLinesAttributeMode + APP Rasterization + OPTIONS -in ${LARGEDATA}/VECTOR/MidiPyrenees/roads.shp + -im ${BASELINE}/apTvRsRasterizationLines.tif + -out ${TEMP}/apTvRsRasterizationLinesAttributeMode.tif uint32 + -background 0 + -mode attribute + -mode.attribute.field osm_id + VALID --compare-image ${NOTOL} + ${BASELINE}/apTvRsRasterizationLinesAttributeMode.tif + ${TEMP}/apTvRsRasterizationLinesAttributeMode.tif) + OTB_TEST_APPLICATION(NAME apTvRsRasterizationLinesStreaming APP Rasterization OPTIONS -in ${LARGEDATA}/VECTOR/MidiPyrenees/roads.shp -- GitLab