PostGIS  2.5.1dev-r@@SVN_REVISION@@

◆ do_test_lwgeom_effectivearea_polys()

static void do_test_lwgeom_effectivearea_polys ( void  )
static

Definition at line 60 of file cu_effectivearea.c.

References do_test_lwgeom_effectivearea(), effectivearea_suite_setup(), LW_PARSER_CHECK_NONE, lwgeom_from_wkt(), lwpoly_free(), and LWPOLY::rings.

Referenced by effectivearea_suite_setup().

61 {
62  LWPOLY *the_geom;
63  int avoid_collaps=4;
64 
65  /*POLYGON 1*/
66  the_geom = (LWPOLY*)lwgeom_from_wkt("POLYGON((10 10,12 8, 15 7, 18 7, 20 20, 15 21, 18 22, 10 30,1 99, 0 100, 10 10))", LW_PARSER_CHECK_NONE);
67  double the_areas1[]={FLT_MAX,5,1.5,55,100,4,4,FLT_MAX,30,FLT_MAX,FLT_MAX};
68  do_test_lwgeom_effectivearea(the_geom->rings[0],the_areas1,avoid_collaps);
69  lwpoly_free(the_geom);
70 }
static void do_test_lwgeom_effectivearea(POINTARRAY *pa, double *the_areas, int avoid_collaps)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2004
void lwpoly_free(LWPOLY *poly)
Definition: lwpoly.c:175
POINTARRAY ** rings
Definition: liblwgeom.h:459
Here is the call graph for this function:
Here is the caller graph for this function: