[Mapbender-commits] r1810 - branches/mapbender_sld/http/sld

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Nov 15 11:02:23 EST 2007


Author: mschulz
Date: 2007-11-15 11:02:23 -0500 (Thu, 15 Nov 2007)
New Revision: 1810

Modified:
   branches/mapbender_sld/http/sld/sld_function_handler.php
Log:
Added copyright and license, added halo

Modified: branches/mapbender_sld/http/sld/sld_function_handler.php
===================================================================
--- branches/mapbender_sld/http/sld/sld_function_handler.php	2007-11-15 16:00:48 UTC (rev 1809)
+++ branches/mapbender_sld/http/sld/sld_function_handler.php	2007-11-15 16:02:23 UTC (rev 1810)
@@ -1,4 +1,22 @@
 <?php
+# $Id$
+# http://www.mapbender.org/index.php/SLD
+# Copyright (C) 2002 CCGIS 
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
 /**
  * This file realizes the function handling for the sld editor.
  * Requests from the sld_edit_form are forwarded to this page.
@@ -113,7 +131,7 @@
 			$sql = "SELECT fkey_layer_id FROM gui_layer WHERE fkey_gui_id='".$_REQUEST["gui_id"]."' AND gui_layer_wms_id=".$_REQUEST["wms_id"].";";
 			$res = db_query($sql);
 			
-			$sld_xml = "<StyledLayerDescriptor version=\"1.0.0\">\n";
+			$sld_xml = "<StyledLayerDescriptor version=\"1.0.0\" xmlns=\"http://www.opengis.net/sld\" xmlns:ogc=\"http://www.opengis.net/ogc\">\n";
 			
 			while ($row = db_fetch_row($res))
 			{
@@ -332,6 +350,23 @@
 			$_SESSION["sld_objects"][$id]->labelplacement = "";
 		}
 	}
+
+	else if ($_REQUEST["function"] == "addhalo")
+	{
+		if ((isset($_REQUEST["id"]))&&(isset($_SESSION["sld"])))
+		{
+			$id = $_REQUEST["id"];
+			$_SESSION["sld_objects"][$id]->halo = new Halo();
+		}
+	}
+	else if ($_REQUEST["function"] == "deletehalo")
+	{
+		if ( isset($_REQUEST["id"]) && isset($_SESSION["sld"]) )
+		{
+			$id = $_REQUEST["id"];
+			$_SESSION["sld_objects"][$id]->halo = "";
+		}
+	}
 	
 	else if ($_REQUEST["function"] == "addfill")
 	{


Property changes on: branches/mapbender_sld/http/sld/sld_function_handler.php
___________________________________________________________________
Name: svn:keywords
   + Id



More information about the Mapbender_commits mailing list