[postgis-users] Re: azimuth and correct angle

luca marletta lucamarle at gmail.com
Wed May 23 00:47:01 PDT 2007


Solved thanks, I put here for others

right way for me is:

90 - degrees(azimuth(startpoint(line_substring(r.the_geom, 0.95,1)),
n.the_geom))


On 5/23/07, luca marletta <lucamarle at gmail.com> wrote:
> Could anyone give me an hint on azimuth function?
>
> I did this
> degrees(azimuth(startpoint(line_substring(r.the_geom, 0.95,1)), n.the_geom))
>
> where r.the_geom is a line string that touch in the end point
> n.the_geom and the 2 point
> 1) n.the_geom
> 2) startpoint(line_substring(r.the_geom, 0.95,1)
>
> are perfectly draw as I want but degrees(azimuth between them is not
> correct in most cases
>
> thanks
>
> luca
>
> --
> luca marletta
> www.beopen.it
>


-- 
luca marletta
www.beopen.it



More information about the postgis-users mailing list