Opened 12 years ago

Closed 5 years ago

#4560 closed defect (wontfix)

PostGIS Raster driver: Crashes in mode 2 with two tiles, side by side (separated by one missing tile)

Reported by: pracine Owned by: jorgearevalo
Priority: normal Milestone: closed_because_of_github_migration
Component: GDAL_Raster Version: 1.9.0
Severity: normal Keywords: postgis_raster, postgisraster, wktraster,
Cc: jorgearevalo, dzwarg

Description

The driver crashes with this command:

C:\Windows\System32>gdal_translate -oF GTiff "PG:host='localhost' dbname='test3' user='postgres' password='1postgres' ta
ble='test03_2' mode=2" c:/temp/test03_2-mode2.tif

on a table like this:

CREATE TABLE test03_2 AS
SELECT 1 rid, ST_MapAlgebraExpr(ST_AddBand(ST_MakeEmptyRaster(10, 10, 0, 0, 0.1, 0.1, 0, 0, 4269), '8BUI'::text, 1, 0), '32BUI', '([rast.x] - 1) * 10 + [rast.y]') rast
UNION ALL
SELECT 2 rid, ST_MapAlgebraExpr(ST_AddBand(ST_MakeEmptyRaster(10, 10, 2, 0, 0.1, 0.1, 0, 0, 4269), '8BUI'::text, 1, 0), '32BUI', '([rast.x] - 1) * 10 + [rast.y] + 1') rast;

Change History (7)

comment:1 by pracine, 12 years ago

It also crashes with this raster arrangement which should be just a little bit more complex to handle:

CREATE TABLE test04 AS
SELECT 1 rid, ST_MapAlgebraExpr(ST_AddBand(ST_MakeEmptyRaster(10, 10, 0, 0, 0.1, 0.1, 0, 0, 4269), '8BUI'::text, 1, 0), '32BUI', '([rast.x] - 1) * 10 + [rast.y]') rast
UNION ALL
SELECT 2 rid, ST_MapAlgebraExpr(ST_AddBand(ST_MakeEmptyRaster(10, 10, 1, 1, 0.1, 0.1, 0, 0, 4269), '8BUI'::text, 1, 0), '32BUI', '([rast.x] - 1) * 10 + [rast.y] + 1') rast;

comment:2 by jorgearevalo, 12 years ago

Status: newassigned

comment:3 by Mateusz Łoskot, 12 years ago

Keywords: postgisraster wktraster added

comment:4 by jorgearevalo, 11 years ago

Milestone: 2.0
Version: unspecified1.9.0

comment:5 by Even Rouault, 9 years ago

Cc: jorgearevalo dzwarg added; jorgearevalo dzwarg removed
Milestone: 2.0

Removing obsolete milestone

comment:6 by Even Rouault, 9 years ago

Priority: highnormal

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

comment:7 by Even Rouault, 5 years ago

Milestone: closed_because_of_github_migration
Resolution: wontfix
Status: assignedclosed

This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.

Note: See TracTickets for help on using tickets.