1598{
1601 double length;
1603
1604
1606 s.a =
s.b =
s.radius;
1607
1608
1609
1610
1611
1612
1613
1614
1617 CU_ASSERT_DOUBLE_EQUAL(length, 2.0, 0.001);
1620 CU_ASSERT_DOUBLE_EQUAL(length, 2.0, 0.001);
1623
1626 CU_ASSERT_DOUBLE_EQUAL(length, 1.0, 0.001);
1629 CU_ASSERT_DOUBLE_EQUAL(length, 1.0, 0.001);
1632
1635 CU_ASSERT_DOUBLE_EQUAL(length, 0.0, 0.001);
1638 CU_ASSERT_DOUBLE_EQUAL(length, 0.0, 0.001);
1641}
char result[OUT_DOUBLE_BUFFER_SIZE]
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
LWGEOM * geography_substring(const LWLINE *line, const SPHEROID *s, double from, double to, double tolerance)
Return the part of a line between two fractional locations.
double lwgeom_length(const LWGEOM *geom)
void spheroid_init(SPHEROID *s, double a, double b)
Initialize a spheroid object for use in geodetic functions.
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)