[Cartoweb-users] Querying - is it possible use alias instead columnnames

Oliver Christen oliver.christen at camptocamp.com
Tue May 11 01:00:14 EST 2010


Hi Rafael

yes it is possible, simply use the translation system to replace the raw 
strings with the text you want.

see http://www.cartoweb.org/doc/cw3.5/xhtml/user.i18n.html

regards
Oliver

----- Original Message ----- 
From: "Rafael Rend" <rafaelrend at gmail.com>
To: <cartoweb-users at lists.maptools.org>
Sent: Tuesday, May 11, 2010 6:07 AM
Subject: [Cartoweb-users] Querying - is it possible use alias instead 
columnnames


Hi All,

 I have a question about querying informations from postgis and
showing to client. My personal doubt is about: if is it possible use
alias instead column names...

  After my postgis query. I used "query_returned_attributes" at my map
file to reduce fields, but i don't know if is it possible to associate
alias to each columns.
 Ex:
  METADATA
          "query_returned_attributes" "nome_mun cod_mun nome_micro sigla_uf"

 When I'm using "query_by_bbox" tool , and click in a city area, My result 
is:

nome_mun       cod_mun nome_micro              sigla_uf  (title)
São Desidério   292890.000000   Barreiras     BA      (row result)

But, I'd like to see:

Município                   Código Micro-Região Estado  (title)
São Desidério   292890.000000   Barreiras     BA     (row result)


 ----------
 Is It Possible ?. Or must I to create a view and put alias there ?.

 Sorry because is a no interesting question, but I haven't found
answer in any place
 :(.


 Thanks.
_______________________________________________
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users



More information about the Cartoweb-users mailing list