PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ out_kml_test_prefix()

static void out_kml_test_prefix ( void  )
static

Definition at line 196 of file cu_out_kml.c.

References do_kml_test_prefix(), and out_kml_suite_setup().

Referenced by out_kml_suite_setup().

197 {
198  /* Linestring */
200  "LINESTRING(0 1,2 3,4 5)",
201  "<kml:LineString><kml:coordinates>0,1 2,3 4,5</kml:coordinates></kml:LineString>",
202  0, "kml:");
203 
204  /* Polygon */
206  "POLYGON((0 1,2 3,4 5,0 1))",
207  "<kml:Polygon><kml:outerBoundaryIs><kml:LinearRing><kml:coordinates>0,1 2,3 4,5 0,1</kml:coordinates></kml:LinearRing></kml:outerBoundaryIs></kml:Polygon>",
208  0, "kml:");
209 
210  /* Polygon - with internal ring */
212  "POLYGON((0 1,2 3,4 5,0 1),(6 7,8 9,10 11,6 7))",
213  "<kml:Polygon><kml:outerBoundaryIs><kml:LinearRing><kml:coordinates>0,1 2,3 4,5 0,1</kml:coordinates></kml:LinearRing></kml:outerBoundaryIs><kml:innerBoundaryIs><kml:LinearRing><kml:coordinates>6,7 8,9 10,11 6,7</kml:coordinates></kml:LinearRing></kml:innerBoundaryIs></kml:Polygon>",
214  0, "kml:");
215 
216  /* MultiPoint */
218  "MULTIPOINT(0 1,2 3)",
219  "<kml:MultiGeometry><kml:Point><kml:coordinates>0,1</kml:coordinates></kml:Point><kml:Point><kml:coordinates>2,3</kml:coordinates></kml:Point></kml:MultiGeometry>",
220  0, "kml:");
221 
222  /* MultiLine */
224  "MULTILINESTRING((0 1,2 3,4 5),(6 7,8 9,10 11))",
225  "<kml:MultiGeometry><kml:LineString><kml:coordinates>0,1 2,3 4,5</kml:coordinates></kml:LineString><kml:LineString><kml:coordinates>6,7 8,9 10,11</kml:coordinates></kml:LineString></kml:MultiGeometry>",
226  0, "kml:");
227 
228  /* MultiPolygon */
230  "MULTIPOLYGON(((0 1,2 3,4 5,0 1)),((6 7,8 9,10 11,6 7)))",
231  "<kml:MultiGeometry><kml:Polygon><kml:outerBoundaryIs><kml:LinearRing><kml:coordinates>0,1 2,3 4,5 0,1</kml:coordinates></kml:LinearRing></kml:outerBoundaryIs></kml:Polygon><kml:Polygon><kml:outerBoundaryIs><kml:LinearRing><kml:coordinates>6,7 8,9 10,11 6,7</kml:coordinates></kml:LinearRing></kml:outerBoundaryIs></kml:Polygon></kml:MultiGeometry>",
232  0, "kml:");
233 
234 }
static void do_kml_test_prefix(char *in, char *out, int precision, const char *prefix)
Definition: cu_out_kml.c:58
Here is the call graph for this function:
Here is the caller graph for this function: