4.3.  Circle #

The function

scircle(center,  
 radius); 
spoint center;
float8 radius;
 

returns a spherical circle with center at center and a radius radius in radians. The circle radius has to be larger than or equal to zero but less or equal to 90°. Otherwise, this function returns an error.

Example 4.3. A circle around the north pole

Get a spherical circle around the North Pole with a radius of 30°.

sql> SELECT set_sphere_output('DEG');
 set_sphere_output 
-------------------
 SET DEG
(1 row)

sql> SELECT scircle ( spoint '(0d,90d)', 30.0*pi()/180.0 );
      scircle       
--------------------
 <(0d , 90d) , 30d>
(1 row)