[mapserver-commits] r7635 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Mon Jun 2 08:10:37 EDT 2008


Author: tomkralidis
Date: 2008-06-02 08:10:37 -0400 (Mon, 02 Jun 2008)
New Revision: 7635

Modified:
   trunk/mapserver/HISTORY.TXT
   trunk/mapserver/mapwcs.c
Log:
- mapwcs.c: advertise temporal support in GetCapabilities (#2487)



Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT	2008-05-30 13:15:24 UTC (rev 7634)
+++ trunk/mapserver/HISTORY.TXT	2008-06-02 12:10:37 UTC (rev 7635)
@@ -13,6 +13,8 @@
 Current Version (5.1-dev, SVN trunk):
 -------------------------------------
 
+- mapwcs.c: advertise temporal support in GetCapabilities (#2487)
+
 - Fixed flaw in findTag() in maptemplate.c that prevented multiple tags on the same line 
   being processed under certain conditions. (#2633)
 

Modified: trunk/mapserver/mapwcs.c
===================================================================
--- trunk/mapserver/mapwcs.c	2008-05-30 13:15:24 UTC (rev 7634)
+++ trunk/mapserver/mapwcs.c	2008-06-02 12:10:37 UTC (rev 7635)
@@ -663,10 +663,13 @@
 
   msOWSPrintEncodeMetadata(stdout, &(layer->metadata), "COM", "label", OWS_WARN, "  <label>%s</label>\n", NULL);
 
-  /* TODO: add elevation and temporal ranges to lonLatEnvelope (optional) */
+  /* TODO: add elevation ranges to lonLatEnvelope (optional) */
   msIO_printf("    <lonLatEnvelope srsName=\"urn:ogc:def:crs:OGC:1.3:CRS84\">\n");
   msIO_printf("      <gml:pos>%.15g %.15g</gml:pos>\n", cm.llextent.minx, cm.llextent.miny); /* TODO: don't know if this is right */
   msIO_printf("      <gml:pos>%.15g %.15g</gml:pos>\n", cm.llextent.maxx, cm.llextent.maxy);
+
+  msOWSPrintEncodeMetadataList(stdout, &(layer->metadata), "COM", "timeposition", NULL, NULL, "      <gml:timePosition>%s</gml:timePosition>\n", NULL);
+
   msIO_printf("    </lonLatEnvelope>\n");
 
   /* we are not supporting the optional keyword type, at least not yet */
@@ -934,10 +937,13 @@
 
   msOWSPrintEncodeMetadata(stdout, &(layer->metadata), "COM", "label", OWS_WARN, "  <label>%s</label>\n", NULL);
 
-  /* TODO: add elevation and temporal ranges to lonLatEnvelope (optional) */
+  /* TODO: add elevation ranges to lonLatEnvelope (optional) */
   msIO_printf("    <lonLatEnvelope srsName=\"urn:ogc:def:crs:OGC:1.3:CRS84\">\n");
   msIO_printf("      <gml:pos>%.15g %.15g</gml:pos>\n", cm.llextent.minx, cm.llextent.miny);
   msIO_printf("      <gml:pos>%.15g %.15g</gml:pos>\n", cm.llextent.maxx, cm.llextent.maxy);
+
+  msOWSPrintEncodeMetadataList(stdout, &(layer->metadata), "COM", "timeposition", NULL, NULL, "      <gml:timePosition>%s</gml:timePosition>\n", NULL);
+
   msIO_printf("    </lonLatEnvelope>\n");
 
   /* we are not supporting the optional keyword type, at least not yet */



More information about the mapserver-commits mailing list