[mapserver-commits] r7719 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Fri Jun 20 08:49:50 EDT 2008


Author: tomkralidis
Date: 2008-06-20 08:49:50 -0400 (Fri, 20 Jun 2008)
New Revision: 7719

Modified:
   trunk/mapserver/HISTORY.TXT
   trunk/mapserver/mapwfs.c
   trunk/mapserver/mapwms.c
Log:
produce warning if layer extent is null (#1396)



Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT	2008-06-20 12:31:29 UTC (rev 7718)
+++ trunk/mapserver/HISTORY.TXT	2008-06-20 12:49:50 UTC (rev 7719)
@@ -12,6 +12,8 @@
 Current Version (SVN trunk):
 ----------------------------
 
+- WMS: produce warning if layer extent is null (#1396)
+
 - WFS: project LatLongBoundingBox if required (#2579)
 
 - SOS: generate error for some invalid filters (#2604)

Modified: trunk/mapserver/mapwfs.c
===================================================================
--- trunk/mapserver/mapwfs.c	2008-06-20 12:31:29 UTC (rev 7718)
+++ trunk/mapserver/mapwfs.c	2008-06-20 12:49:50 UTC (rev 7719)
@@ -277,7 +277,7 @@
    }
    else
    {
-       msIO_printf("<!-- WARNING: Mandatory LatLongBoundingBox could not be established for this layer.  Consider setting LAYER.EXTENT or wfs_extent metadata. -->\n");
+       msIO_printf("<!-- WARNING: Optional LatLongBoundingBox could not be established for this layer.  Consider setting LAYER.EXTENT or wfs_extent metadata. -->\n");
    }
 
    msOWSPrintURLType(stdout, &(lp->metadata), "FO", "metadataurl", 

Modified: trunk/mapserver/mapwms.c
===================================================================
--- trunk/mapserver/mapwms.c	2008-06-20 12:31:29 UTC (rev 7718)
+++ trunk/mapserver/mapwms.c	2008-06-20 12:49:50 UTC (rev 7719)
@@ -1224,6 +1224,10 @@
                                   &(map->web.metadata), "MO" );
        }
    }
+   else
+   {
+       msIO_printf("        <!-- WARNING: Optional LatLonBoundingBox could not be established for this layer.  Consider setting LAYER.EXTENT or wms_extent metadata. -->\n");
+   }
 
    /* time support */
    pszWmsTimeExtent = msOWSLookupMetadata(&(lp->metadata), "MO", "timeextent");



More information about the mapserver-commits mailing list