PostGIS  2.1.10dev-r@@SVN_REVISION@@
void surface_dimension ( void  )

Definition at line 385 of file cu_surface.c.

References check_dimension().

Referenced by surface_suite_setup().

386 {
387  /* 2D */
388  check_dimension("POLYHEDRALSURFACE(((0 0,0 1,1 1,0 0)))", 2);
389  check_dimension("TIN(((0 0,0 1,1 1,0 0)))", 2);
390 
391  /* 3D single face */
392  check_dimension("POLYHEDRALSURFACE(((0 0 0,0 0 1,0 1 0,0 0 0)))", 2);
393  check_dimension("TIN(((0 0 0,0 0 1,0 1 0,0 0 0)))", 2);
394 
395  /* Tetrahedron */
396  check_dimension("POLYHEDRALSURFACE(((0 0 0,0 0 1,0 1 0,0 0 0)),((0 0 0,0 1 0,1 0 0,0 0 0)),((0 0 0,1 0 0,0 0 1,0 0 0)),((1 0 0,0 1 0,0 0 1,1 0 0)))", 3);
397  check_dimension("TIN(((0 0 0,0 0 1,0 1 0,0 0 0)),((0 0 0,0 1 0,1 0 0,0 0 0)),((0 0 0,1 0 0,0 0 1,0 0 0)),((1 0 0,0 1 0,0 0 1,1 0 0)))", 3);
398 }
static void check_dimension(char *ewkt, int dim)
Definition: cu_surface.c:374

Here is the call graph for this function:

Here is the caller graph for this function: