PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ test_sqlmm()

static void test_sqlmm ( void  )
static

Definition at line 52 of file cu_force_sfs.c.

References do_type_test(), LINETYPE, MULTIPOLYGONTYPE, and POLYGONTYPE.

Referenced by force_sfs_suite_setup().

53 {
54  do_type_test("CIRCULARSTRING(-1 0,0 1,0 -1)",
55  LINETYPE);
56 
57  do_type_test("COMPOUNDCURVE(CIRCULARSTRING(-1 0,0 1,0 -1),(0 -1,-1 -1))",
58  LINETYPE);
59 
60  do_type_test("COMPOUNDCURVE((-3 -3,-1 0),CIRCULARSTRING(-1 0,0 1,0 -1),(0 -1,0 -1.5,0 -2),CIRCULARSTRING(0 -2,-1 -3,1 -3),(1 -3,5 5))",
61  LINETYPE);
62 
63  do_type_test("COMPOUNDCURVE(CIRCULARSTRING(-1 0,0 1,0 -1),CIRCULARSTRING(0 -1,-1 -2,1 -2))",
64  LINETYPE);
65 
66  do_type_test("CURVEPOLYGON(COMPOUNDCURVE(CIRCULARSTRING (0 0 2,1 1 2,1 0 2),(1 0 2,0 1 2),(0 1 2, 0 0 2)))",
67  POLYGONTYPE);
68 
69  do_type_test("CURVEPOLYGON (COMPOUNDCURVE (CIRCULARSTRING (0 0 2 5,1 1 2 6,1 0 2 5), (1 0 2 3,0 1 2 2), (0 1 2 2,30 1 2 2), CIRCULARSTRING (30 1 2 2,12 1 2 6,1 10 2 5, 1 10 3 5, 0 0 2 5)))",
70  POLYGONTYPE);
71 
72  do_type_test("MULTISURFACE (CURVEPOLYGON (CIRCULARSTRING (-2 0, -1 -1, 0 0, 1 -1, 2 0, 0 2, -2 0), (-1 0, 0 0.5, 1 0, 0 1, -1 0)), ((7 8, 10 10, 6 14, 4 11, 7 8)))",
74 
75 }
#define LINETYPE
Definition: liblwgeom.h:86
#define POLYGONTYPE
Definition: liblwgeom.h:87
static void do_type_test(char *in, int type)
Definition: cu_force_sfs.c:37
#define MULTIPOLYGONTYPE
Definition: liblwgeom.h:90
Here is the call graph for this function:
Here is the caller graph for this function: