Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qgis-otb-plugin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Catherine CALME
qgis-otb-plugin
Commits
3d66c493
Commit
3d66c493
authored
Jul 05, 2018
by
Rashad Kanavath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use otbFolder to make wrapper script
parent
426456fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
otb/OTBAlgorithmProvider.py
otb/OTBAlgorithmProvider.py
+4
-3
No files found.
otb/OTBAlgorithmProvider.py
View file @
3d66c493
...
...
@@ -125,7 +125,7 @@ class OTBAlgorithmProvider(QgsProcessingProvider):
raise
ValueError
(
self
.
tr
(
"Cannot find '{}'. OTB will be disabled"
.
format
(
os
.
path
.
join
(
v
,
'bin'
,
otb_exe_file
(
'otbApplicationLauncherCommandLine'
)))))
def
write_otbcli_wrapper_script
(
self
):
otb_folder
=
self
.
normalize_path
(
OTBUtils
.
app
Folder
())
otb_folder
=
self
.
normalize_path
(
OTBUtils
.
otb
Folder
())
otb_app_path_env
=
os
.
pathsep
.
join
(
self
.
otb_app_dir_list
(
OTBUtils
.
appFolder
()))
gdal_data_dir
=
None
geotiff_csv_dir
=
None
...
...
@@ -273,8 +273,9 @@ class OTBAlgorithmProvider(QgsProcessingProvider):
if
os
.
path
.
exists
(
env_profile
)
and
os
.
path
.
isfile
(
env_profile
):
OTBUtils
.
OTB_CLI_FILE
=
os
.
path
.
join
(
QgsApplication
.
qgisSettingsDirPath
(),
'processing'
,
'qgis_otb_cli'
+
cli_ext
)
if
not
os
.
path
.
exists
(
OTBUtils
.
OTB_CLI_FILE
):
self
.
write_otbcli_wrapper_script
()
#if not os.path.exists(OTBUtils.OTB_CLI_FILE):
#rewrite always for now..
self
.
write_otbcli_wrapper_script
()
else
:
OTBUtils
.
OTB_CLI_FILE
=
os
.
path
.
join
(
folder
,
'bin'
,
'otbcli'
+
cli_ext
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment