[mapserver-commits] r7507 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Wed Apr 9 13:46:45 EDT 2008


Author: Assefa
Date: 2008-04-09 13:46:44 -0400 (Wed, 09 Apr 2008)
New Revision: 7507

Modified:
   trunk/mapserver/mapogcsld.c
Log:
Throw an error if the sld url was not valid or imageurl and imagepath are not set properly in the map #(2573)

Modified: trunk/mapserver/mapogcsld.c
===================================================================
--- trunk/mapserver/mapogcsld.c	2008-04-09 15:50:30 UTC (rev 7506)
+++ trunk/mapserver/mapogcsld.c	2008-04-09 17:46:44 UTC (rev 7507)
@@ -1,5 +1,5 @@
 /**********************************************************************
- * $Id:$
+ * $Id$
  *
  * Project:  MapServer
  * Purpose:  OGC SLD implementation
@@ -93,7 +93,10 @@
                 unlink(pszSLDTmpFile);
             }
         }
-
+        else
+        {
+            msSetError(MS_WMSERR, "Could not open SLD %s and save it in temporary file %s. Please make sure that the sld url is valid and that imagepath and imageurl are set properly in the map file", "msSLDApplySLDURL", szURL, pszSLDTmpFile);
+        }
         if (pszSLDbuf)
           nStatus = msSLDApplySLD(map, pszSLDbuf, iLayer, pszStyleLayerName);
     }



More information about the mapserver-commits mailing list