17 #include "CUnit/Basic.h" 18 #include "CUnit/CUnit.h" 82 CU_ASSERT( out == NULL );
88 CU_ASSERT( out == NULL );
94 CU_ASSERT( out == NULL );
100 in =
lwgeom_from_text(
"CIRCULARSTRING(29.2893218813453 70.7106781186548,100 100,200 0)");
121 #ifndef SKIP_TEST_RETAIN_ANGLE 154 CU_ASSERT( out == NULL );
159 CU_ASSERT( out == NULL );
180 #ifndef SKIP_TEST_RETAIN_ANGLE 248 "2696000.553 1125699.831999999936670, " 249 "2695950.552000000141561 1125749.833000000100583, " 250 "2695865.195999999996275 1125835.189000)");
261 #ifndef SKIP_TEST_RETAIN_ANGLE 292 CU_ASSERT( out == NULL );
297 CU_ASSERT( out == NULL );
319 #ifndef SKIP_TEST_RETAIN_ANGLE 350 fprintf(stderr,
"linearization is not direction neutral:\n");
352 fprintf(stderr,
"OUT1: %s\n", str);
355 fprintf(stderr,
"OUT2: %s\n", str);
370 CU_pSuite suite = CU_add_suite(
"lwstroke", NULL, NULL);
LWGEOM * lwgeom_grid(const LWGEOM *lwgeom, const gridspec *grid)
Tolerance expresses the maximum angle between the radii generating approximation line vertices...
char * lwgeom_to_wkt(const LWGEOM *geom, uint8_t variant, int precision, size_t *size_out)
WKT emitter function.
#define ASSERT_STRING_EQUAL(o, e)
void lwgeom_free(LWGEOM *geom)
Tolerance expresses the maximum distance between an arbitrary point on the curve and the closest poin...
void lwstroke_suite_setup(void)
static char * lwgeom_to_text(const LWGEOM *geom, int prec)
#define LW_PARSER_CHECK_NONE
int lwgeom_parse_wkt(LWGEOM_PARSER_RESULT *parser_result, char *wktstr, int parse_flags)
Parse a WKT geometry string into an LWGEOM structure.
void cu_error_msg_reset()
static void test_lwcurve_linearize(void)
Parser result structure: returns the result of attempting to convert (E)WKT/(E)WKB to LWGEOM...
#define PG_ADD_TEST(suite, testfunc)
static LWGEOM * lwgeom_from_text(const char *str)
char lwgeom_same(const LWGEOM *lwgeom1, const LWGEOM *lwgeom2)
geom1 same as geom2 iff
Symmetric linearization means that the output vertices would be the same no matter the order of the p...
void lwgeom_reverse(LWGEOM *lwgeom)
Reverse vertex order of LWGEOM.
Tolerance expresses the number of segments to use for each quarter of circle (quadrant).
Retain angle instructs the engine to try its best to retain the requested angle between generating ra...
char cu_error_msg[MAX_CUNIT_ERROR_LENGTH+1]
LWGEOM * lwcurve_linearize(const LWGEOM *geom, double tol, LW_LINEARIZE_TOLERANCE_TYPE type, int flags)