PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ out_gml3_extent()

static void out_gml3_extent ( void  )
static

Definition at line 988 of file cu_out_gml.c.

References do_gml3_extent_test(), LW_GML_IS_DEGREE, LW_GML_IS_DIMS, and out_gml_suite_setup().

Referenced by out_gml_suite_setup().

989 {
990  /* GML3: Point */
992  "POINT(-15 60)",
993  "<Envelope><lowerCorner>-15 60</lowerCorner><upperCorner>-15 60</upperCorner></Envelope>",
994  NULL, 15, 0, "");
996  "POINT(-15 60)",
997  "<gml:Envelope><gml:lowerCorner>-15 60</gml:lowerCorner><gml:upperCorner>-15 60</gml:upperCorner></gml:Envelope>",
998  NULL, 15, 0, "gml:");
1000  "POINT(-15 60)",
1001  "<Envelope srsName=\"urn:ogc:def:crs:EPSG::4326\"><lowerCorner>-15 60</lowerCorner><upperCorner>-15 60</upperCorner></Envelope>",
1002  "urn:ogc:def:crs:EPSG::4326", 15, 0, "");
1003 
1004  /* GML3: Multipoint */
1006  "MULTIPOINT(2 3, -5 -6)",
1007  "<Envelope><lowerCorner>-5 -6</lowerCorner><upperCorner>2 3</upperCorner></Envelope>",
1008  NULL, 15, 0, "");
1009 
1010  /* GML3: Linestring */
1012  "LINESTRING(0 1,2 3,4 5)",
1013  "<Envelope><lowerCorner>0 1</lowerCorner><upperCorner>4 5</upperCorner></Envelope>",
1014  NULL, 15, 0, "");
1015 
1016  /* GML3: MultiLinestring */
1018  "MULTILINESTRING((0 1,2 3),(4 5, 10 6))",
1019  "<Envelope><lowerCorner>0 1</lowerCorner><upperCorner>10 6</upperCorner></Envelope>",
1020  NULL, 15, 0, "");
1022  "MULTILINESTRING((0 1,2 3),(4 5, 10 6))",
1023  "<Envelope><lowerCorner>1 0</lowerCorner><upperCorner>6 10</upperCorner></Envelope>",
1024  NULL, 15, LW_GML_IS_DEGREE, "");
1026  "MULTILINESTRING((0 1,2 3),(4 5, 10 6))",
1027  "<Envelope srsDimension=\"2\"><lowerCorner>1 0</lowerCorner><upperCorner>6 10</upperCorner></Envelope>",
1028  NULL, 15, LW_GML_IS_DEGREE|LW_GML_IS_DIMS, "");
1030  "MULTILINESTRING((0 1 10,2 3 30),(4 5 50, 10 6 -70))",
1031  "<Envelope srsDimension=\"3\"><lowerCorner>1 0 -70</lowerCorner><upperCorner>6 10 50</upperCorner></Envelope>",
1032  NULL, 15, LW_GML_IS_DEGREE|LW_GML_IS_DIMS, "");
1033 
1034  /* GML3: Polygon */
1036  "POLYGON((1 7,7 14, 14 7, 1 7))",
1037  "<Envelope><lowerCorner>1 7</lowerCorner><upperCorner>14 14</upperCorner></Envelope>",
1038  NULL, 15, 0, "");
1039 
1040  /* GML3: MultiPolygon */
1042  "MULTIPOLYGON(((1 7,7 14, 14 7, 1 7)),((-4 -6, -15 3, 0 0, -4 -6)))",
1043  "<Envelope><lowerCorner>-15 -6</lowerCorner><upperCorner>14 14</upperCorner></Envelope>",
1044  NULL, 15, 0, "");
1045 
1046  /* GML3: MultiSurface */
1048  "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)))",
1049  "<Envelope><lowerCorner>-2 -1</lowerCorner><upperCorner>10 14</upperCorner></Envelope>",
1050  NULL, 15, 0, "");
1051 
1052  /* GML3: empty */
1054  "GEOMETRYCOLLECTION EMPTY",
1055  "<Envelope/>",
1056  NULL, 15, 0, "");
1057 
1058  /* GML3: empty with srsName */
1060  "GEOMETRYCOLLECTION EMPTY",
1061  "<Envelope srsName=\"urn:ogc:def:crs:EPSG::4326\"/>",
1062  "urn:ogc:def:crs:EPSG::4326", 15, 0, "");
1063 
1064 }
static void do_gml3_extent_test(char *in, char *out, char *srs, double precision, int opts, char *prefix)
Definition: cu_out_gml.c:170
#define LW_GML_IS_DIMS
Macros for specifying GML options.
Definition: liblwgeom.h:1535
#define LW_GML_IS_DEGREE
For GML3 only, declare that datas are lat/lon.
Definition: liblwgeom.h:1537
Here is the call graph for this function:
Here is the caller graph for this function: