[mapguide-commits] r4566 - in trunk/Tools/Maestro:
Maestro/ResourceEditors Maestro/ResourceEditors/Strings
MaestroAPI/Generated
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Sat Jan 30 14:25:36 EST 2010
Author: ksgeograf
Date: 2010-01-30 14:25:36 -0500 (Sat, 30 Jan 2010)
New Revision: 4566
Modified:
trunk/Tools/Maestro/Maestro/ResourceEditors/MapEditor.cs
trunk/Tools/Maestro/Maestro/ResourceEditors/Strings/MapEditor.Designer.cs
trunk/Tools/Maestro/Maestro/ResourceEditors/Strings/MapEditor.resx
trunk/Tools/Maestro/MaestroAPI/Generated/LayerDefinition-1.2.0.cs
Log:
Maestro:
Fixed a cosmetic issue with the "Set to layer extent" button, if the layer extent is null.
Modified: trunk/Tools/Maestro/Maestro/ResourceEditors/MapEditor.cs
===================================================================
--- trunk/Tools/Maestro/Maestro/ResourceEditors/MapEditor.cs 2010-01-30 19:24:48 UTC (rev 4565)
+++ trunk/Tools/Maestro/Maestro/ResourceEditors/MapEditor.cs 2010-01-30 19:25:36 UTC (rev 4566)
@@ -1854,6 +1854,12 @@
Topology.Geometries.IEnvelope env = ldef.GetSpatialExtent(true);
+ if (env == null)
+ {
+ MessageBox.Show(this, Strings.MapEditor.LayerExtentMissingError, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
+ return;
+ }
+
try
{
string projection = ldef.GetCordinateSystem();
Modified: trunk/Tools/Maestro/Maestro/ResourceEditors/Strings/MapEditor.Designer.cs
===================================================================
--- trunk/Tools/Maestro/Maestro/ResourceEditors/Strings/MapEditor.Designer.cs 2010-01-30 19:24:48 UTC (rev 4565)
+++ trunk/Tools/Maestro/Maestro/ResourceEditors/Strings/MapEditor.Designer.cs 2010-01-30 19:25:36 UTC (rev 4566)
@@ -91,6 +91,15 @@
}
/// <summary>
+ /// Looks up a localized string similar to No extent data was found for the layer..
+ /// </summary>
+ internal static string LayerExtentMissingError {
+ get {
+ return ResourceManager.GetString("LayerExtentMissingError", resourceCulture);
+ }
+ }
+
+ /// <summary>
/// Looks up a localized string similar to Failed to get layer extent: {0}.
/// </summary>
internal static string LayerExtentReadError {
Modified: trunk/Tools/Maestro/Maestro/ResourceEditors/Strings/MapEditor.resx
===================================================================
--- trunk/Tools/Maestro/Maestro/ResourceEditors/Strings/MapEditor.resx 2010-01-30 19:24:48 UTC (rev 4565)
+++ trunk/Tools/Maestro/Maestro/ResourceEditors/Strings/MapEditor.resx 2010-01-30 19:25:36 UTC (rev 4566)
@@ -132,6 +132,10 @@
Do you want to continue?</value>
<comment>A warning that is displayed if the user attempts to convert a group with subgroups to a baselayer group</comment>
</data>
+ <data name="LayerExtentMissingError" xml:space="preserve">
+ <value>No extent data was found for the layer.</value>
+ <comment>An error message that is displayed if the layer has no extent data.</comment>
+ </data>
<data name="LayerExtentReadError" xml:space="preserve">
<value>Failed to get layer extent: {0}</value>
<comment>An error message that is displayed if the attempt to read the layer extents fail</comment>
Modified: trunk/Tools/Maestro/MaestroAPI/Generated/LayerDefinition-1.2.0.cs
===================================================================
--- trunk/Tools/Maestro/MaestroAPI/Generated/LayerDefinition-1.2.0.cs 2010-01-30 19:24:48 UTC (rev 4565)
+++ trunk/Tools/Maestro/MaestroAPI/Generated/LayerDefinition-1.2.0.cs 2010-01-30 19:25:36 UTC (rev 4566)
@@ -1878,7 +1878,7 @@
return null;
FdoSpatialContextList context = this.CurrentConnection.GetSpatialContextInfo(this.Item.ResourceId, false);
- if (context == null || context.SpatialContext == null ||context.SpatialContext.Count == 0)
+ if (context == null || context.SpatialContext == null || context.SpatialContext.Count == 0)
return null;
foreach (FdoSpatialContextListSpatialContext cx in context.SpatialContext)
More information about the mapguide-commits
mailing list