Changes between Version 9 and Version 10 of UsersWikiplpgsqlfunctions
- Timestamp:
- 06/16/09 05:54:13 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersWikiplpgsqlfunctions
v9 v10 117 117 line geometry; 118 118 BEGIN 119 az := ST_Azimuth (ST_ !StartPoint(centerline), ST_!EndPoint(centerline));119 az := ST_Azimuth (ST_StartPoint(centerline), ST_EndPoint(centerline)); 120 120 dir := CASE WHEN az < pi() THEN -1 ELSE 1 END; 121 121 delx := ABS(COS(az)) * dist * dir;