[postgis-devel] Error in Raster Docs

Stephen Mather stephen at smathermather.com
Mon Dec 9 20:15:58 PST 2013


http://www.postgis.net/docs/manual-2.1/RT_ST_AsRaster.html


SELECT ST_AsPNG(ST_AsRaster(ST_Buffer(ST_Point(1,5),10),150, 150, '2BUI'));

ERROR:  The pixel type of band 1 in the raster is not 8BUI or 16BUI.
The PNG format can only be used with 8BUI and 16BUI pixel types.
********** Error **********

ERROR: The pixel type of band 1 in the raster is not 8BUI or 16BUI.
The PNG format can only be used with 8BUI and 16BUI pixel types.
SQL state: P0001


... Unless this is a function of my PNG driver... .

Best,
Steve



More information about the postgis-devel mailing list