[mapguide-commits] r7863 - branches/maestro-5.0.x/OSGeo.MapGuide.MaestroAPI/Mapping

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Sep 16 07:03:25 PDT 2013


Author: jng
Date: 2013-09-16 07:03:25 -0700 (Mon, 16 Sep 2013)
New Revision: 7863

Modified:
   branches/maestro-5.0.x/OSGeo.MapGuide.MaestroAPI/Mapping/MapSelection.cs
   branches/maestro-5.0.x/OSGeo.MapGuide.MaestroAPI/Mapping/RuntimeMapLayer.cs
Log:
#2322: Backport to 5.0.x

Modified: branches/maestro-5.0.x/OSGeo.MapGuide.MaestroAPI/Mapping/MapSelection.cs
===================================================================
--- branches/maestro-5.0.x/OSGeo.MapGuide.MaestroAPI/Mapping/MapSelection.cs	2013-09-16 13:37:20 UTC (rev 7862)
+++ branches/maestro-5.0.x/OSGeo.MapGuide.MaestroAPI/Mapping/MapSelection.cs	2013-09-16 14:03:25 UTC (rev 7863)
@@ -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: branches/maestro-5.0.x/OSGeo.MapGuide.MaestroAPI/Mapping/RuntimeMapLayer.cs
===================================================================
--- branches/maestro-5.0.x/OSGeo.MapGuide.MaestroAPI/Mapping/RuntimeMapLayer.cs	2013-09-16 13:37:20 UTC (rev 7862)
+++ branches/maestro-5.0.x/OSGeo.MapGuide.MaestroAPI/Mapping/RuntimeMapLayer.cs	2013-09-16 14:03:25 UTC (rev 7863)
@@ -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