[postgis-devel] Error in Raster Docs

Bborie Park dustymugs at gmail.com
Mon Dec 9 20:28:12 PST 2013


Yes. You are correct. I see that problem here on 2.1. Ticket?

-bborie


On Mon, Dec 9, 2013 at 8:15 PM, Stephen Mather <stephen at smathermather.com>wrote:

> 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
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20131209/da43d406/attachment.html>


More information about the postgis-devel mailing list