}
}
else
{
alreadyExistingSpatialRefValid = true;
alreadyExistingSpatialRef = (spatialRef!=null) ? spatialRef.Clone() : null;
}
/* -------------------------------------------------------------------- */
/* Check if all layers in dataset have the same attributes schema. */
/* -------------------------------------------------------------------- */