PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ test_lwpoint_get_ordinate()

static void test_lwpoint_get_ordinate ( void  )
static

Definition at line 418 of file cu_algorithm.c.

References lwpoint_get_ordinate(), POINT4D::m, POINT4D::x, POINT4D::y, and POINT4D::z.

Referenced by algorithms_suite_setup().

419 {
420  POINT4D p;
421 
422  p.x = 10.0;
423  p.y = 20.0;
424  p.z = 30.0;
425  p.m = 40.0;
426 
427  CU_ASSERT_EQUAL( lwpoint_get_ordinate(&p, 'X'), 10.0 );
428  CU_ASSERT_EQUAL( lwpoint_get_ordinate(&p, 'Y'), 20.0 );
429  CU_ASSERT_EQUAL( lwpoint_get_ordinate(&p, 'Z'), 30.0 );
430  CU_ASSERT_EQUAL( lwpoint_get_ordinate(&p, 'M'), 40.0 );
431 
432 }
double x
Definition: liblwgeom.h:336
double m
Definition: liblwgeom.h:336
double lwpoint_get_ordinate(const POINT4D *p, char ordinate)
Given a POINT4D and an ordinate number, return the value of the ordinate.
double z
Definition: liblwgeom.h:336
double y
Definition: liblwgeom.h:336
Here is the call graph for this function:
Here is the caller graph for this function: