1440 CU_ASSERT_DOUBLE_EQUAL(a1, 0.0177951, 0.0000001);
1441 CU_ASSERT_DOUBLE_EQUAL(a2, 0.017764, 0.0000001);
1450 CU_ASSERT_DOUBLE_EQUAL(a1, 0.0174613, 0.0000001);
1451 CU_ASSERT_DOUBLE_EQUAL(a2, 0.0174553, 0.0000001);
1459 CU_ASSERT_DOUBLE_EQUAL(pt.
x, 179.5, 0.0001);
1460 CU_ASSERT_DOUBLE_EQUAL(pt.
y, 1.50024, 0.0001);
int lwgeom_calculate_gbox_geodetic(const LWGEOM *geom, GBOX *gbox)
Calculate the geodetic bounding box for an LWGEOM.
void spheroid_init(SPHEROID *s, double a, double b)
Initialize a spheroid object for use in geodetic functions.
void lwgeom_free(LWGEOM *geom)
int gbox_centroid(const GBOX *gbox, POINT2D *out)
Computes the average(ish) center of the box and returns success.
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
#define LW_PARSER_CHECK_NONE
uint8_t gflags(int hasz, int hasm, int geodetic)
Construct a new flags char.
double gbox_angular_height(const GBOX *gbox)
GBOX utility functions to figure out coverage/location on the globe.
double gbox_angular_width(const GBOX *gbox)
Returns the angular width (longitudinal span) of the box in radians.