Commit 4a575990 authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: code review fix

parent 12101404
Pipeline #4062 canceled with stages
in 3 minutes and 42 seconds
......@@ -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];
}
......
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