PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ geographic_point_init()

void geographic_point_init ( double  lon,
double  lat,
GEOGRAPHIC_POINT g 
)

Initialize a geographic point.

Parameters
lonlongitude in degrees
latlatitude in degrees

Definition at line 180 of file lwgeodetic.c.

181 {
184 }
double longitude_radians_normalize(double lon)
Convert a longitude to the range of -PI,PI.
Definition: lwgeodetic.c:50
double latitude_radians_normalize(double lat)
Convert a latitude to the range of -PI/2,PI/2.
Definition: lwgeodetic.c:78
#define deg2rad(d)
Conversion functions.
Definition: lwgeodetic.h:79

References deg2rad, GEOGRAPHIC_POINT::lat, latitude_radians_normalize(), GEOGRAPHIC_POINT::lon, and longitude_radians_normalize().

Referenced by circ_node_leaf_new(), circ_node_leaf_point_new(), circ_tree_contains_point(), circ_tree_distance_tree_internal(), CircTreePIP(), line2pts(), lwgeom_azumith_spheroid(), lwgeom_project_spheroid(), lwline_covers_lwline(), lwline_covers_lwpoint(), lwpoly_covers_point2d(), lwpoly_pt_outside_hack(), ptarray_area_sphere(), ptarray_area_spheroid(), ptarray_distance_spheroid(), ptarray_length_spheroid(), ptarray_segmentize_sphere(), test_sphere_direction(), and test_sphere_project().

Here is the call graph for this function:
Here is the caller graph for this function: