PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ out_kml_test_geoms()

static void out_kml_test_geoms ( void  )
static

Definition at line 127 of file cu_out_kml.c.

128{
129 /* Linestring */
131 "LINESTRING(0 1,2 3,4 5)",
132 "<LineString><coordinates>0,1 2,3 4,5</coordinates></LineString>",
133 0);
134
135 /* Polygon */
137 "POLYGON((0 1,2 3,4 5,0 1))",
138 "<Polygon><outerBoundaryIs><LinearRing><coordinates>0,1 2,3 4,5 0,1</coordinates></LinearRing></outerBoundaryIs></Polygon>",
139 0);
140
141 /* Polygon - with internal ring */
143 "POLYGON((0 1,2 3,4 5,0 1),(6 7,8 9,10 11,6 7))",
144 "<Polygon><outerBoundaryIs><LinearRing><coordinates>0,1 2,3 4,5 0,1</coordinates></LinearRing></outerBoundaryIs><innerBoundaryIs><LinearRing><coordinates>6,7 8,9 10,11 6,7</coordinates></LinearRing></innerBoundaryIs></Polygon>",
145 0);
146
147 /* MultiPoint */
149 "MULTIPOINT(0 1,2 3)",
150 "<MultiGeometry><Point><coordinates>0,1</coordinates></Point><Point><coordinates>2,3</coordinates></Point></MultiGeometry>",
151 0);
152
153 /* MultiLine */
155 "MULTILINESTRING((0 1,2 3,4 5),(6 7,8 9,10 11))",
156 "<MultiGeometry><LineString><coordinates>0,1 2,3 4,5</coordinates></LineString><LineString><coordinates>6,7 8,9 10,11</coordinates></LineString></MultiGeometry>",
157 0);
158
159 /* MultiPolygon */
161 "MULTIPOLYGON(((0 1,2 3,4 5,0 1)),((6 7,8 9,10 11,6 7)))",
162 "<MultiGeometry><Polygon><outerBoundaryIs><LinearRing><coordinates>0,1 2,3 4,5 0,1</coordinates></LinearRing></outerBoundaryIs></Polygon><Polygon><outerBoundaryIs><LinearRing><coordinates>6,7 8,9 10,11 6,7</coordinates></LinearRing></outerBoundaryIs></Polygon></MultiGeometry>",
163 0);
164
165 /* GeometryCollection */
167 "GEOMETRYCOLLECTION(POINT(0 1))",
168 "lwgeom_to_kml2: 'GeometryCollection' geometry type not supported");
169
170 /* CircularString */
172 "CIRCULARSTRING(-2 0,0 2,2 0,0 2,2 4)",
173 "lwgeom_to_kml2: 'CircularString' geometry type not supported");
174
175 /* CompoundCurve */
177 "COMPOUNDCURVE(CIRCULARSTRING(0 0,1 1,1 0),(1 0,0 1))",
178 "lwgeom_to_kml2: 'CompoundCurve' geometry type not supported");
179
180 /* CurvePolygon */
182 "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))",
183 "lwgeom_to_kml2: 'CurvePolygon' geometry type not supported");
184
185 /* MultiCurve */
187 "MULTICURVE((5 5,3 5,3 3,0 3),CIRCULARSTRING(0 0,2 1,2 2))",
188 "lwgeom_to_kml2: 'MultiCurve' geometry type not supported");
189
190 /* MultiSurface */
192 "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)))",
193 "lwgeom_to_kml2: 'MultiSurface' geometry type not supported");
194}
static void do_kml_test(char *in, char *out, int precision)
Definition cu_out_kml.c:20
static void do_kml_unsupported(char *in, char *out)
Definition cu_out_kml.c:38

References do_kml_test(), and do_kml_unsupported().

Referenced by out_kml_suite_setup().

Here is the call graph for this function:
Here is the caller graph for this function: