[mapguide-commits] r7693 - in trunk/Tools/Maestro/Maestro.Editors: . Common
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Fri Jul 19 00:52:32 PDT 2013
Author: jng
Date: 2013-07-19 00:52:31 -0700 (Fri, 19 Jul 2013)
New Revision: 7693
Modified:
trunk/Tools/Maestro/Maestro.Editors/Common/CoordinateSystemPicker.cs
trunk/Tools/Maestro/Maestro.Editors/Strings.Designer.cs
trunk/Tools/Maestro/Maestro.Editors/Strings.resx
Log:
#2211: Allow arbitrary WKT strings in the coordinate system picker
Modified: trunk/Tools/Maestro/Maestro.Editors/Common/CoordinateSystemPicker.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Editors/Common/CoordinateSystemPicker.cs 2013-07-19 06:46:26 UTC (rev 7692)
+++ trunk/Tools/Maestro/Maestro.Editors/Common/CoordinateSystemPicker.cs 2013-07-19 07:52:31 UTC (rev 7693)
@@ -172,9 +172,26 @@
m_wktCoordSys.WKT = WKTText.Text;
}
}
+ else
+ {
+ if (MessageBox.Show(Strings.ConfirmNonMapGuideSupportedCsWkt, Strings.NonMapGuideSupportedCsWkt, MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes)
+ {
+ m_wktCoordSys = _cat.CreateEmptyCoordinateSystem();
+ m_wktCoordSys.Code = null;
+ m_wktCoordSys.Description = null;
+ m_wktCoordSys.WKT = WKTText.Text;
+ }
+ }
}
catch
{
+ if (MessageBox.Show(Strings.ConfirmNonMapGuideSupportedCsWkt, Strings.NonMapGuideSupportedCsWkt, MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes)
+ {
+ m_wktCoordSys = _cat.CreateEmptyCoordinateSystem();
+ m_wktCoordSys.Code = null;
+ m_wktCoordSys.Description = null;
+ m_wktCoordSys.WKT = WKTText.Text;
+ }
}
UpdateOKButton();
}
@@ -189,6 +206,7 @@
}
catch
{
+
}
UpdateOKButton();
}
Modified: trunk/Tools/Maestro/Maestro.Editors/Strings.Designer.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Editors/Strings.Designer.cs 2013-07-19 06:46:26 UTC (rev 7692)
+++ trunk/Tools/Maestro/Maestro.Editors/Strings.Designer.cs 2013-07-19 07:52:31 UTC (rev 7693)
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.18047
+// Runtime Version:4.0.30319.18213
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -367,6 +367,15 @@
}
/// <summary>
+ /// Looks up a localized string similar to The WKT you entered is not recognised by MapGuide's Coordinate System Library. Use it anyway?.
+ /// </summary>
+ internal static string ConfirmNonMapGuideSupportedCsWkt {
+ get {
+ return ResourceManager.GetString("ConfirmNonMapGuideSupportedCsWkt", resourceCulture);
+ }
+ }
+
+ /// <summary>
/// Looks up a localized string similar to In some cases, the actual WMS layer name would be generated in the FDO class description. Swap FDO logical class names with their descriptions?.
/// </summary>
internal static string ConfirmWmsLogicalClassSwap {
@@ -1607,6 +1616,15 @@
}
/// <summary>
+ /// Looks up a localized string similar to Non-supported WKT.
+ /// </summary>
+ internal static string NonMapGuideSupportedCsWkt {
+ get {
+ return ResourceManager.GetString("NonMapGuideSupportedCsWkt", resourceCulture);
+ }
+ }
+
+ /// <summary>
/// Looks up a localized string similar to This feature source has no class definitions with raster properties.
/// </summary>
internal static string NoRasterClasses {
Modified: trunk/Tools/Maestro/Maestro.Editors/Strings.resx
===================================================================
--- trunk/Tools/Maestro/Maestro.Editors/Strings.resx 2013-07-19 06:46:26 UTC (rev 7692)
+++ trunk/Tools/Maestro/Maestro.Editors/Strings.resx 2013-07-19 07:52:31 UTC (rev 7693)
@@ -1527,4 +1527,10 @@
<data name="ExtendedFeatureClassAlreadyExists" xml:space="preserve">
<value>An extended feature class named ({0}) already exist. Please choose a different name</value>
</data>
+ <data name="ConfirmNonMapGuideSupportedCsWkt" xml:space="preserve">
+ <value>The WKT you entered is not recognised by MapGuide's Coordinate System Library. Use it anyway?</value>
+ </data>
+ <data name="NonMapGuideSupportedCsWkt" xml:space="preserve">
+ <value>Non-supported WKT</value>
+ </data>
</root>
\ No newline at end of file
More information about the mapguide-commits
mailing list