[mapguide-commits] r7862 - trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Mapping

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Sep 16 06:37:20 PDT 2013


Author: jng
Date: 2013-09-16 06:37:20 -0700 (Mon, 16 Sep 2013)
New Revision: 7862

Modified:
   trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Mapping/MapSelection.cs
   trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Mapping/RuntimeMapLayer.cs
Log:
#2322: Preliminary fix. Need a sample data set with double identity properties to verify.

Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Mapping/MapSelection.cs
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Mapping/MapSelection.cs	2013-09-16 06:39:12 UTC (rev 7861)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Mapping/MapSelection.cs	2013-09-16 13:37:20 UTC (rev 7862)
@@ -259,6 +259,11 @@
                             byte[] x = BitConverter.GetBytes((long)tmp[i]);
                             ms.Write(x, 0, x.Length);
                         }
+                        else if (type == typeof(double))
+                        {
+                            byte[] x = BitConverter.GetBytes((double)tmp[i]);
+                            ms.Write(x, 0, x.Length);
+                        }
                         else if (type == typeof(string))
                         {
                             byte[] x = System.Text.Encoding.UTF8.GetBytes((string)tmp[i]);

Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Mapping/RuntimeMapLayer.cs
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Mapping/RuntimeMapLayer.cs	2013-09-16 06:39:12 UTC (rev 7861)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Mapping/RuntimeMapLayer.cs	2013-09-16 13:37:20 UTC (rev 7862)
@@ -735,6 +735,11 @@
                     tmp[i] = BitConverter.ToInt64(data, index);
                     index += MgBinarySerializer.UInt64Len;
                 }
+                else if (type == typeof(double))
+                {
+                    tmp[i] = BitConverter.ToDouble(data, index);
+                    index += MgBinarySerializer.DoubleLen;
+                }
                 else if (type == typeof(string))
                 {
                     int pos = index;



More information about the mapguide-commits mailing list