PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwpoint_get_y()

double lwpoint_get_y ( const LWPOINT point)

Definition at line 76 of file lwpoint.c.

77 {
78  POINT4D pt;
79  if ( lwpoint_is_empty(point) )
80  {
81  lwerror("lwpoint_get_y called with empty geometry");
82  return 0;
83  }
84  getPoint4d_p(point->point, 0, &pt);
85  return pt.y;
86 }
int getPoint4d_p(const POINTARRAY *pa, uint32_t n, POINT4D *point)
Definition: lwgeom_api.c:123
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:190
int lwpoint_is_empty(const LWPOINT *point)
Definition: lwpoint.c:291
Definition: liblwgeom.h:414
double y
Definition: liblwgeom.h:355

References getPoint4d_p(), lwerror(), lwpoint_is_empty(), LWPOINT::point, and POINT4D::y.

Referenced by BOX2D_construct(), geography_centroid(), geography_centroid_from_mpoly(), geometry_to_point(), lwgeom_azumith_spheroid(), lwgeom_project_spheroid(), and lwline_covers_lwpoint().

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