[postgis-devel] [PostGIS] #2111: [raster] External band numbers are capped to 1 - 256
PostGIS
trac at osgeo.org
Tue Nov 27 12:23:24 PST 2012
#2111: [raster] External band numbers are capped to 1 - 256
-----------------------+----------------------------------------------------
Reporter: dustymugs | Owner: dustymugs
Type: defect | Status: new
Priority: critical | Milestone: PostGIS Future
Component: raster | Version: trunk
Keywords: |
-----------------------+----------------------------------------------------
In looking at the code, the variable for the external band number is set
to uint8_t. This is reflected by the serialized raster allocating 1 byte
for the band number.
Having external band numbers set to 1 - 256 is a serious limitation
considering external band data is processed through GDAL, which probably
has a much higher limit.
The external band number variable should be at least uint16_t, which is
the same as the number of bands variable for the raster object.
I don't know when this can be fixed as this affects the serialized raster
format. The raster object does have a version flag so this fix could be
introduced in PostGIS 2.1.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2111>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list