451
455
/* -------------------------------------------------------------------- */
452
456
/* Output header of GeoRSS file. */
453
457
/* -------------------------------------------------------------------- */
454
VSIFPrintf(fpOutput, "<?xml version=\"1.0\"?>\n");
458
VSIFPrintfL(fpOutput, "<?xml version=\"1.0\"?>\n");
455
459
if (eFormat == GEORSS_RSS)
457
VSIFPrintf(fpOutput, "<rss version=\"2.0\" ");
461
VSIFPrintfL(fpOutput, "<rss version=\"2.0\" ");
458
462
if (eGeomDialect == GEORSS_GML)
459
VSIFPrintf(fpOutput, "xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"");
463
VSIFPrintfL(fpOutput, "xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"");
460
464
else if (eGeomDialect == GEORSS_SIMPLE)
461
VSIFPrintf(fpOutput, "xmlns:georss=\"http://www.georss.org/georss\"");
465
VSIFPrintfL(fpOutput, "xmlns:georss=\"http://www.georss.org/georss\"");
463
VSIFPrintf(fpOutput, "xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"");
464
VSIFPrintf(fpOutput, ">\n");
465
VSIFPrintf(fpOutput, " <channel>\n");
467
VSIFPrintfL(fpOutput, "xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"");
468
VSIFPrintfL(fpOutput, ">\n");
469
VSIFPrintfL(fpOutput, " <channel>\n");
468
VSIFPrintf(fpOutput, "%s", pszHeader);
472
VSIFPrintfL(fpOutput, "%s", pszHeader);
472
VSIFPrintf(fpOutput, " <title>%s</title>\n", pszTitle);
473
VSIFPrintf(fpOutput, " <description>%s</description>\n", pszDescription);
474
VSIFPrintf(fpOutput, " <link>%s</link>\n", pszLink);
476
VSIFPrintfL(fpOutput, " <title>%s</title>\n", pszTitle);
477
VSIFPrintfL(fpOutput, " <description>%s</description>\n", pszDescription);
478
VSIFPrintfL(fpOutput, " <link>%s</link>\n", pszLink);
479
VSIFPrintf(fpOutput, "<feed xmlns=\"http://www.w3.org/2005/Atom\" ");
483
VSIFPrintfL(fpOutput, "<feed xmlns=\"http://www.w3.org/2005/Atom\" ");
480
484
if (eGeomDialect == GEORSS_GML)
481
VSIFPrintf(fpOutput, "xmlns:gml=\"http://www.opengis.net/gml\"");
485
VSIFPrintfL(fpOutput, "xmlns:gml=\"http://www.opengis.net/gml\"");
482
486
else if (eGeomDialect == GEORSS_SIMPLE)
483
VSIFPrintf(fpOutput, "xmlns:georss=\"http://www.georss.org/georss\"");
487
VSIFPrintfL(fpOutput, "xmlns:georss=\"http://www.georss.org/georss\"");
485
VSIFPrintf(fpOutput, "xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"");
486
VSIFPrintf(fpOutput, ">\n");
489
VSIFPrintfL(fpOutput, "xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"");
490
VSIFPrintfL(fpOutput, ">\n");
489
VSIFPrintf(fpOutput, "%s", pszHeader);
493
VSIFPrintfL(fpOutput, "%s", pszHeader);
493
VSIFPrintf(fpOutput, " <title>%s</title>\n", pszTitle);
494
VSIFPrintf(fpOutput, " <updated>%s</updated>\n", pszUpdated);
495
VSIFPrintf(fpOutput, " <author><name>%s</name></author>\n", pszAuthorName);
496
VSIFPrintf(fpOutput, " <id>%s</id>\n", pszId);
497
VSIFPrintfL(fpOutput, " <title>%s</title>\n", pszTitle);
498
VSIFPrintfL(fpOutput, " <updated>%s</updated>\n", pszUpdated);
499
VSIFPrintfL(fpOutput, " <author><name>%s</name></author>\n", pszAuthorName);
500
VSIFPrintfL(fpOutput, " <id>%s</id>\n", pszId);