Commit 92c2dada authored by Julien Michel's avatar Julien Michel
Browse files

Merge branch 'develop' into grid-resampling

parents 356ecef6 978a933e
......@@ -11,7 +11,7 @@ developers and contributors and especially to Luis Ib\'a\~nez.\\
The OTB specifics were implemented and documented by the OTB Development Team
with some help from several contributors. Without these people OTB will not be
where it is today. This list is presented in alphbetical order and not by
where it is today. This list is presented in alphabetical order and not by
importance of contribution:
\input{ContributorList.tex}
......
\chapter{Reading and Writing Images}
2;rgb:0000/0000/0000\chapter{Reading and Writing Images}
\label{sec:IO}
This chapter describes the toolkit architecture supporting reading and
......@@ -285,6 +285,11 @@ IMPORTANT: Note that you'll probably need to "quote" the filename.
\item To activate writing of external geom file
\item true by default
\end{itemize}
\item \begin{verbatim}&writerpctags=<(bool)true>\end{verbatim}
\begin{itemize}
\item To activate writing of RPC tags in TIFF files
\item false by default
\end{itemize}
\item \begin{verbatim}&gdal:co:<GDALKEY>=<VALUE>\end{verbatim}
\begin{itemize}
\item To specify a gdal creation option
......
......@@ -84,30 +84,30 @@ otb_add_test(NAME bfTeIndexedToRGBExampleTest COMMAND ${OTB_TEST_DRIVER}
${TEMP}/buildingExtractionRGB.png
${TEMP}/buildingExtractionIndexed_scaled.png
)
if(OTBMathParser_LOADED)
otb_add_test(NAME bfTeMeanShiftSegmentationFilterExampleTest COMMAND ${OTB_TEST_DRIVER}
--compare-n-images ${NOTOL} 4
${BASELINE}/MSClusteredOutput.tif
${TEMP}/MSClusteredOutput.tif
${BASELINE}/MSLabeledOutput.tif
${TEMP}/MSLabeledOutput.tif
${BASELINE}/MSLabeledOutput-pretty.png
${TEMP}/MSLabeledOutput-pretty.png
${BASELINE}/MSClusteredOutput-pretty.png
${TEMP}/MSClusteredOutput-pretty.png
Execute $<TARGET_FILE:MeanShiftSegmentationFilterExample>
${INPUTDATA}/ROI_QB_MUL_1.png
${TEMP}/MSLabeledOutput.tif
${TEMP}/MSClusteredOutput.tif
${TEMP}/MSLabeledOutput-pretty.png
${TEMP}/MSClusteredOutput-pretty.png
16
16
100
100
0.1
)
endif()
#if(OTBMathParser_LOADED)
#otb_add_test(NAME bfTeMeanShiftSegmentationFilterExampleTest COMMAND ${OTB_TEST_DRIVER}
#--compare-n-images ${NOTOL} 4
#${BASELINE}/MSClusteredOutput.tif
#${TEMP}/MSClusteredOutput.tif
#${BASELINE}/MSLabeledOutput.tif
#${TEMP}/MSLabeledOutput.tif
#${BASELINE}/MSLabeledOutput-pretty.png
#${TEMP}/MSLabeledOutput-pretty.png
#${BASELINE}/MSClusteredOutput-pretty.png
#${TEMP}/MSClusteredOutput-pretty.png
#Execute $<TARGET_FILE:MeanShiftSegmentationFilterExample>
#${INPUTDATA}/ROI_QB_MUL_1.png
#${TEMP}/MSLabeledOutput.tif
#${TEMP}/MSClusteredOutput.tif
#${TEMP}/MSLabeledOutput-pretty.png
#${TEMP}/MSClusteredOutput-pretty.png
#16
#16
#100
#100
#0.1
#)
#endif()
# ------- HillShadingExampleTest ----------
otb_add_test(NAME bfTeHillShadingExampleTest COMMAND ${OTB_TEST_DRIVER}
......
......@@ -18,15 +18,15 @@ otb_add_test(NAME dmTeSimpleDisparityMapEstimationExampleTest COMMAND ${OTB_TEST
)
if(OTBMathParser_LOADED)
otb_add_test(NAME dmTeStereoReconstructionExampleTest COMMAND ${OTB_TEST_DRIVER}
--compare-image ${NOTOL}
${BASELINE}/elevationOutput.tif
${TEMP}/elevationOutput.tif
Execute $<TARGET_FILE:StereoReconstructionExample>
${INPUTDATA}/sensor_stereo_left.tif
${INPUTDATA}/sensor_stereo_right.tif
${TEMP}/elevationOutput.tif
${TEMP}/elevationOutputPrintable.png
140
)
endif()
\ No newline at end of file
#otb_add_test(NAME dmTeStereoReconstructionExampleTest COMMAND ${OTB_TEST_DRIVER}
#--compare-image ${NOTOL}
#${BASELINE}/elevationOutput.tif
#${TEMP}/elevationOutput.tif
#Execute $<TARGET_FILE:StereoReconstructionExample>
#${INPUTDATA}/sensor_stereo_left.tif
#${INPUTDATA}/sensor_stereo_right.tif
#${TEMP}/elevationOutput.tif
#${TEMP}/elevationOutputPrintable.png
#140
#)
endif()
......@@ -22,24 +22,24 @@ otb_add_test(NAME trTeOBIAShapeAttributeComputationTest COMMAND ${OTB_TEST_DRIVE
${TEMP}/OBIAShapeAttribute.txt
)
if(OTBMathParser_LOADED)
otb_add_test(NAME trTeOBIARadiometricAttributesLabelMapFilterTest COMMAND ${OTB_TEST_DRIVER}
--compare-image ${NOTOL}
${BASELINE}/OBIARadiometricAttributes.png
${TEMP}/OBIARadiometricAttributes.png
Execute $<TARGET_FILE:RadiometricAttributesLabelMapFilterExample>
${INPUTDATA}/qb_RoadExtract.tif
${TEMP}/OBIARadiometricAttributes.png
${TEMP}/qb_RoadExtract_Radiometry_pretty.png
STATS::Band1::Mean
0
0.5
16
16
50
1.0
)
endif()
#if(OTBMathParser_LOADED)
#otb_add_test(NAME trTeOBIARadiometricAttributesLabelMapFilterTest COMMAND ${OTB_TEST_DRIVER}
#--compare-image ${NOTOL}
#${BASELINE}/OBIARadiometricAttributes.png
#${TEMP}/OBIARadiometricAttributes.png
#Execute $<TARGET_FILE:RadiometricAttributesLabelMapFilterExample>
#${INPUTDATA}/qb_RoadExtract.tif
#${TEMP}/OBIARadiometricAttributes.png
#${TEMP}/qb_RoadExtract_Radiometry_pretty.png
#STATS::Band1::Mean
#0
#0.5
#16
#16
#50
#1.0
#)
#endif()
otb_add_test(NAME trTeLabelMapToVectorData COMMAND ${OTB_TEST_DRIVER}
Execute $<TARGET_FILE:LabelMapToVectorData>
......
......@@ -194,15 +194,15 @@ otb_add_test(NAME seTeNeighborhoodConnectedImageFilterTest3 COMMAND ${OTB_TEST_D
# ------- WatershedSegmentationTest----------
otb_add_test(NAME seTeWatershedSegmentationTest2 COMMAND ${OTB_TEST_DRIVER}
--compare-n-images ${NOTOL} 1
${BASELINE}/WatershedSegmentation1Output2.png
${TEMP}/WatershedSegmentation1Output2.png
Execute $<TARGET_FILE:WatershedSegmentation>
${INPUTDATA}/ROI_QB_MUL_3.tif
${TEMP}/WatershedSegmentation1Output2.png
2 10 0.001 0.15 0
)
#otb_add_test(NAME seTeWatershedSegmentationTest2 COMMAND ${OTB_TEST_DRIVER}
#--compare-n-images ${NOTOL} 1
#${BASELINE}/WatershedSegmentation1Output2.png
#${TEMP}/WatershedSegmentation1Output2.png
#Execute $<TARGET_FILE:WatershedSegmentation>
#${INPUTDATA}/ROI_QB_MUL_3.tif
#${TEMP}/WatershedSegmentation1Output2.png
#2 10 0.001 0.15 0
#)
# ------- ConnectedThresholdImageFilterTest----------
......@@ -291,4 +291,4 @@ otb_add_test(NAME seTeStreamingMeanShiftSegmentationTest COMMAND ${OTB_TEST_DRIV
1 #Simplify Flag
0.2 #Simplification tolerance
)
endif()
\ No newline at end of file
endif()
......@@ -2,7 +2,7 @@ otb_module_test()
set(OTBOSSIMAdaptersTests
otbOSSIMAdaptersTestDriver.cxx
otbImageKeywordlist.cxx
otbTestImageKeywordlist.cxx
otbOssimJpegFileRessourceLeakTest.cxx
otbMapProjectionAdapterTest.cxx
otbOssimElevManagerTest2.cxx
......@@ -19,226 +19,106 @@ otb_module_target_label(otbOSSIMAdaptersTestDriver)
# Tests Declaration
otb_add_test(NAME ioTvImageKeywordlistSPOT5 COMMAND otbOSSIMAdaptersTestDriver
--ignore-order --compare-n-ascii ${NOTOL} 2
${BASELINE_FILES}/ioTvImageKeywordlistSpot5.txt
${TEMP}/ioTvImageKeywordlistSpot5.txt
${BASELINE_FILES}/ioTvImageKeywordlistSpot5.txt
${TEMP}/ioTvImageKeywordlistSpot5_saveState_loadState.txt
--ignore-lines-with 3 support_data.metadata_file meters_per_pixel_x meters_per_pixel_y
otbImageKeywordlist
LARGEINPUT{SPOT5/TEHERAN/IMAGERY.TIF}
${TEMP}/ioTvImageKeywordlistSpot5.txt
${TEMP}/ioTvImageKeywordlistSpot5_saveState_loadState.txt
)
otb_add_test(NAME ioTvImageKeywordlistTerraSarX_Upsala COMMAND otbOSSIMAdaptersTestDriver
--ignore-order --compare-n-ascii ${NOTOL} 2
${BASELINE_FILES}/ioTvImageKeywordlistTerraSarX_Upsala.txt
${TEMP}/ioTvImageKeywordlistTerraSarX_Upsala.txt
${BASELINE_FILES}/ioTvImageKeywordlistTerraSarX_Upsala.txt
${TEMP}/ioTvImageKeywordlistTerraSarX_Upsala_saveState_loadState.txt
--ignore-lines-with 1 product_xml_filename
otbImageKeywordlist
LARGEINPUT{TERRASARX/UPSALA_GLACIER/TSX1_SAR__MGD/TSX1_SAR__MGD.xml}
${TEMP}/ioTvImageKeywordlistTerraSarX_Upsala.txt
${TEMP}/ioTvImageKeywordlistTerraSarX_Upsala_saveState_loadState.txt
)
otb_add_test(NAME ioTvImageKeywordlistRadarSat1_SARDEGNA_vdf COMMAND otbOSSIMAdaptersTestDriver
--compare-n-ascii ${EPSILON_6} 2
${BASELINE_FILES}/ioTvImageKeywordlistRadarSat1_SARDEGNA.txt
${TEMP}/ioTvImageKeywordlistRadarSat1_SARDEGNA_vdf.txt
${BASELINE_FILES}/ioTvImageKeywordlistRadarSat1_SARDEGNA.txt
${TEMP}/ioTvImageKeywordlistRadarSat1_SARDEGNA_vdf_saveState_loadState.txt
otbImageKeywordlist
LARGEINPUT{RADARSAT1/SARDEGNA/scene01/dat_01.001}
${TEMP}/ioTvImageKeywordlistRadarSat1_SARDEGNA_vdf.txt
${TEMP}/ioTvImageKeywordlistRadarSat1_SARDEGNA_vdf_saveState_loadState.txt
)
otb_add_test(NAME ioTvImageKeywordlistRadarSat1_SARDEGNA COMMAND otbOSSIMAdaptersTestDriver
--compare-n-ascii ${EPSILON_6} 2
${BASELINE_FILES}/ioTvImageKeywordlistRadarSat1_SARDEGNA.txt
${TEMP}/ioTvImageKeywordlistRadarSat1_SARDEGNA.txt
${BASELINE_FILES}/ioTvImageKeywordlistRadarSat1_SARDEGNA.txt
${TEMP}/ioTvImageKeywordlistRadarSat1_SARDEGNA_saveState_loadState.txt
otbImageKeywordlist
LARGEINPUT{RADARSAT1/SARDEGNA/scene01/dat_01.001}
${TEMP}/ioTvImageKeywordlistRadarSat1_SARDEGNA.txt
${TEMP}/ioTvImageKeywordlistRadarSat1_SARDEGNA_saveState_loadState.txt
)
otb_add_test(NAME ioTuImageKeywordlistTerraSarX_PANGKALANBUUNUsingXmlFile COMMAND otbOSSIMAdaptersTestDriver
otbImageKeywordlist
LARGEINPUT{TERRASARX/PANGKALANBUUN/TSX1_SAR__SSC______SM_D_SRA_20080313T221955_20080313T222003.xml}
${TEMP}/ioTvImageKeywordlistTerraSarX_Pangkalanbuun.txt
${TEMP}/ioTvImageKeywordlistTerraSarX_Pangkalanbuun_saveState_loadState.txt
)
otb_add_test(NAME ioTvImageKeywordlistTerraSarX_Toronto COMMAND otbOSSIMAdaptersTestDriver
--ignore-order --compare-n-ascii ${NOTOL} 2
${BASELINE_FILES}/ioTvImageKeywordlistTerraSarX_Toronto.txt
${TEMP}/ioTvImageKeywordlistTerraSarX_Toronto.txt
${BASELINE_FILES}/ioTvImageKeywordlistTerraSarX_Toronto.txt
${TEMP}/ioTvImageKeywordlistTerraSarX_Toronto_saveState_loadState.txt
--ignore-lines-with 1 product_xml_filename
otbImageKeywordlist
LARGEINPUT{TERRASARX/TORONTO/TSX1_SAR__SSC/TSX1_SAR__SSC.xml}
${TEMP}/ioTvImageKeywordlistTerraSarX_Toronto.txt
${TEMP}/ioTvImageKeywordlistTerraSarX_Toronto_saveState_loadState.txt
)
otb_add_test(NAME ioTvImageKeywordlistErs COMMAND otbOSSIMAdaptersTestDriver
--ignore-order --compare-n-ascii ${NOTOL} 2
${BASELINE_FILES}/ioTvImageKeywordlistErs.txt
${TEMP}/ioTvImageKeywordlistErs.txt
${BASELINE_FILES}/ioTvImageKeywordlistErs.txt
${TEMP}/ioTvImageKeywordlistErs_saveState_loadState.txt
otbImageKeywordlist
LARGEINPUT{SAR_ERS2_SLCI_SCENE1/DAT_01.001}
${TEMP}/ioTvImageKeywordlistErs.txt
${TEMP}/ioTvImageKeywordlistErs_saveState_loadState.txt
)
otb_add_test(NAME ioTuImageKeywordlistTerraSarX_PANGKALANBUUNUsingHHFile COMMAND otbOSSIMAdaptersTestDriver
otbImageKeywordlist
LARGEINPUT{TERRASARX/PANGKALANBUUN/IMAGEDATA/IMAGE_HH_SRA_stripFar_008.cos}
${TEMP}/ioTvImageKeywordlistTerraSarX_Pangkalanbuun.txt
${TEMP}/ioTvImageKeywordlistTerraSarX_Pangkalanbuun_saveState_loadState.txt
)
otb_add_test(NAME ioTvImageKeywordlistTerraSarX COMMAND otbOSSIMAdaptersTestDriver
--ignore-order --compare-n-ascii ${NOTOL} 2
${BASELINE_FILES}/ioTvImageKeywordlistTerraSarX.txt
${TEMP}/ioTvImageKeywordlistTerraSarX.txt
${BASELINE_FILES}/ioTvImageKeywordlistTerraSarX.txt
${TEMP}/ioTvImageKeywordlistTerraSarX_saveState_loadState.txt
--ignore-lines-with 1 product_xml_filename
otbImageKeywordlist
LARGEINPUT{TERRASARX/dims/TSX-1.SAR.L1B/TSX1_SAR__SSC/TSX1_SAR__SSC.xml}
${TEMP}/ioTvImageKeywordlistTerraSarX.txt
${TEMP}/ioTvImageKeywordlistTerraSarX_saveState_loadState.txt
)
otb_add_test(NAME ioTvImageKeywordlistRadarSat1_GOMA_vdf COMMAND otbOSSIMAdaptersTestDriver
--compare-n-ascii ${EPSILON_6} 2
${BASELINE_FILES}/ioTvImageKeywordlistRadarSat1_GOMA.txt
${TEMP}/ioTvImageKeywordlistRadarSat1_GOMA_vdf.txt
${BASELINE_FILES}/ioTvImageKeywordlistRadarSat1_GOMA.txt
${TEMP}/ioTvImageKeywordlistRadarSat1_GOMA_vdf_saveState_loadState.txt
otbImageKeywordlist
LARGEINPUT{RADARSAT1/GOMA/SCENE01/VDF_DAT.001}
${TEMP}/ioTvImageKeywordlistRadarSat1_GOMA_vdf.txt
${TEMP}/ioTvImageKeywordlistRadarSat1_GOMA_vdf_saveState_loadState.txt
)
otb_add_test(NAME ioTvImageKeywordlistRadarSat2 COMMAND otbOSSIMAdaptersTestDriver
--ignore-order --compare-n-ascii ${NOTOL} 2
${BASELINE_FILES}/ioTvImageKeywordlistRadarSat2.txt
${TEMP}/ioTvImageKeywordlistRadarSat2.txt
${BASELINE_FILES}/ioTvImageKeywordlistRadarSat2.txt
${TEMP}/ioTvImageKeywordlistRadarSat2_saveState_loadState.txt
--ignore-lines-with 1 product_xml_filename
otbImageKeywordlist
LARGEINPUT{RADARSAT2/ALTONA/Fine_Quad-Pol_Dataset/PK6621_DK406_FQ9_20080405_124900_HH_VV_HV_VH_SLC_Altona/product.xml}
${TEMP}/ioTvImageKeywordlistRadarSat2.txt
${TEMP}/ioTvImageKeywordlistRadarSat2_saveState_loadState.txt
)
#KEYWORDLIST : OPTICAL SENSORS
set(NAME_TESTS
"pleiades-1"
"ikonos-1"
"rapideye-1"
"quickbird-1"
"spot6-1"
"worldview2-1"
"spot5-1"
"geoeye1-1"
)
otb_add_test(NAME ioTvImageKeywordlistRapidEye COMMAND otbOSSIMAdaptersTestDriver
--ignore-order --compare-n-ascii ${NOTOL} 2
${BASELINE_FILES}/ioTvImageKeywordlistRapidEye.txt
${TEMP}/ioTvImageKeywordlistRapidEye.txt
${BASELINE_FILES}/ioTvImageKeywordlistRapidEye.txt
${TEMP}/ioTvImageKeywordlistRapidEye_saveState_loadState.txt
otbImageKeywordlist
LARGEINPUT{RAPIDEYE/level1B/2008-12-25T005918_RE3_1B-NAC_397971_12345_band3.ntf}
${TEMP}/ioTvImageKeywordlistRapidEye.txt
${TEMP}/ioTvImageKeywordlistRapidEye_saveState_loadState.txt
)
set(IMG
LARGEINPUT{PLEIADES/TLSE_JP2_DIMAPv2_PRIMARY_PMS_lossless_12bits/IMGPHR_201222215194743808/IMG_PHR1A_PMS_201201151100183_SEN_IPU_20120222_0901-001_R1C1.JP2}
LARGEINPUT{IKONOS/BLOSSEVILLE/po_2619900_nir_0000000.tif}
LARGEINPUT{RAPIDEYE/level1B/2008-12-25T005918_RE3_1B-NAC_397971_12345_band3.ntf}
LARGEINPUT{QUICKBIRD/TOULOUSE/000000128955_01_P001_PAN/02APR01105228-P1BS-000000128955_01_P001.TIF}
LARGEINPUT{SPOT6/600143101-Primary-Bundle-JP2-LOSSLESS/PROD_SPOT6_001/VOL_SPOT6_001_A/IMG_SPOT6_MS_001_A/IMG_SPOT6_MS_201212071020271_SEN_600143101_R1C1.JP2}
LARGEINPUT{WORLDVIEW2/ROME/WV-2_standard_8band_bundle_16bit/052298844010_01_P001_PAN/09DEC10103019-P2AS-052298844010_01_P001.TIF}
LARGEINPUT{SPOT5/TEHERAN/IMAGERY.TIF}
LARGEINPUT{GEOEYE/MARCILLOLES/po_350134_bgrn_0000001.tif}
)
otb_add_test(NAME ioTuImageKeywordlistTerraSarX_PANGKALANBUUNUsingVVFile COMMAND otbOSSIMAdaptersTestDriver
otbImageKeywordlist
LARGEINPUT{TERRASARX/PANGKALANBUUN/IMAGEDATA/IMAGE_VV_SRA_stripFar_008.cos}
${TEMP}/ioTvImageKeywordlistTerraSarX_Pangkalanbuun.txt
${TEMP}/ioTvImageKeywordlistTerraSarX_Pangkalanbuun_saveState_loadState.txt
)
set(NEEDEDKW
"line_den_coeff line_num_coeff samp_den_coeff samp_num_coeff support_data.physical_gain support_data.physical_bias support_data.solar_irradiance support_data.image_date support_data.elevation_angle" #PLEIADES
"line_den_coeff line_num_coeff samp_den_coeff samp_num_coeff support_data.physical_gain support_data.physical_bias support_data.solar_irradiance support_data.image_date support_data.elevation_angle" #IKONOS
"line_den_coeff line_num_coeff samp_den_coeff samp_num_coeff support_data.physical_gain support_data.physical_bias support_data.solar_irradiance support_data.image_date support_data.elevation_angle" #RAPIDEYE
"line_den_coeff line_num_coeff samp_den_coeff samp_num_coeff support_data.physical_gain support_data.physical_bias support_data.solar_irradiance support_data.image_date support_data.elevation_angle" #QB
"line_den_coeff line_num_coeff samp_den_coeff samp_num_coeff support_data.physical_gain support_data.physical_bias support_data.solar_irradiance support_data.image_date support_data.elevation_angle" #SPOT6
"line_den_coeff line_num_coeff samp_den_coeff samp_num_coeff support_data.physical_gain support_data.physical_bias support_data.solar_irradiance support_data.image_date support_data.elevation_angle" #WORLDVIEW2
"line_den_coeff line_num_coeff samp_den_coeff samp_num_coeff support_data.physical_gain support_data.physical_bias support_data.solar_irradiance support_data.image_date support_data.elevation_angle" #SPOT5
"line_den_coeff line_num_coeff samp_den_coeff samp_num_coeff support_data.physical_gain support_data.physical_bias support_data.solar_irradiance support_data.image_date support_data.elevation_angle" #geoeye1
)
otb_add_test(NAME ioTvImageKeywordlistFORMOSAT2 COMMAND otbOSSIMAdaptersTestDriver
--ignore-order --compare-n-ascii ${NOTOL} 2
${BASELINE_FILES}/ioTvImageKeywordlistFORMOSAT2.txt
${TEMP}/ioTvImageKeywordlistFORMOSAT2.txt
${BASELINE_FILES}/ioTvImageKeywordlistFORMOSAT2.txt
${TEMP}/ioTvImageKeywordlistFORMOSAT2_saveState_loadState.txt
--ignore-lines-with 3 support_data.metadata_file meters_per_pixel_x meters_per_pixel_y
otbImageKeywordlist
LARGEINPUT{FORMOSAT/Sudouest_20071013_MS_fmsat/IMAGERY.TIF}
${TEMP}/ioTvImageKeywordlistFORMOSAT2.txt
${TEMP}/ioTvImageKeywordlistFORMOSAT2_saveState_loadState.txt
)
set(TOLS
"1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6" #PLEIADES
"1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6" #IKONOS
"1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6" #RAPIDEYE
"1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6" #QB
"1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6" #SPOT6
"1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6" #WORLDVIEW2
"1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6" #SPOT5
"1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6 1e-6" #geoeye1
)
otb_add_test(NAME ioTvImageKeywordlistAlosPalsar COMMAND otbOSSIMAdaptersTestDriver
--ignore-order --compare-n-ascii ${NOTOL} 2
${BASELINE_FILES}/ioTvImageKeywordlistAlosPalsar.txt
${TEMP}/ioTvImageKeywordlistAlosPalsar.txt
${BASELINE_FILES}/ioTvImageKeywordlistAlosPalsar.txt
${TEMP}/ioTvImageKeywordlistAlosPalsar_saveState_loadState.txt
otbImageKeywordlist
LARGEINPUT{PALSAR/200801280007/l1data/VOL-ALPSRP037120700-H1.1__A}
${TEMP}/ioTvImageKeywordlistAlosPalsar.txt
${TEMP}/ioTvImageKeywordlistAlosPalsar_saveState_loadState.txt
)
set(TESTNB 0 )
foreach( file ${NAME_TESTS} )
list(GET IMG ${TESTNB} current_img )
list(GET NEEDEDKW ${TESTNB} current_neededkw )
list(GET TOLS ${TESTNB} current_tols )
list(GET NAME_TESTS ${TESTNB} current_name )
math(EXPR TESTNB "${TESTNB} + 1")
otb_add_test(NAME ioTvTestImageKeywordlist_${current_name} COMMAND otbOSSIMAdaptersTestDriver
otbTestImageKeywordlist
${current_img}
${current_neededkw}
${current_tols}
${current_name}.geom
0 # 1 : Check all keywords (ignore argv[2] and argv[3]) / 0 : Only check the needed keywords
)
endforeach()
#KEYWORDLIST : RADAR SENSORS
set(NAME_TESTS
"radarsat2-1"
"terrasarx-1"
"sentinel1-1"
"envisat-asar-1"
"radarsat1-1"
"ers2-1"
)
otb_add_test(NAME ioTvImageKeywordlistEnvisatAsar COMMAND otbOSSIMAdaptersTestDriver
--ignore-order --compare-n-ascii ${NOTOL} 2
${BASELINE_FILES}/ioTvImageKeywordlistEnvisatAsar.txt
${TEMP}/ioTvImageKeywordlistEnvisatAsar.txt
${BASELINE_FILES}/ioTvImageKeywordlistEnvisatAsar.txt
${TEMP}/ioTvImageKeywordlistEnvisatAsar_saveState_loadState.txt
otbImageKeywordlist
LARGEINPUT{ENVISAT_ASAR_SCENE01/ASA_APS_1PNDPA20030821_7713.N1}
${TEMP}/ioTvImageKeywordlistEnvisatAsar.txt
${TEMP}/ioTvImageKeywordlistEnvisatAsar_saveState_loadState.txt
)
set(IMG
LARGEINPUT{RADARSAT2/ALTONA/Fine_Quad-Pol_Dataset/PK6621_DK406_FQ9_20080405_124900_HH_VV_HV_VH_SLC_Altona/imagery_VH.tif}
LARGEINPUT{TERRASARX/2008-03-21_GrandCanyon_SSC/TSX1_SAR__SSC______SM_S_SRA_20080321T133220_20080321T133228/IMAGEDATA/IMAGE_HH_SRA_strip_011.cos}
LARGEINPUT{SENTINEL1/S1A_S6_SLC__1SSV_20150619T195043/measurement/s1a-s6-slc-vv-20150619t195043-20150619t195101-006447-00887d-001.tiff}
LARGEINPUT{ENVISAT_ASAR_SCENE01/ASA_APS_1PNDPA20030821_7713.N1}
LARGEINPUT{RADARSAT1/SARDEGNA/scene01/dat_01.001}
LARGEINPUT{SAR_ERS2_SLCI_SCENE1/DAT_01.001}
)
otb_add_test(NAME ioTvImageKeywordlistRadarSat1_GOMA COMMAND otbOSSIMAdaptersTestDriver
--compare-n-ascii ${EPSILON_6} 2
${BASELINE_FILES}/ioTvImageKeywordlistRadarSat1_GOMA.txt
${TEMP}/ioTvImageKeywordlistRadarSat1_GOMA.txt
${BASELINE_FILES}/ioTvImageKeywordlistRadarSat1_GOMA.txt
${TEMP}/ioTvImageKeywordlistRadarSat1_GOMA_saveState_loadState.txt
otbImageKeywordlist
LARGEINPUT{RADARSAT1/GOMA/SCENE01/DAT_01.001}
${TEMP}/ioTvImageKeywordlistRadarSat1_GOMA.txt
${TEMP}/ioTvImageKeywordlistRadarSat1_GOMA_saveState_loadState.txt
)
set(TESTNB 0 )
foreach( file ${NAME_TESTS} )
list(GET IMG ${TESTNB} current_img )
list(GET NAME_TESTS ${TESTNB} current_name )
math(EXPR TESTNB "${TESTNB} + 1")
otb_add_test(NAME ioTvImageKeywordlistIkonos COMMAND otbOSSIMAdaptersTestDriver
--ignore-order --compare-n-ascii ${NOTOL} 2
${BASELINE_FILES}/ioTvImageKeywordlistIkonos.txt
${TEMP}/ioTvImageKeywordlistIkonos.txt
${BASELINE_FILES}/ioTvImageKeywordlistIkonos.txt
${TEMP}/ioTvImageKeywordlistIkonos_saveState_loadState.txt
--ignore-lines-with 2 meters_per_pixel_x meters_per_pixel_y
otbImageKeywordlist
LARGEINPUT{IKONOS/BLOSSEVILLE/po_2619900_pan_0000000.tif}
${TEMP}/ioTvImageKeywordlistIkonos.txt
${TEMP}/ioTvImageKeywordlistIkonos_saveState_loadState.txt
)
otb_add_test(NAME ioTvTestImageKeywordlist_${current_name} COMMAND otbOSSIMAdaptersTestDriver
otbTestImageKeywordlist
${current_img}
"Foo"
"Foo"
${current_name}.geom
1 # 1 : Check all keywords (ignore argv[2] and argv[3]) / 0 : Only check the needed keywords
)
endforeach()
otb_add_test(NAME ioTvImageKeywordlistQuickbird COMMAND otbOSSIMAdaptersTestDriver
--ignore-order --compare-n-ascii ${NOTOL} 2
${BASELINE_FILES}/ioTvImageKeywordlistQuickbird.txt
${TEMP}/ioTvImageKeywordlistQuickbird.txt
${BASELINE_FILES}/ioTvImageKeywordlistQuickbird.txt
${TEMP}/ioTvImageKeywordlistQuickbird_saveState_loadState.txt
--ignore-lines-with 2 meters_per_pixel_x meters_per_pixel_y
otbImageKeywordlist
LARGEINPUT{QUICKBIRD/TOULOUSE/000000128955_01_P001_PAN/02APR01105228-P1BS-000000128955_01_P001.TIF}
${TEMP}/ioTvImageKeywordlistQuickbird.txt
${TEMP}/ioTvImageKeywordlistQuickbird_saveState_loadState.txt
)
otb_add_test(NAME ioTvOssimJpegFileRessourceLeak COMMAND otbOSSIMAdaptersTestDriver
otbOssimJpegFileRessourceLeakTest
......@@ -578,17 +458,17 @@ if (OTB_DATA_USE_LARGEINPUT)
set_property(TEST uaTvRPCSolverAdapterNotEnoughPointsTest PROPERTY WILL_FAIL TRUE)
endif()
otb_add_test(NAME uaTvRPCSolverAdapterOutGeomTest COMMAND otbOSSIMAdaptersTestDriver
--compare-ascii ${EPSILON_9}
${BASELINE_FILES}/uaTvRPCSolverAdapterOutGeomTest.geom
${TEMP}/uaTvRPCSolverAdapterOutGeomTest.geom
otbRPCSolverAdapterTest
LARGEINPUT{QUICKBIRD/TOULOUSE/000000128955_01_P001_PAN/02APR01105228-P1BS-000000128955_01_P001.TIF}
10 0.25 0.35
${INPUTDATA}/DEM/srtm_directory/
${INPUTDATA}/DEM/egm96.grd
${TEMP}/uaTvRPCSolverAdapterOutGeomTest.geom
)
#otb_add_test(NAME uaTvRPCSolverAdapterOutGeomTest COMMAND otbOSSIMAdaptersTestDriver
#--compare-ascii ${EPSILON_9}
#${BASELINE_FILES}/uaTvRPCSolverAdapterOutGeomTest.geom
#${TEMP}/uaTvRPCSolverAdapterOutGeomTest.geom
#otbRPCSolverAdapterTest
#LARGEINPUT{QUICKBIRD/TOULOUSE/000000128955_01_P001_PAN/02APR01105228-P1BS-000000128955_01_P001.TIF}
#10 0.25 0.35
#${INPUTDATA}/DEM/srtm_directory/
#${INPUTDATA}/DEM/egm96.grd
#${TEMP}/uaTvRPCSolverAdapterOutGeomTest.geom
#)
otb_add_test(NAME uaTvRPCSolverAdapterValidationTest COMMAND otbOSSIMAdaptersTestDriver
otbRPCSolverAdapterTest
......@@ -598,53 +478,3 @@ otb_add_test(NAME uaTvRPCSolverAdapterValidationTest COMMAND otbOSSIMAdaptersTes
${INPUTDATA}/DEM/egm96.grd
)
if(OTB_DATA_USE_LARGEINPUT)
set( GenericTestPHR_TESTNB 0)
foreach( current_file ${GenericTestPHR_DATA_INPUTS} )
list(GET GenericTestPHR_DATA_TYPES ${GenericTestPHR_TESTNB} current_type )
math(EXPR GenericTestPHR_TESTNB "${GenericTestPHR_TESTNB} + 1")
# Get and manipulate ImageKeywordlist
otb_add_test(NAME ioTvImageKeywordlist_${current_type} COMMAND otbOSSIMAdaptersTestDriver
--ignore-order --compare-n-ascii ${NOTOL} 2
${BASELINE_FILES}/ioTvImageKeywordlist_${current_type}.txt
${TEMP}/ioTvImageKeywordlist_${current_type}_OUT.txt
${BASELINE_FILES}/ioTvImageKeywordlist_${current_type}.txt
${TEMP}/ioTvImageKeywordlist_${current_type}_saveState_loadState_OUT.txt
--ignore-lines-with 2 meters_per_pixel_x meters_per_pixel_y
otbImageKeywordlist
${current_file}
${TEMP}/ioTvImageKeywordlist_${current_type}_OUT.txt
${TEMP}/ioTvImageKeywordlist_${current_type}_saveState_loadState_OUT.txt
)
endforeach()
set( GenericTestSPOT6_TESTNB 0)
foreach( current_file ${GenericTestSPOT6_DATA_INPUTS} )
list(GET GenericTestSPOT6_DATA_TYPES ${GenericTestSPOT6_TESTNB} current_type )
math(EXPR GenericTestSPOT6_TESTNB "${GenericTestSPOT6_TESTNB} + 1")
# Get and manipulate ImageKeywordlist
otb_add_test(NAME ioTvImageKeywordlist_${current_type} COMMAND otbOSSIMAdaptersTestDriver
--ignore-order --compare-n-ascii ${NOTOL} 2
${BASELINE_FILES}/ioTvImageKeywordlist_${current_type}.txt