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

TEST: Adding a test for attribute rasterization mode

parent d1fa2071
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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