Opened 13 years ago
Closed 13 years ago
#1616 closed defect (fixed)
[raster] ST_AsRaster do not set nodata value properly
Reported by: | pracine | Owned by: | pracine |
---|---|---|---|
Priority: | high | Milestone: | PostGIS 2.0.0 |
Component: | raster | Version: | master |
Keywords: | Cc: |
Description
SELECT ST_BandNodataValue( ST_AsRaster( ST_Buffer(ST_SetSRID(ST_MakePoint(-1, 1), 0), 2), 1.0, -1.0, 0.2, 0.2, '8BSI', 1, -10, 0, 0, false) , 1)
Should return -10. It returns 0.
Note:
See TracTickets
for help on using tickets.
Fixed in r9293. Problem relates directly to the 8BSI pixel type which has no equivalent in GDAL. 8BSI is now treated as GDT_Int16.