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
1afe1bc1
Commit
1afe1bc1
authored
5 years ago
by
Rashad Kanavath
Browse files
Options
Downloads
Patches
Plain Diff
[BUG] set fileFilter to None for ParameterType_OutputFilename
parent
17379368
No related branches found
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
+16
-3
16 additions, 3 deletions
Modules/Wrappers/QGIS/src/otbQgisDescriptor.cxx
with
16 additions
and
3 deletions
Modules/Wrappers/QGIS/src/otbQgisDescriptor.cxx
+
16
−
3
View file @
1afe1bc1
...
...
@@ -123,6 +123,15 @@ int main(int argc, char* argv[])
dFile
<<
appli
->
GetDescription
()
<<
std
::
endl
;
dFile
<<
group
<<
std
::
endl
;
/*
From here onwards each line appended to dFile is passed to QgsProcessingParameter* class constructor.
dFile is nothing but a csv (with a .txt) with "|" as delimiter character.
First field is the name of Qgis parameter class and rest of it are extracted as list and passed to class constructor.
Parsing and calling of paramater classes are done by python.
source available : qgis/python/plugins/processing/core/parameters.py
source code of qgis parameter is available at: qgis/src/core/processing/qgsprocessingparameters.cpp
*/
for
(
unsigned
int
i
=
0
;
i
<
nbOfParam
;
i
++
)
{
...
...
@@ -250,12 +259,16 @@ 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_OutputImage
||
type
==
ParameterType_OutputFilename
)
else
if
(
type
==
ParameterType_InputImage
||
type
==
ParameterType_OutputImage
)
{
// default is None and nothing to add to dFile
}
else
if
(
type
==
ParameterType_OutputFilename
)
{
// fileFilter and defaultValue is None
// OTB does not have any implementation for file extension.
default_value
=
"None|None"
;
}
else
if
(
type
==
ParameterType_ListView
)
{
// default is None and nothing to add to dFile
...
...
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