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

Definition at line 862 of file cu_out_gml.c.

References do_gml3_test_nodims().

Referenced by out_gml_suite_setup().

863 {
864  /* GML3 - Linestring */
866  "LINESTRING(0 1,2 3,4 5)",
867  "<Curve><segments><LineStringSegment><posList>0 1 2 3 4 5</posList></LineStringSegment></segments></Curve>",
868  NULL, 0, 0, 0, "");
869 
870 
871  /* GML3 Polygon */
873  "POLYGON((0 1,2 3,4 5,0 1))",
874  "<Polygon><exterior><LinearRing><posList>0 1 2 3 4 5 0 1</posList></LinearRing></exterior></Polygon>",
875  NULL, 0, 0, 0, "");
876 
877 
878  /* GML3 Polygon - with internal ring */
880  "POLYGON((0 1,2 3,4 5,0 1),(6 7,8 9,10 11,6 7))",
881  "<Polygon><exterior><LinearRing><posList>0 1 2 3 4 5 0 1</posList></LinearRing></exterior><interior><LinearRing><posList>6 7 8 9 10 11 6 7</posList></LinearRing></interior></Polygon>",
882  NULL, 0, 0, 0, "");
883 
884  /* GML3 Triangle */
886  "TRIANGLE((0 1,2 3,4 5,0 1))",
887  "<Triangle><exterior><LinearRing><posList>0 1 2 3 4 5 0 1</posList></LinearRing></exterior></Triangle>",
888  NULL, 0, 0, 0, "");
889 
890 
891  /* GML3 MultiPoint */
893  "MULTIPOINT(0 1,2 3)",
894  "<MultiPoint><pointMember><Point><pos>0 1</pos></Point></pointMember><pointMember><Point><pos>2 3</pos></Point></pointMember></MultiPoint>",
895  NULL, 0, 0, 0, "");
896 
897 
898  /* GML3 Multiline */
900  "MULTILINESTRING((0 1,2 3,4 5),(6 7,8 9,10 11))",
901  "<MultiCurve><curveMember><Curve><segments><LineStringSegment><posList>0 1 2 3 4 5</posList></LineStringSegment></segments></Curve></curveMember><curveMember><Curve><segments><LineStringSegment><posList>6 7 8 9 10 11</posList></LineStringSegment></segments></Curve></curveMember></MultiCurve>",
902  NULL, 0, 0, 0, "");
903 
904 
905  /* GML3 MultiPolygon */
907  "MULTIPOLYGON(((0 1,2 3,4 5,0 1)),((6 7,8 9,10 11,6 7)))",
908  "<MultiSurface><surfaceMember><Polygon><exterior><LinearRing><posList>0 1 2 3 4 5 0 1</posList></LinearRing></exterior></Polygon></surfaceMember><surfaceMember><Polygon><exterior><LinearRing><posList>6 7 8 9 10 11 6 7</posList></LinearRing></exterior></Polygon></surfaceMember></MultiSurface>",
909  NULL, 0, 0, 0, "");
910 
911  /* GML3 PolyhedralSurface */
913  "POLYHEDRALSURFACE(((0 1,2 3,4 5,0 1)),((6 7,8 9,10 11,6 7)))",
914  "<PolyhedralSurface><polygonPatches><PolygonPatch><exterior><LinearRing><posList>0 1 2 3 4 5 0 1</posList></LinearRing></exterior></PolygonPatch><PolygonPatch><exterior><LinearRing><posList>6 7 8 9 10 11 6 7</posList></LinearRing></exterior></PolygonPatch></polygonPatches></PolyhedralSurface>",
915  NULL, 0, 0, 0, "");
916 
917  /* GML3 Tin */
919  "TIN(((0 1,2 3,4 5,0 1)),((6 7,8 9,10 11,6 7)))",
920  "<Tin><trianglePatches><Triangle><exterior><LinearRing><posList>0 1 2 3 4 5 0 1</posList></LinearRing></exterior></Triangle><Triangle><exterior><LinearRing><posList>6 7 8 9 10 11 6 7</posList></LinearRing></exterior></Triangle></trianglePatches></Tin>",
921  NULL, 0, 0, 0, "");
922 
923  /* GML3 - GeometryCollection */
925  "GEOMETRYCOLLECTION(POINT(0 1),LINESTRING(2 3,4 5))",
926  "<MultiGeometry><geometryMember><Point><pos>0 1</pos></Point></geometryMember><geometryMember><Curve><segments><LineStringSegment><posList>2 3 4 5</posList></LineStringSegment></segments></Curve></geometryMember></MultiGeometry>",
927  NULL, 0, 0, 0, "");
928 
929  /* GML3 - Nested GeometryCollection */
931  "GEOMETRYCOLLECTION(POINT(0 1),GEOMETRYCOLLECTION(LINESTRING(2 3,4 5)))",
932  "<MultiGeometry><geometryMember><Point><pos>0 1</pos></Point></geometryMember><geometryMember><MultiGeometry><geometryMember><Curve><segments><LineStringSegment><posList>2 3 4 5</posList></LineStringSegment></segments></Curve></geometryMember></MultiGeometry></geometryMember></MultiGeometry>",
933  NULL, 0, 0, 0, "");
934 }
static void do_gml3_test_nodims(char *in, char *out, char *srs, int precision, int is_geodetic, int is_dims, const char *prefix)
Definition: cu_out_gml.c:112

Here is the call graph for this function:

Here is the caller graph for this function: