gdalinfo works. But I think I'm in a dead-end. The in-memory datasets must have something that identifies them. And we should check for existing in-memory datasets before raising the query. So far, so good. Now the problem: the datasets may come from overview tables. And they'd have the same reference (upper left corner) than the datasets from non-overview tables