108{
109
111 "LINESTRING(0 1,2 3,4 5)",
112 "<LineString><coordinates>0,1 2,3 4,5</coordinates></LineString>",
113 0);
114
115
117 "POLYGON((0 1,2 3,4 5,0 1))",
118 "<Polygon><outerBoundaryIs><LinearRing><coordinates>0,1 2,3 4,5 0,1</coordinates></LinearRing></outerBoundaryIs></Polygon>",
119 0);
120
121
123 "POLYGON((0 1,2 3,4 5,0 1),(6 7,8 9,10 11,6 7))",
124 "<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>",
125 0);
126
127
129 "MULTIPOINT(0 1,2 3)",
130 "<MultiGeometry><Point><coordinates>0,1</coordinates></Point><Point><coordinates>2,3</coordinates></Point></MultiGeometry>",
131 0);
132
133
135 "MULTILINESTRING((0 1,2 3,4 5),(6 7,8 9,10 11))",
136 "<MultiGeometry><LineString><coordinates>0,1 2,3 4,5</coordinates></LineString><LineString><coordinates>6,7 8,9 10,11</coordinates></LineString></MultiGeometry>",
137 0);
138
139
141 "MULTIPOLYGON(((0 1,2 3,4 5,0 1)),((6 7,8 9,10 11,6 7)))",
142 "<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>",
143 0);
144
145
147 "GEOMETRYCOLLECTION(POINT(0 1))",
148 "lwgeom_to_kml2: 'GeometryCollection' geometry type not supported");
149
150
152 "CIRCULARSTRING(-2 0,0 2,2 0,0 2,2 4)",
153 "lwgeom_to_kml2: 'CircularString' geometry type not supported");
154
155
157 "COMPOUNDCURVE(CIRCULARSTRING(0 0,1 1,1 0),(1 0,0 1))",
158 "lwgeom_to_kml2: 'CompoundCurve' geometry type not supported");
159
160
162 "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))",
163 "lwgeom_to_kml2: 'CurvePolygon' geometry type not supported");
164
165
167 "MULTICURVE((5 5,3 5,3 3,0 3),CIRCULARSTRING(0 0,2 1,2 2))",
168 "lwgeom_to_kml2: 'MultiCurve' geometry type not supported");
169
170
172 "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)))",
173 "lwgeom_to_kml2: 'MultiSurface' geometry type not supported");
174}
static void do_kml_test(char *in, char *out, int precision)
static void do_kml_unsupported(char *in, char *out)