[mapguide-commits] r7525 - trunk/Tools/Maestro/MgCooker
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Mon May 27 05:00:09 PDT 2013
Author: jng
Date: 2013-05-27 05:00:08 -0700 (Mon, 27 May 2013)
New Revision: 7525
Modified:
trunk/Tools/Maestro/MgCooker/Program.cs
Log:
#2277: Fix MgCooker command-line ignoring basegroup parameter. Patch by dcreado
Modified: trunk/Tools/Maestro/MgCooker/Program.cs
===================================================================
--- trunk/Tools/Maestro/MgCooker/Program.cs 2013-05-27 11:50:50 UTC (rev 7524)
+++ trunk/Tools/Maestro/MgCooker/Program.cs 2013-05-27 12:00:08 UTC (rev 7525)
@@ -225,21 +225,7 @@
BatchSettings bx = new BatchSettings(connection);
- if (!string.IsNullOrEmpty(basegroups))
- {
- List<string> groups = new List<string>();
- foreach (string s in basegroups.Split(','))
- {
- string f = s;
- if (f.StartsWith("\""))
- f = f.Substring(1);
- if (f.EndsWith("\""))
- f = f.Substring(0, f.Length - 1);
- groups.Add(f);
- }
- bx.SetGroups(groups.ToArray());
- }
-
+
int x;
if (!string.IsNullOrEmpty(limitCols) && int.TryParse(limitCols, out x))
@@ -271,6 +257,22 @@
//Now that all global parameters are set, we can now add the map definitions
bx.AddMapDefinitions(maps);
+ //basegroups must be set in each mapdefinition
+ if (!string.IsNullOrEmpty(basegroups))
+ {
+ List<string> groups = new List<string>();
+ foreach (string s in basegroups.Split(','))
+ {
+ string f = s;
+ if (f.StartsWith("\""))
+ f = f.Substring(1);
+ if (f.EndsWith("\""))
+ f = f.Substring(0, f.Length - 1);
+ groups.Add(f);
+ }
+ bx.SetGroups(groups.ToArray());
+ }
+
if (!string.IsNullOrEmpty(scaleindex))
{
List<int> scales = new List<int>();
More information about the mapguide-commits
mailing list