// Check if we have layers with different projection ref
for(;lit!=m_OgrDS->end();++lit)
{
if(lit->GetProjectionRef()!=inputProjectionRef)
{
otbAppLogWARNING("The input dataset have layers with different projection reference system. The application will base all extent computation on the srs of the first layer only.");
}
}
if(inputProjectionRef=="")
{
otbAppLogWARNING("Failed to find a valid projection ref in dataset. The application will asume that the given reference image or origin, spacing and size are consistent with the dataset geometry. Output EPSG code will be ignored.");
validInputProjRef=false;
}
else
{
otbAppLogINFO("Input dataset projection reference system is: "<<inputProjectionRef);
otbAppLogINFO("Input dataset extent is ("<<ulx<<", "<<uly<<") ("<<lrx<<", "<<lry<<")");
}
if(inputProjectionRef=="")
{
otbAppLogWARNING("Failed to find a valid projection ref in dataset. The application will asume that the given reference image or origin, spacing and size are consistent with the dataset geometry. Output EPSG code will be ignored.");
validInputProjRef=false;
}
else
{
validInputProjRef=true;
otbAppLogINFO("Input dataset projection reference system is: "<<inputProjectionRef);