Commit 0ea9c0fc authored by Julien Michel's avatar Julien Michel
Browse files

ENH: Adding a missing const getter on GCPs

parent 921464c2
......@@ -117,6 +117,7 @@ public:
virtual unsigned int GetGCPCount(void) const;
virtual OTB_GCP& GetGCPs(unsigned int GCPnum);
virtual const OTB_GCP& GetGCPs(unsigned int GCPnum) const;
virtual std::string GetGCPId(unsigned int GCPnum) const;
virtual std::string GetGCPInfo(unsigned int GCPnum) const;
......
......@@ -56,6 +56,12 @@ OTB_GCP& VectorImage<TPixel, VImageDimension>::GetGCPs(unsigned int GCPnum)
return (this->GetMetaDataInterface()->GetGCPs(GCPnum));
}
template <class TPixel, unsigned int VImageDimension>
const OTB_GCP& VectorImage<TPixel, VImageDimension>::GetGCPs(unsigned int GCPnum) const
{
return (this->GetMetaDataInterface()->GetGCPs(GCPnum));
}
template <class TPixel, unsigned int VImageDimension>
std::string VectorImage<TPixel, VImageDimension>::GetGCPId(unsigned int GCPnum) const
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment