Commit 75b5aa68 authored by Luc Hermitte's avatar Luc Hermitte

COMP: OTB-134/OGR GetProjectionRef() shall use Layer::GetName() instead of OGRLayer::GetName()

parent 186aac61
......@@ -249,7 +249,7 @@ std::string otb::ogr::Layer::GetProjectionRef() const
if(res != OGRERR_NONE)
{
itkGenericExceptionMacro(<< "Cannot convert spatial reference to wkt string for layer <"
<<m_Layer->GetName()<<">: " << CPLGetLastErrorMsg());
<<GetName()<<">: " << CPLGetLastErrorMsg());
}
assert(wkt);
......
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