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
Julien Cabieces
otb
Commits
b046cb8a
Commit
b046cb8a
authored
6 years ago
by
Cédric Traizet
Browse files
Options
Downloads
Patches
Plain Diff
ENH: remove complex image parameter from qgis descriptor
parent
7bd94bf9
Branches
1980-upgrade-gdal-proj-and-geotiff-in-superbuild
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Modules/Wrappers/QGIS/src/otbQgisDescriptor.cxx
+2
-6
2 additions, 6 deletions
Modules/Wrappers/QGIS/src/otbQgisDescriptor.cxx
with
2 additions
and
6 deletions
Modules/Wrappers/QGIS/src/otbQgisDescriptor.cxx
+
2
−
6
View file @
b046cb8a
...
...
@@ -71,8 +71,6 @@ int main(int argc, char* argv[])
parameterTypeToString
[
ParameterType_OutputVectorData
]
=
"QgsProcessingParameterVectorDestination"
;
parameterTypeToString
[
ParameterType_OutputFilename
]
=
"QgsProcessingParameterFileDestination"
;
parameterTypeToString
[
ParameterType_Directory
]
=
"QgsProcessingParameterFile"
;
parameterTypeToString
[
ParameterType_ComplexInputImage
]
=
"QgsProcessingParameterRasterLayer"
;
parameterTypeToString
[
ParameterType_ComplexOutputImage
]
=
"QgsProcessingParameterRasterDestination"
;
// TODO
parameterTypeToString
[
ParameterType_StringList
]
=
"QgsProcessingParameterString"
;
// ListView parameters are treated as plain string (QLineEdit) in qgis processing ui.
...
...
@@ -258,8 +256,7 @@ int main(int argc, char* argv[])
// setting default_value this way is an exception for ParameterType_StringList and ParameterType_String
default_value
=
"None|True"
;
}
else
if
(
type
==
ParameterType_InputImage
||
type
==
ParameterType_ComplexInputImage
)
else
if
(
type
==
ParameterType_InputImage
)
{
// default is None and nothing to add to dFile
}
...
...
@@ -285,8 +282,7 @@ int main(int argc, char* argv[])
}
else
if
(
type
==
ParameterType_OutputVectorData
||
type
==
ParameterType_OutputImage
||
type
==
ParameterType_OutputFilename
||
type
==
ParameterType_ComplexOutputImage
)
type
==
ParameterType_OutputFilename
)
{
// No need for default_value, optional and extra fields in dFile.
// If parameter is a destination type. qgis_type|name|description is enough.
...
...
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