1372 lwg =
lwgeom_from_wkt(
"POLYGON((-122.848227067007 42.5007249610493,-122.848309475585 42.5007179884263,-122.848327688675 42.500835880696,-122.848245279942 42.5008428533324,-122.848227067007 42.5007249610493))",
LW_PARSER_CHECK_NONE);
1378 CU_ASSERT_DOUBLE_EQUAL(a1, 89.721147136698008, 0.1);
1383 CU_ASSERT_DOUBLE_EQUAL(a2, 89.868413479309585, 0.1);
1391 CU_ASSERT_DOUBLE_EQUAL(a1, 12341436880.106982993974659, 0.1);
1393 #ifdef PROJ_GEODESIC
1395 CU_ASSERT_DOUBLE_EQUAL(a2, 12286884908.946891319597874, 0.1);
1404 CU_ASSERT_DOUBLE_EQUAL(a1, 12360265021.368023059138681, 0.1);
1406 #ifdef PROJ_GEODESIC
1408 CU_ASSERT_DOUBLE_EQUAL(a2, 12305128751.042900673161556, 0.1);
1417 CU_ASSERT_DOUBLE_EQUAL(a1, 12360265021.368023059138681, 0.1);
1419 #ifdef PROJ_GEODESIC
1421 CU_ASSERT_DOUBLE_EQUAL(a2, 12305128751.042900673161556, 0.1);
1430 CU_ASSERT_DOUBLE_EQUAL(a1, 12360265021.368023059138681, 0.1);
1432 #ifdef PROJ_GEODESIC
1434 CU_ASSERT_DOUBLE_EQUAL(a2, 12305128751.042900673161556, 0.1);
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
int lwgeom_calculate_gbox_geodetic(const LWGEOM *geom, GBOX *gbox)
Calculate the geodetic bounding box for an LWGEOM.
double lwgeom_area_spheroid(const LWGEOM *lwgeom, const SPHEROID *spheroid)
Calculate the geodetic area of a lwgeom on the spheroid.
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)
lwflags_t lwflags(int hasz, int hasm, int geodetic)
Construct a new flags bitmask.
double lwgeom_area_sphere(const LWGEOM *lwgeom, const SPHEROID *spheroid)
Calculate the geodetic area of a lwgeom on the sphere.