[DE1128] Metadata for files without gaps was not handled
properly. Found a problem with the generation of lat/lon layers as
well. Got fixed at the same time.