sellipse functions
#pgSphere provides 4 functions to get the parameters of a spherical ellipse:
Table 6.2. Getting spherical ellipse attributes
| function | description |
|---|---|
lrad
| the major radius of the ellipse |
srad
| the minor radius of the ellipse |
center
| the center of the ellipse |
inc
| the inclination of the ellipse |
To get the ellipse center, you can use the
operator @@ (Section 5.7)
instead of using the function
center(sellipse).
Example 6.10. Get the minor radius of an ellipse
sql> SELECT srad ( sellipse '< { 10d, 5d }, ( 20d, 0d ), 90d >' )
* 180.0/ pi() AS srad ;
srad
------
5
(1 row)