diff --git a/modules/odm_georef/src/Georef.cpp b/modules/odm_georef/src/Georef.cpp index 39bdf65e..91843162 100755 --- a/modules/odm_georef/src/Georef.cpp +++ b/modules/odm_georef/src/Georef.cpp @@ -1,4 +1,4 @@ -// to format log_ output; version 2018-02-18 +// to format log_ output; version 2018-02-18, skip gcp comments and empty lines. #include #include using namespace std; @@ -682,6 +682,9 @@ void Georef::readGCPs() { std::istringstream istr(gcpString); GeorefGCP gcp; + if ( ! gcpString[0] || gcpString[0] == '#' ) { /* skip comments */ + continue; + } gcp.extractGCP(istr); gcps_.push_back(gcp); ++nrGCPs;