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
Container Registry
Model registry
Operate
Environments
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
Main Repositories
otb
Commits
7af3cb8d
Commit
7af3cb8d
authored
8 years ago
by
Guillaume Pasero
Browse files
Options
Downloads
Patches
Plain Diff
BUG: avoid confusing messages from ossimSentinel1Model when loading a plain .tiff file
parent
8db4a2b8
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/ThirdParty/OssimPlugins/src/ossim/ossimSentinel1Model.cpp
+23
-14
23 additions, 14 deletions
...ThirdParty/OssimPlugins/src/ossim/ossimSentinel1Model.cpp
with
23 additions
and
14 deletions
Modules/ThirdParty/OssimPlugins/src/ossim/ossimSentinel1Model.cpp
+
23
−
14
View file @
7af3cb8d
...
@@ -235,20 +235,6 @@ namespace ossimplugins
...
@@ -235,20 +235,6 @@ namespace ossimplugins
return
false
;
return
false
;
}
}
}
}
else
{
/* Keep this notify as WARN. code should not reach here.
If manifest.safe is not found then we are not loading a valid S1 dataset.
If the input is tiff or annotation xml, then also there must exists a
manifest.safe. However, we are forced to read only annotaion xml and
make ossimSentinel1Model out of it for the sake of
"ossimSentinel1ModelTest". This is not a very good idea to allow
reading a fake dataset. So user must be warned!
*/
ossimNotify
(
ossimNotifyLevel_WARN
)
<<
MODULE
<<
" manifest.safe not found. but checking if xml file is valid"
<<
"
\n
"
;
}
// -----[ Read product file
// -----[ Read product file
ossimFilename
xmlFileName
=
file
;
ossimFilename
xmlFileName
=
file
;
...
@@ -259,6 +245,12 @@ namespace ossimplugins
...
@@ -259,6 +245,12 @@ namespace ossimplugins
const
ossimFilename
fileNameWihtoutExtension
=
file
.
fileNoExtension
();
const
ossimFilename
fileNameWihtoutExtension
=
file
.
fileNoExtension
();
const
ossimFilename
path
=
file
.
path
().
path
();
const
ossimFilename
path
=
file
.
path
().
path
();
xmlFileName
=
ossimFilename
(
path
+
"/annotation/"
+
fileNameWihtoutExtension
+
".xml"
);
xmlFileName
=
ossimFilename
(
path
+
"/annotation/"
+
fileNameWihtoutExtension
+
".xml"
);
if
(
!
xmlFileName
.
exists
()
&&
safeFile
.
empty
())
{
// this is just a plain tiff file without safe nor xml
return
false
;
}
}
}
if
(
!
xmlFileName
.
exists
()
||
!
this
->
readProduct
(
xmlFileName
)
)
if
(
!
xmlFileName
.
exists
()
||
!
this
->
readProduct
(
xmlFileName
)
)
...
@@ -279,6 +271,23 @@ namespace ossimplugins
...
@@ -279,6 +271,23 @@ namespace ossimplugins
<<
" !xmlFileName.exists() || !this->readProduct(xmlFileName) fails
\n
"
;
<<
" !xmlFileName.exists() || !this->readProduct(xmlFileName) fails
\n
"
;
return
false
;
return
false
;
}
}
else
{
if
(
safeFile
.
empty
()
)
{
/* Keep this notify as WARN. code should not reach here.
If manifest.safe is not found then we are not loading a valid S1 dataset.
If the input is tiff or annotation xml, then also there must exists a
manifest.safe. However, we are forced to read only annotaion xml and
make ossimSentinel1Model out of it for the sake of
"ossimSentinel1ModelTest". This is not a very good idea to allow
reading a fake dataset. So user must be warned!
*/
ossimNotify
(
ossimNotifyLevel_WARN
)
<<
MODULE
<<
" manifest.safe not found, but xml file is valid"
<<
"
\n
"
;
}
}
if
(
!
this
->
initImageSize
(
theImageSize
)
)
if
(
!
this
->
initImageSize
(
theImageSize
)
)
{
{
...
...
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