Opened 6 years ago

Last modified 2 years ago

#4531 assigned defect

PostGIS Raster driver: SetRasterProperties for empty rasters

Reported by: dzwarg Owned by: jorgearevalo
Priority: normal Milestone:
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: postgis_raster, postgisraster, wktraster
Cc: jorgearevalo

Description

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.

Change History (9)

comment:1 Changed 6 years ago by jorgearevalo

Cc: jorgearevalo added
Status: newassigned

comment:2 Changed 6 years ago by pracine

Keywords: postgis_raster added; postgisraster removed

comment:3 Changed 6 years ago by jorgearevalo

Milestone: 1.9.1

comment:4 Changed 6 years ago by Mateusz Łoskot

Keywords: postgisraster wktraster added

comment:5 Changed 5 years ago by jorgearevalo

Milestone: 1.9.12.0.0

comment:6 Changed 5 years ago by jorgearevalo

Milestone: 1.10.02.0

comment:7 Changed 5 years ago by jorgearevalo

Priority: normalhigh

comment:8 Changed 2 years ago by Even Rouault

Milestone: 2.0

Removing obsolete milestone

comment:9 Changed 2 years ago by Even Rouault

Priority: highnormal

All those tickets have more than one year and nobody has acted on it, so the priority is not so high

Note: See TracTickets for help on using tickets.