PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void test_sqlmm ( void  )
static

Definition at line 53 of file cu_force_sfs.c.

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

Referenced by force_sfs_suite_setup().

54 {
55  do_type_test("CIRCULARSTRING(-1 0,0 1,0 -1)",
56  LINETYPE);
57 
58  do_type_test("COMPOUNDCURVE(CIRCULARSTRING(-1 0,0 1,0 -1),(0 -1,-1 -1))",
59  LINETYPE);
60 
61  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))",
62  LINETYPE);
63 
64  do_type_test("COMPOUNDCURVE(CIRCULARSTRING(-1 0,0 1,0 -1),CIRCULARSTRING(0 -1,-1 -2,1 -2))",
65  LINETYPE);
66 
67  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)))",
68  POLYGONTYPE);
69 
70  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)))",
71  POLYGONTYPE);
72 
73  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)))",
75 
76 }
#define LINETYPE
Definition: liblwgeom.h:61
#define POLYGONTYPE
Definition: liblwgeom.h:62
static void do_type_test(char *in, int type)
Definition: cu_force_sfs.c:38
#define MULTIPOLYGONTYPE
Definition: liblwgeom.h:65

Here is the call graph for this function:

Here is the caller graph for this function: