CMakeLists.txt 2.55 KB
Newer Older
1 2 3 4 5 6

IF( OTB_USE_MAPNIK )
IF( OTB_DATA_USE_LARGEINPUT )

OTB_TEST_APPLICATION(NAME apTvRsRasterizationLines
                     APP  Rasterization
7
                     OPTIONS -in   ${LARGEDATA}/VECTOR/MidiPyrenees/roads.shp
8
                             -im   ${BASELINE}/apTvRsRasterizationLines.tif
Julien Michel's avatar
Julien Michel committed
9 10 11
                             -out  ${TEMP}/apTvRsRasterizationLines.tif uint8
                             -background 255
                             -mode.binary.foreground 0
12 13 14 15
                     VALID   --compare-image ${NOTOL}
                              ${BASELINE}/apTvRsRasterizationLines.tif
                			  ${TEMP}/apTvRsRasterizationLines.tif)

16 17 18 19 20 21 22 23 24 25
# Mapnik is not intended to rasterize big images (tile effects happen), GDAL should do the job
# OTB_TEST_APPLICATION(NAME apTvRsRasterizationLinesStreaming
#                     APP  Rasterization
#                     OPTIONS -in   ${LARGEDATA}/VECTOR/MidiPyrenees/roads.shp
#                             -im   ${BASELINE}/apTvRsRasterizationLines.tif
#                 			 -out  ${TEMP}/apTvRsRasterizationLinesStreaming.tif uint8
#                 			 -ram 1
#                     VALID   --compare-image ${NOTOL}
#                              ${BASELINE}/apTvRsRasterizationLines.tif
#                			  ${TEMP}/apTvRsRasterizationLinesStreaming.tif)
26 27 28

OTB_TEST_APPLICATION(NAME apTvRsRasterizationPoints
                     APP  Rasterization
29 30
                     OPTIONS -in   ${LARGEDATA}/VECTOR/MidiPyrenees/points.shp
                             -im   ${BASELINE}/apTvRsRasterizationPoints.tif
Julien Michel's avatar
Julien Michel committed
31 32 33
                             -out  ${TEMP}/apTvRsRasterizationPoints.tif uint8
                             -background 255
                             -mode.binary.foreground 0
34 35
                     VALID   --compare-image ${NOTOL}
                              ${BASELINE}/apTvRsRasterizationPoints.tif
Julien Michel's avatar
Julien Michel committed
36
                	      ${TEMP}/apTvRsRasterizationPoints.tif)
37 38 39 40 41

ENDIF( OTB_DATA_USE_LARGEINPUT )

OTB_TEST_APPLICATION(NAME apTvRsRasterizationPolygons
                     APP  Rasterization
Julien Michel's avatar
Julien Michel committed
42 43 44 45 46 47
                     OPTIONS -in  ${INPUTDATA}/Rasterization/polgons.shp
                             -spx 1.
                             -spy 1.
                             -out ${TEMP}/apTvRsRasterizationPolygons.tif uint8
                             -background 255
                             -mode.binary.foreground 0
48 49
                     VALID   --compare-image ${NOTOL}
                              ${BASELINE}/apTvRsRasterizationPolygons.tif
Julien Michel's avatar
Julien Michel committed
50
                	      ${TEMP}/apTvRsRasterizationPolygons.tif)
51 52

ENDIF( OTB_USE_MAPNIK )