4.1. Point
Prev | Up | Chapter 4. Constructors | Home | Next

## 4.1. Point #

There is only one constructor function for spherical points.

`spoint(` | lng, |
| lat`)`; |

`float8 lng`;
`float8 lat`;

where `lng` is the longitude of the spherical point in radians, `lng` is the latitude of the spherical point in radians.

Example 4.1. A spherical point from longitude and latitude

Get a spherical position with 270° of longitude and -30° of latitude.

    sql> SELECT spoint ( 270.0*pi()/180.0,-30.0*pi()/180.0 ) AS spoint;

Prev | Up | Next
Chapter 4. Constructors | Home | 4.2. Euler transformation