[mapguide-commits] r4840 - trunk/Tools/Maestro/MaestroAPI

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed May 5 11:01:27 EDT 2010


Author: jng
Date: 2010-05-05 11:01:25 -0400 (Wed, 05 May 2010)
New Revision: 4840

Modified:
   trunk/Tools/Maestro/MaestroAPI/FeatureSetReader.cs
Log:
Left out some lazy geometry loading from the old FeatureSetReader

Modified: trunk/Tools/Maestro/MaestroAPI/FeatureSetReader.cs
===================================================================
--- trunk/Tools/Maestro/MaestroAPI/FeatureSetReader.cs	2010-05-05 14:43:11 UTC (rev 4839)
+++ trunk/Tools/Maestro/MaestroAPI/FeatureSetReader.cs	2010-05-05 15:01:25 UTC (rev 4840)
@@ -474,7 +474,22 @@
 
         public object this[int i]
         {
-            get { return m_items[i]; }
+            get 
+            {
+                if (i >= m_items.Length)
+                {
+                    throw new InvalidOperationException("Index " + i.ToString() + ", was out of bounds");
+                }
+                else
+                {
+                    if (m_lazyloadGeometry[i] && !m_nulls[i])
+                    {
+                        m_items[i] = this.Reader.Read((string)m_items[i]);
+                        m_lazyloadGeometry[i] = false;
+                    }
+                    return m_items[i];
+                }
+            }
         }
     }
 }



More information about the mapguide-commits mailing list