Skip to content
Snippets Groups Projects
Commit 2b236487 authored by OTB Bot's avatar OTB Bot
Browse files

STYLE

parent 3c3bca3a
No related branches found
No related tags found
No related merge requests found
......@@ -29,11 +29,11 @@ int KmzExport::Describe(ApplicationDescriptor* descriptor)
{
descriptor->SetName("KmzExport");
descriptor->SetDescription("Chain that Estimate a sensor model in order to export the input image to Google Earth understandable format Kmz");
descriptor->AddInputImage();
descriptor->AddOption("OutputProductName", "Output Kmz product", "kmz", 1, true,ApplicationDescriptor::InputImage);
descriptor->AddOption("TileSize", "Set the size of the tiles", "s", 1, false,ApplicationDescriptor::Integer);
descriptor->AddOption("LogoImage", "Add a logo to the final Kmz", "lo", 1, false,ApplicationDescriptor::FileName);
descriptor->AddOption("LegendImage", "Add a legend to the image exported", "le", 1, false,ApplicationDescriptor::FileName);
descriptor->AddInputImage();
descriptor->AddOption("OutputProductName", "Output Kmz product", "kmz", 1, true, ApplicationDescriptor::InputImage);
descriptor->AddOption("TileSize", "Set the size of the tiles", "s", 1, false, ApplicationDescriptor::Integer);
descriptor->AddOption("LogoImage", "Add a logo to the final Kmz", "lo", 1, false, ApplicationDescriptor::FileName);
descriptor->AddOption("LegendImage", "Add a legend to the image exported", "le", 1, false, ApplicationDescriptor::FileName);
return EXIT_SUCCESS;
}
......@@ -73,9 +73,9 @@ int KmzExport::Execute(otb::ApplicationOptionsResult* parseResult)
ReaderType::Pointer legendReader = ReaderType::New();
legendReader->SetFileName(parseResult->GetParameterString("LegendImage"));
legendReader->Update();
kmzWriter->AddLegend("Input Legend",legendReader->GetOutput());
kmzWriter->AddLegend("Input Legend", legendReader->GetOutput());
kmzWriter->AddLegend(legendReader->GetOutput());
}
}
// trigger the writing
kmzWriter->Update();
......
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