PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwpoint_get_y()

double lwpoint_get_y ( const LWPOINT point)

Definition at line 60 of file lwpoint.c.

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

Referenced by BOX2D_construct(), geometry_to_point(), lwgeom_azumith_spheroid(), and lwgeom_project_spheroid().

61 {
62  POINT4D pt;
63  if ( lwpoint_is_empty(point) )
64  lwerror("lwpoint_get_y called with empty geometry");
65  getPoint4d_p(point->point, 0, &pt);
66  return pt.y;
67 }
POINTARRAY * point
Definition: liblwgeom.h:395
int lwpoint_is_empty(const LWPOINT *point)
Definition: lwpoint.c:260
double y
Definition: liblwgeom.h:336
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:74
int getPoint4d_p(const POINTARRAY *pa, int n, POINT4D *point)
Definition: lwgeom_api.c:231
Here is the call graph for this function:
Here is the caller graph for this function: