[postgis-devel] [PostGIS] #1617: [raster] several regress failures on raster (old mingw)
PostGIS
trac at osgeo.org
Sun Feb 26 12:57:59 PST 2012
#1617: [raster] several regress failures on raster (old mingw)
---------------------+------------------------------------------------------
Reporter: robe | Owner: dustymugs
Type: defect | Status: assigned
Priority: blocker | Milestone: PostGIS 2.0.0
Component: raster | Version: trunk
Keywords: mingw |
---------------------+------------------------------------------------------
Changes (by dustymugs):
* owner: pracine => dustymugs
* status: new => assigned
Comment:
Gah! No need to do additional testing. I know what's causing it.
PostGIS Raster has the pixel type 8BSI. GDAL does not support 8BSI so we
use the GDAL pixel type GDT_Int16. When converting a raster to a GDAL MEM
dataset, we use a pointer to the location of the pixel data. But, there
is a mismatch as GDAL is expecting a block of data in 16-bit signed
integer when the data is in 8-bit signed integer. And thus the memcpy
messages pramsey was getting in gdb. GDAL was expecting the data block to
be twice the size of what is in the raster.
So, that's the problem. It only affects the 8BSI pixel type as all other
pixel-types have a clean one-to-one match. I hope to have a fix committed
sometime today or in the worst case, tomorrow.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1617#comment:16>
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