Bug report #8765

Postgis raster shows random data with out-db image data

Added by asdf asdf about 11 years ago. Updated over 10 years ago.

Status:Closed
Priority:High
Assignee:-
Category:DB Manager
Affected QGIS version:2.0.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:duplicate
Crashes QGIS or corrupts data:Yes Copied to github as #:17471

Description

Out-db rasters from postgis database are shown as random data and sometimes crashes QGIS.

The problem might come from the way the database is queried.

Query made by QGIS taken from the server:
SELECT st_band(rast, 3), st_width(rast), st_height(rast), ....

As far as I have tested "st_band" in queries return data as out-db referenced rasters and contain no pixel data.
If there are no modification to the data like st_union or something like that, rasters stays as file references, which obviously cannot be used by the client over the network.


Related issues

Duplicates QGIS Application - Bug report #8628: DB Manager does not load PostGIS rasters using QGIS-maste... Closed 2013-09-18

History

#1 Updated by asdf asdf about 11 years ago

Forgot to add details of the used version.

QGIS version 2.0.1-Dufour
QGIS code revision d94c044
Compiled against Qt 4.8.5
Running against Qt 4.8.5
Compiled against GDAL/OGR 1.10.0
Running against GDAL/OGR 1.10.1
Compiled against GEOS 3.4.2-CAPI-1.8.2
Running against GEOS 3.4.2-CAPI-1.8.2 r3921
PostgreSQL Client Version 9.2.4
SpatiaLite Version 4.1.1
QWT Version 5.2.3
PROJ.4 Version 480
QScintilla2 Version 2.7.2

#2 Updated by Giovanni Manghi over 10 years ago

  • Priority changed from Normal to High

#3 Updated by Giovanni Manghi over 10 years ago

  • Status changed from Open to Feedback

should be duplicate of #8628

#4 Updated by Jürgen Fischer over 10 years ago

  • Category changed from Browser to DB Manager

#5 Updated by asdf asdf over 10 years ago

I'm not sure if this is duplicate of the #8628, this might actually be a just problem created by me by creating overviews manually as I have overviews for other use and didn't want to duplicate static raster data indb.

As a consequence of this self made overviews rasters are not indb and the overview query will fail as it relies that the data is always indb.

Anyways the question is should the overview query always expect indb data or not.

#6 Updated by Giovanni Manghi over 10 years ago

Anyways the question is should the overview query always expect indb data or not.

better ask this in the developers mailing list and eventually close this as invalid.

#7 Updated by Giovanni Manghi over 10 years ago

  • Resolution set to duplicate
  • Status changed from Feedback to Closed

Also available in: Atom PDF