[postgis-users] problem using st_colormap in a command string

Tumasgiu Rossini rossini.t at gmail.com
Thu Dec 29 09:20:03 PST 2016


Sure :

   strColorMap &= "nv 0 0 0 0\n"
   strCores &= val_nivel1 & " 255 0 145 255\n"
   strCores &= val_nivel2 & " 181 19 111 255\n"
   strCores &= val_nivel3 & " 19 0 104 255\n"
   strCommand = "SELECT ST_ColorMap( rast, E'" + strColorMap + "') as rast
FROM tb_rasterdensity"

See www.postgresql.org/docs/9.6/static/sql-syntax-lexical.html  4.1.2.2.

2016-12-29 13:57 GMT+01:00 Liglio Cavalcante <liglio.pessoal at nexxa.com.br>:

> I 'm sorry, but I don't understand "missed the E modifier before the string
> literal". Can you show me in my code ?
>
>
>
> --
> View this message in context: http://postgis.17.x6.nabble.
> com/problem-using-st-colormap-in-a-command-string-tp5010778p5010784.html
> Sent from the PostGIS - User mailing list archive at Nabble.com.
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/postgis-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20161229/e80a38b5/attachment.html>


More information about the postgis-users mailing list