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
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
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
Main Repositories
otb
Commits
b315bdca
Commit
b315bdca
authored
Apr 08, 2015
by
Julien Michel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: Adding helper methods to set ImageKeywordList and ProjectionRef to Image/VectorImage
parent
f45c930e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
0 deletions
+41
-0
Modules/Core/ImageBase/include/otbImage.h
Modules/Core/ImageBase/include/otbImage.h
+6
-0
Modules/Core/ImageBase/include/otbImage.txx
Modules/Core/ImageBase/include/otbImage.txx
+15
-0
Modules/Core/ImageBase/include/otbVectorImage.h
Modules/Core/ImageBase/include/otbVectorImage.h
+4
-0
Modules/Core/ImageBase/include/otbVectorImage.txx
Modules/Core/ImageBase/include/otbVectorImage.txx
+16
-0
No files found.
Modules/Core/ImageBase/include/otbImage.h
View file @
b315bdca
...
...
@@ -141,6 +141,9 @@ public:
/** Get the projection coordinate system of the image. */
virtual
std
::
string
GetProjectionRef
(
void
)
const
;
virtual
void
SetProjectionRef
(
const
std
::
string
&
wkt
);
/** Get the GCP projection coordinates of the image. */
virtual
std
::
string
GetGCPProjection
(
void
)
const
;
...
...
@@ -168,8 +171,11 @@ public:
/** Get image keyword list */
virtual
ImageKeywordlistType
GetImageKeywordlist
(
void
);
virtual
const
ImageKeywordlistType
GetImageKeywordlist
(
void
)
const
;
virtual
void
SetImageKeywordList
(
const
ImageKeywordlistType
&
kwl
);
void
PrintSelf
(
std
::
ostream
&
os
,
itk
::
Indent
indent
)
const
;
/// Copy metadata from a DataObject
...
...
Modules/Core/ImageBase/include/otbImage.txx
View file @
b315bdca
...
...
@@ -37,6 +37,13 @@ std::string Image<TPixel, VImageDimension>::GetProjectionRef(void) const
return (this->GetMetaDataInterface()->GetProjectionRef());
}
template <class TPixel, unsigned int VImageDimension>
void
Image<TPixel, VImageDimension>::SetProjectionRef(const std::string& kwl)
{
itk::EncapsulateMetaData<std::string>(this->GetMetaDataDictionary(),MetaDataKey::ProjectionRefKey,kwl);
}
template <class TPixel, unsigned int VImageDimension>
std::string Image<TPixel, VImageDimension>::GetGCPProjection(void) const
{
...
...
@@ -150,6 +157,14 @@ Image<TPixel, VImageDimension>::GetImageKeywordlist(void)
return kwl;
}
template <class TPixel, unsigned int VImageDimension>
void
Image<TPixel,VImageDimension>::SetImageKeywordList(const ImageKeywordlistType& kwl)
{
itk::EncapsulateMetaData<ImageKeywordlistType>(this->GetMetaDataDictionary(),MetaDataKey::OSSIMKeywordlistKey,kwl);
}
template <class TPixel, unsigned int VImageDimension>
const typename Image<TPixel, VImageDimension>::ImageKeywordlistType
Image<TPixel, VImageDimension>::GetImageKeywordlist(void) const
...
...
Modules/Core/ImageBase/include/otbVectorImage.h
View file @
b315bdca
...
...
@@ -113,6 +113,8 @@ public:
/** Get the projection coordinate system of the image. */
virtual
std
::
string
GetProjectionRef
(
void
)
const
;
virtual
void
SetProjectionRef
(
const
std
::
string
&
wkt
);
/** Get the GCP projection coordinates of the image. */
virtual
std
::
string
GetGCPProjection
(
void
)
const
;
...
...
@@ -142,6 +144,8 @@ public:
virtual
ImageKeywordlistType
GetImageKeywordlist
(
void
);
virtual
const
ImageKeywordlistType
GetImageKeywordlist
(
void
)
const
;
virtual
void
SetImageKeywordList
(
const
ImageKeywordlistType
&
kwl
);
/// Copy metadata from a DataObject
virtual
void
CopyInformation
(
const
itk
::
DataObject
*
);
...
...
Modules/Core/ImageBase/include/otbVectorImage.txx
View file @
b315bdca
...
...
@@ -38,6 +38,14 @@ std::string VectorImage<TPixel, VImageDimension>::GetProjectionRef(void) const
return (this->GetMetaDataInterface()->GetProjectionRef());
}
template <class TPixel, unsigned int VImageDimension>
void
VectorImage<TPixel, VImageDimension>::SetProjectionRef(const std::string& kwl)
{
itk::EncapsulateMetaData<std::string>(this->GetMetaDataDictionary(),MetaDataKey::ProjectionRefKey,kwl);
}
template <class TPixel, unsigned int VImageDimension>
std::string VectorImage<TPixel, VImageDimension>::GetGCPProjection(void) const
{
...
...
@@ -163,6 +171,14 @@ VectorImage<TPixel, VImageDimension>::GetImageKeywordlist(void) const
return kwl;
}
template <class TPixel, unsigned int VImageDimension>
void
VectorImage<TPixel,VImageDimension>::SetImageKeywordList(const ImageKeywordlistType& kwl)
{
itk::EncapsulateMetaData<ImageKeywordlistType>(this->GetMetaDataDictionary(),MetaDataKey::OSSIMKeywordlistKey,kwl);
}
template <class TPixel, unsigned int VImageDimension>
void
VectorImage<TPixel, VImageDimension>
...
...
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