3.7.  Path #

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

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) } ';