Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
2b236487
Commit
2b236487
authored
13 years ago
by
OTB Bot
Browse files
Options
Downloads
Patches
Plain Diff
STYLE
parent
3c3bca3a
Branches
2076-develop-package-names-3
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Utils/otbKmzExport.cxx
+7
-7
7 additions, 7 deletions
Utils/otbKmzExport.cxx
with
7 additions
and
7 deletions
Utils/otbKmzExport.cxx
+
7
−
7
View file @
2b236487
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment