PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void out_kml_test_prefix ( void  )
static

Definition at line 197 of file cu_out_kml.c.

References do_kml_test_prefix().

Referenced by out_kml_suite_setup().

198 {
199  /* Linestring */
201  "LINESTRING(0 1,2 3,4 5)",
202  "<kml:LineString><kml:coordinates>0,1 2,3 4,5</kml:coordinates></kml:LineString>",
203  0, "kml:");
204 
205  /* Polygon */
207  "POLYGON((0 1,2 3,4 5,0 1))",
208  "<kml:Polygon><kml:outerBoundaryIs><kml:LinearRing><kml:coordinates>0,1 2,3 4,5 0,1</kml:coordinates></kml:LinearRing></kml:outerBoundaryIs></kml:Polygon>",
209  0, "kml:");
210 
211  /* Polygon - with internal ring */
213  "POLYGON((0 1,2 3,4 5,0 1),(6 7,8 9,10 11,6 7))",
214  "<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>",
215  0, "kml:");
216 
217  /* MultiPoint */
219  "MULTIPOINT(0 1,2 3)",
220  "<kml:MultiGeometry><kml:Point><kml:coordinates>0,1</kml:coordinates></kml:Point><kml:Point><kml:coordinates>2,3</kml:coordinates></kml:Point></kml:MultiGeometry>",
221  0, "kml:");
222 
223  /* MultiLine */
225  "MULTILINESTRING((0 1,2 3,4 5),(6 7,8 9,10 11))",
226  "<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>",
227  0, "kml:");
228 
229  /* MultiPolygon */
231  "MULTIPOLYGON(((0 1,2 3,4 5,0 1)),((6 7,8 9,10 11,6 7)))",
232  "<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>",
233  0, "kml:");
234 
235 }
static void do_kml_test_prefix(char *in, char *out, int precision, const char *prefix)
Definition: cu_out_kml.c:59

Here is the call graph for this function:

Here is the caller graph for this function: