[postgis-users] Angle

Arnaud Lesauvage thewild at freesurf.fr
Thu Jul 6 06:36:04 PDT 2006


Ezequias Rodrigues da Rocha wrote:
> Hi list,
> 
> Could someone tell me how to get an angle of a linestring feature ?
> 
> Regards...
> 

The azimuth(geometry, geometry) function might be what you are 
looking for.
Input geometries are points, so you might use 
Azimuth(StartPoint(geometry), EndPoint(geometry)) if geometry is a 
Linestring.

http://postgis.refractions.net/docs/ch06.html#id2528534

--
Arnaud





More information about the postgis-users mailing list