Commit 01210358 authored by Mickael Savinaud's avatar Mickael Savinaud
Browse files

BUG: fix bug #733

parent 5970ac38
......@@ -414,9 +414,12 @@ KmzProductWriter<TInputImage>
m_VectorImageExtractROIFilter->SetSizeY(extractSize[1]);
// Set Channel to extract
m_VectorImageExtractROIFilter->SetChannel(1); //m_ProductVector[m_CurrentProduct].m_Composition[0] + 1);
m_VectorImageExtractROIFilter->SetChannel(2); //m_ProductVector[m_CurrentProduct].m_Composition[1] + 1);
m_VectorImageExtractROIFilter->SetChannel(3); //m_ProductVector[m_CurrentProduct].m_Composition[2] + 1);
if(m_VectorImage->GetNumberOfComponentsPerPixel()>3)
{
m_VectorImageExtractROIFilter->SetChannel(1); //m_ProductVector[m_CurrentProduct].m_Composition[0] + 1);
m_VectorImageExtractROIFilter->SetChannel(2); //m_ProductVector[m_CurrentProduct].m_Composition[1] + 1);
m_VectorImageExtractROIFilter->SetChannel(3); //m_ProductVector[m_CurrentProduct].m_Composition[2] + 1);
}
// Set extract roi input
m_VectorImageExtractROIFilter->SetInput(m_ResampleVectorImage);
......
......@@ -163,6 +163,15 @@ OTB_TEST_APPLICATION(NAME apTvUtKmzExport
-legend ${INPUTDATA}/otb_big.png
-elev.dem ${INPUTDATA}/DEM/srtm_directory)
OTB_TEST_APPLICATION(NAME apTvUtKmzExport1Band
APP KmzExport
OPTIONS #-in /media/otbnas/public/Data/Saterre/data/cumulLAI.tif
-in ${INPUTDATA}/QB_PAN_ROI_1000_100.tif
-out ${TEMP}/apTvUtKmzExport1Band.kmz
-logo ${INPUTDATA}/cnes.png
-legend ${INPUTDATA}/otb_big.png
-elev.dem ${INPUTDATA}/DEM/srtm_directory
-tilesize 50) # needed to see the bug mantis #773
IF(OTB_DATA_USE_LARGEINPUT)
#--- OSMDownloader ---
......
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