PostGIS  2.2.7dev-r@@SVN_REVISION@@
static void do_test_lwgeom_effectivearea_lines ( void  )
static

Definition at line 42 of file cu_effectivearea.c.

References do_test_lwgeom_effectivearea(), LW_PARSER_CHECK_NONE, lwgeom_from_wkt(), lwline_free(), and LWLINE::points.

Referenced by effectivearea_suite_setup().

43 {
44  LWLINE *the_geom;
45  int avoid_collaps=2;
46  /*Line 1*/
47  the_geom = (LWLINE*)lwgeom_from_wkt("LINESTRING(1 1, 0 1, 0 2, -1 4, -1 4)", LW_PARSER_CHECK_NONE);
48  double the_areas1[]={FLT_MAX,0.5,0.5,0,FLT_MAX};
49  do_test_lwgeom_effectivearea(the_geom->points,the_areas1,avoid_collaps);
50  lwline_free(the_geom);
51  /*Line 2*/
52  the_geom = (LWLINE*)lwgeom_from_wkt("LINESTRING(10 10,12 8, 15 7, 18 7, 20 20, 15 21, 18 22, 10 30, 40 100)", LW_PARSER_CHECK_NONE);
53  double the_areas2[]={FLT_MAX,5,1.5,55,100,4,4,300,FLT_MAX};
54  do_test_lwgeom_effectivearea(the_geom->points,the_areas2,avoid_collaps);
55  lwline_free(the_geom);
56 }
static void do_test_lwgeom_effectivearea(POINTARRAY *pa, double *the_areas, int avoid_collaps)
void lwline_free(LWLINE *line)
Definition: lwline.c:63
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:890
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:1869
POINTARRAY * points
Definition: liblwgeom.h:406

Here is the call graph for this function:

Here is the caller graph for this function: