PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ test_geos_offsetcurve_crash()

static void test_geos_offsetcurve_crash ( void  )
static

Definition at line 113 of file cu_geos.c.

114 {
115  // Test for Trac #4143. The specific output or lack of output is not important,
116  // we're just testing that we don't crash.
117  LWGEOM* in = lwgeom_from_wkt("LINESTRING(362194.505 5649993.044,362197.451 5649994.125,362194.624 5650001.876,362189.684 5650000.114,362192.542 5649992.324,362194.505 5649993.044)", LW_PARSER_CHECK_NONE);
118  LWGEOM* out = lwgeom_offsetcurve(in, -0.045, 8, 2, 5.0);
119 
120  lwgeom_free(in);
121  if (out) {
122  lwgeom_free(out);
123  }
124 }
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1144
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2005
LWGEOM * lwgeom_offsetcurve(const LWGEOM *geom, double size, int quadsegs, int joinStyle, double mitreLimit)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904

References LW_PARSER_CHECK_NONE, lwgeom_free(), lwgeom_from_wkt(), and lwgeom_offsetcurve().

Referenced by geos_suite_setup().

Here is the call graph for this function:
Here is the caller graph for this function: