<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi list,<br>
<br>
I am still on my crusade to my real angle (not azimuth).  Even with the
mapserver doesen't helping me with labels I am sill trying to retrieve
the real angle of a linestring.<br>
<br>
As you should know I have the azimuth of a set of linestrings and after
a radians to degree conversion I noticed that the XY system is quite
different from the Azimuth system and I need to do some conversions for
each quadrant.<br>
<br>
<b>So my question is:</b> How do I apply a if statement on
Postgis/Postgresql ? I know is is not a Postgis question but I think
you could help me.<br>
<br>
I am trying to run this command line on psql:<br>
<br>
select angulo from mub;<br>
IF ANGLE >= 0 AND ANGLE <=90  THEN<br>
 UPDATE TABLE MUB SET ANGLE = 90 – ANGLE<br>
END IF;<br>
<br>
But it does not work. Any help will be welcomed.<br>
<br>
Regards ...<br>
<pre class="moz-signature" cols="72">-- 
Ezequias Rodrigues da Rocha
<a class="moz-txt-link-freetext" href="http://ezequiasrocha.blogspot.com">http://ezequiasrocha.blogspot.com</a>
<a class="moz-txt-link-abbreviated" href="mailto:msn:ezequias@hotmail.com">msn:ezequias@hotmail.com</a>
"the worst of democracies is still better than the best of dictatorship"
</pre>
</body>
</html>