Skip to content
Snippets Groups Projects
Commit 4a575990 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

ENH: code review fix

parent 12101404
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ public:
/** Returns true if a sensor geometric model is present */
bool HasSensorGeometry() const;
protected:
private:
ImageMetadata m_Imd;
};
......
......@@ -49,6 +49,7 @@ void ImageCommons::SetProjectionRef(const std::string& proj)
std::string ImageCommons::GetGCPProjection(void) const
{
assert(m_Imd.Has(MDGeom::GCP));
return m_Imd.GetGCPParam().GCPProjection;
}
......@@ -65,6 +66,7 @@ unsigned int ImageCommons::GetGCPCount(void) const
const OTB_GCP& ImageCommons::GetGCPs(unsigned int GCPnum) const
{
assert(GCPnum < GetGCPCount());
return m_Imd.GetGCPParam().GCPs[GCPnum];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment