[mapserver-commits] r12409 - trunk/mapserver/mapcache/src

svn at osgeo.org svn at osgeo.org
Fri Aug 26 07:23:17 EDT 2011


Author: tbonfort
Date: 2011-08-26 04:23:16 -0700 (Fri, 26 Aug 2011)
New Revision: 12409

Modified:
   trunk/mapserver/mapcache/src/service_wmts.c
Log:
add stub for json based configuration file
thomas.bonfort | 2011-07-22 18:15:50 +0200 (Fri, 22 Jul 2011)

Modified: trunk/mapserver/mapcache/src/service_wmts.c
===================================================================
--- trunk/mapserver/mapcache/src/service_wmts.c	2011-08-26 11:23:13 UTC (rev 12408)
+++ trunk/mapserver/mapcache/src/service_wmts.c	2011-08-26 11:23:16 UTC (rev 12409)
@@ -231,7 +231,19 @@
      
       ezxml_t tmset = ezxml_add_child(contents,"TileMatrixSet",0);
       ezxml_set_txt(ezxml_add_child(tmset,"ows:Identifier",0),grid->name);
+      const char *title = apr_table_get(grid->metadata,"title");
+      if(title) {
+         ezxml_set_txt(ezxml_add_child(tmset,"ows:Title",0),title);
+      }
       ezxml_set_txt(ezxml_add_child(tmset,"ows:SupportedCRS",0),geocache_grid_get_crs(ctx,grid));
+
+      ezxml_t bbox = ezxml_add_child(tmset,"ows:BoundingBox",0);
+
+      ezxml_set_txt(ezxml_add_child(bbox,"LowerCorner",0),apr_psprintf(ctx->pool,"%f %f",
+               grid->extent[0], grid->extent[1]));
+      ezxml_set_txt(ezxml_add_child(bbox,"UpperCorner",0),apr_psprintf(ctx->pool,"%f %f",
+               grid->extent[2], grid->extent[3]));
+
       
       if(WellKnownScaleSet) {
          ezxml_set_txt(ezxml_add_child(tmset,"WellKnownScaleSet",0),WellKnownScaleSet);



More information about the mapserver-commits mailing list