PostGIS  2.5.1dev-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 171 of file lwgeodetic.c.

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(), ptarray_area_sphere(), ptarray_area_spheroid(), ptarray_distance_spheroid(), ptarray_length_spheroid(), ptarray_segmentize_sphere(), test_sphere_direction(), and test_sphere_project().

172 {
175 }
double longitude_radians_normalize(double lon)
Convert a longitude to the range of -PI,PI.
Definition: lwgeodetic.c:41
double latitude_radians_normalize(double lat)
Convert a latitude to the range of -PI/2,PI/2.
Definition: lwgeodetic.c:69
#define deg2rad(d)
Conversion functions.
Definition: lwgeodetic.h:74
Here is the call graph for this function:
Here is the caller graph for this function: