// Define the envelope (bounding box) for the mosaic ReferencedEnvelope envelope = ReferencedEnvelope.reference(DefaultGeographicCRS.WGS84);