Ticket #4531 (assigned defect)
PostGIS Raster driver: SetRasterProperties for empty rasters
|Reported by:||dzwarg||Owned by:||jorgearevalo|
When a new dataset is opened, if there are no rasters, no dataset can be opened.
There are legitimate use cases where an empty dataset is desired. When creating a new dataset, the initial tables need to be created, then a dataset returned (all prior to writing anything to the dataset).
I suggest removing the check on line 391(-ish) where:
PQntuples(poResult) <= 0
This would require a fallback to a default geotransform, raster size, and block size.