Error XX000 usually means there is an error in an external lib, probably GEOSm that results from an invalid geometry in some intermediate stage of the processing. It would help if you could upload some data to replicate this?
– John PowellFeb 6 '15 at 12:47

1 Answer
1

ST_AsRaster does not support the TIN type yet. It may in the future but doesn't right now. You could use the default behavior to return a geometry collection of triangles, since I think ST_AsRaster does support that. Though I suspect that might not be what you are looking for.

As a general note, functions that support Tin are noted in the description of each function. If you don't see TIN mentioned, then it doesn't support it.

I had the same doubt when looking at documentation of ST_Raster, but was confused after looking at error message thrown when trying to convert TIN surface. Thanks for your input, I am keeping the question open for few more days to see if any other inputs are obtained on this topic.
– 3218801Feb 9 '15 at 9:51

I think I may have spoken too soon. Just noticed you are using the default ST_DelaunayTriangles call, which returns a collection of polygons (not a TIN). ST_AsRaster doesn't support Z either I don't think, but I think it just flattens it in general instead of complaining. What does your SELECT postgis_full_version(); return? What you really want to do is probably store the Z as the raster band value of each polygon. I have a trick for that somewhere. Will post if I can find it.
– LR1234567Feb 10 '15 at 2:29