Opened 12 years ago

Closed 5 years ago

#4562 closed enhancement (wontfix)

PostGIS Raster driver: Low range pixel type band should be converted to higher range one

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

Low range pixel type band should be converted to higher range one when processing a multiple band raster. For example, doing:

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

on this table:

CREATE TABLE test09_3 AS
SELECT 1 rid, ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(10, 10, 0, 0, 0.1, 0.1, 0, 0, 4269), '8BUI'::text, 1, 0), '32BSI'::text, 2, 1) rast;

results in a raster having two 8 bit bands. A clever choice would be to convert the first band to 32 bit, not the opposite. The rule should be convert everything to the pixel type having the broadest range of values.

Change History (6)

comment:1 by jorgearevalo, 12 years ago

Milestone: 1.9.1
Status: newassigned

comment:2 by Mateusz Łoskot, 12 years ago

Keywords: postgisraster wktraster added

comment:3 by jorgearevalo, 11 years ago

Milestone: 1.9.12.0.0

comment:4 by jorgearevalo, 11 years ago

Milestone: 1.10.02.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, 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.