3.7. Path
Prev | Up | Chapter 3. Data Types | Home | Next

## 3.7. Path #

A spherical path is a concatenation of spherical lines. Use cases are:

- rivers on earth

- trajectories of planets or comets on the sky plane

Paths within pgSphere are simplified lists of positions. The input syntax is :

    {pos1,pos2[,pos3[,pos4[,...]]]}

### Note

- The distance between 2 sequent positions has to be less than 180° and greater than zero.

- At least 2 positions are required.

Example 3.10. Path input example

A path going from `(10d,0d)` to `(80d,30d)` via `(45d,15d)`.

    sql> SELECT spath '{ (10d,0d),(45d,15d),(80d,30d) } ';

Prev | Up | Next
3.6. Ellipses | Home | 3.8. Polygon