/// <summary> /// Dumps out debug statistics relating to this index, creating /// a file called <c>C:\Temp\indexStats.txt</c> /// </summary> public void DumpStats() { using (StreamWriter w = File.CreateText(@"C:\Temp\indexStats.txt")) { PointIndexStatistics statPoints = new PointIndexStatistics(); w.WriteLine("Points"); m_Points.CollectStats(statPoints); statPoints.Dump(w); IndexStatistics statLines = new IndexStatistics(); w.WriteLine(); w.WriteLine("Lines"); m_Lines.CollectStats(statLines); statLines.Dump(w); IndexStatistics statText = new IndexStatistics(); w.WriteLine(); w.WriteLine("Text"); m_Text.CollectStats(statText); statText.Dump(w); IndexStatistics statPol = new IndexStatistics(); w.WriteLine(); w.WriteLine("Polygons"); m_Polygons.CollectStats(statPol); statPol.Dump(w); } }
// <summary> // Dumps out debug information relating to this index, creating // a file called <c>C:\Temp\index.txt</c> // </summary> //public void Dump() //{ // using (StreamWriter w = File.CreateText(@"C:\Temp\index.txt")) // { // w.WriteLine("Lines"); // m_Lines.Dump(w, 0); // w.WriteLine(); // w.WriteLine("Text"); // m_Text.Dump(w, 0); // w.WriteLine(); // w.WriteLine("Polygons"); // m_Polygons.Dump(w, 0); // } //} /// <summary> /// Obtains the number of points in this index /// </summary> /// <returns>The number of points</returns> public uint GetPointCount() { PointIndexStatistics statPoints = new PointIndexStatistics(); m_Points.CollectStats(statPoints); return(statPoints.PointCount); }