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
5f55b21d
Commit
5f55b21d
authored
9 years ago
by
Julien Michel
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Adding a method in medata interface base class to retrieve no data flags and values
parent
73b05cb3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Modules/Core/Metadata/include/otbImageMetadataInterfaceBase.h
+6
-0
6 additions, 0 deletions
...les/Core/Metadata/include/otbImageMetadataInterfaceBase.h
Modules/Core/Metadata/src/otbImageMetadataInterfaceBase.cxx
+11
-0
11 additions, 0 deletions
Modules/Core/Metadata/src/otbImageMetadataInterfaceBase.cxx
with
17 additions
and
0 deletions
Modules/Core/Metadata/include/otbImageMetadataInterfaceBase.h
+
6
−
0
View file @
5f55b21d
...
...
@@ -107,6 +107,12 @@ public:
double
GetGCPZ
(
unsigned
int
GCPnum
)
const
;
// otbMetadataGetGCPnumMacro(GCPZ, double, GCPnum, unsigned int);
/**
* Get The no data flags if existing
* return False otherwise
*/
bool
GetNoDataFlags
(
std
::
vector
<
bool
>
&
flags
,
std
::
vector
<
double
>
&
values
)
const
;
/** Get the six coefficients of affine geoTtransform. */
VectorType
GetGeoTransform
()
const
;
...
...
This diff is collapsed.
Click to expand it.
Modules/Core/Metadata/src/otbImageMetadataInterfaceBase.cxx
+
11
−
0
View file @
5f55b21d
...
...
@@ -222,6 +222,17 @@ ImageMetadataInterfaceBase::GetGCPZ(unsigned int GCPnum) const
else
return
(
0
);
}
bool
ImageMetadataInterfaceBase
::
GetNoDataFlags
(
std
::
vector
<
bool
>
&
flags
,
std
::
vector
<
double
>
&
values
)
const
{
bool
ret
=
itk
::
ExposeMetaData
<
std
::
vector
<
bool
>
>
(
this
->
GetMetaDataDictionary
(),
MetaDataKey
::
NoDataValueAvailable
,
flags
);
if
(
ret
)
ret
=
itk
::
ExposeMetaData
<
std
::
vector
<
double
>
>
(
this
->
GetMetaDataDictionary
(),
MetaDataKey
::
NoDataValue
,
values
);
return
ret
;
}
ImageMetadataInterfaceBase
::
VectorType
ImageMetadataInterfaceBase
::
GetGeoTransform
()
const
{
...
...
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