else if ( !accept_different_schemas )
{
FeatureDefn poFeatureDefnCur = poLayer.GetLayerDefn();
assert(null != poFeatureDefnCur);
int fieldCount = poFeatureDefnCur.GetFieldCount();
if( fieldCount != poFeatureDefn.GetFieldCount())
{
System.err.print("Number of attributes of layer "+poLayer.GetLayerDefn().GetName()+" of "+args[nFirstSourceDataset]+" does not match ... skipping it.\n");