PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ out_gml_test_geoms_nodims()

static void out_gml_test_geoms_nodims ( void  )
static

Definition at line 848 of file cu_out_gml.c.

References do_gml3_test_nodims().

Referenced by out_gml_suite_setup().

849 {
850  /* GML3 - Linestring */
852  "LINESTRING(0 1,2 3,4 5)",
853  "<Curve><segments><LineStringSegment><posList>0 1 2 3 4 5</posList></LineStringSegment></segments></Curve>",
854  NULL, 0, 0, 0, "");
855 
856 
857  /* GML3 Polygon */
859  "POLYGON((0 1,2 3,4 5,0 1))",
860  "<Polygon><exterior><LinearRing><posList>0 1 2 3 4 5 0 1</posList></LinearRing></exterior></Polygon>",
861  NULL, 0, 0, 0, "");
862 
863 
864  /* GML3 Polygon - with internal ring */
866  "POLYGON((0 1,2 3,4 5,0 1),(6 7,8 9,10 11,6 7))",
867  "<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>",
868  NULL, 0, 0, 0, "");
869 
870  /* GML3 Triangle */
872  "TRIANGLE((0 1,2 3,4 5,0 1))",
873  "<Triangle><exterior><LinearRing><posList>0 1 2 3 4 5 0 1</posList></LinearRing></exterior></Triangle>",
874  NULL, 0, 0, 0, "");
875 
876 
877  /* GML3 MultiPoint */
879  "MULTIPOINT(0 1,2 3)",
880  "<MultiPoint><pointMember><Point><pos>0 1</pos></Point></pointMember><pointMember><Point><pos>2 3</pos></Point></pointMember></MultiPoint>",
881  NULL, 0, 0, 0, "");
882 
883 
884  /* GML3 Multiline */
886  "MULTILINESTRING((0 1,2 3,4 5),(6 7,8 9,10 11))",
887  "<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>",
888  NULL, 0, 0, 0, "");
889 
890 
891  /* GML3 MultiPolygon */
893  "MULTIPOLYGON(((0 1,2 3,4 5,0 1)),((6 7,8 9,10 11,6 7)))",
894  "<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>",
895  NULL, 0, 0, 0, "");
896 
897  /* GML3 PolyhedralSurface */
899  "POLYHEDRALSURFACE(((0 1,2 3,4 5,0 1)),((6 7,8 9,10 11,6 7)))",
900  "<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>",
901  NULL, 0, 0, 0, "");
902 
903  /* GML3 Tin */
905  "TIN(((0 1,2 3,4 5,0 1)),((6 7,8 9,10 11,6 7)))",
906  "<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>",
907  NULL, 0, 0, 0, "");
908 
909  /* GML3 - GeometryCollection */
911  "GEOMETRYCOLLECTION(POINT(0 1),LINESTRING(2 3,4 5))",
912  "<MultiGeometry><geometryMember><Point><pos>0 1</pos></Point></geometryMember><geometryMember><Curve><segments><LineStringSegment><posList>2 3 4 5</posList></LineStringSegment></segments></Curve></geometryMember></MultiGeometry>",
913  NULL, 0, 0, 0, "");
914 
915  /* GML3 - Nested GeometryCollection */
917  "GEOMETRYCOLLECTION(POINT(0 1),GEOMETRYCOLLECTION(LINESTRING(2 3,4 5)))",
918  "<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>",
919  NULL, 0, 0, 0, "");
920 }
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:111
Here is the call graph for this function:
Here is the caller graph for this function: