ThinkGeo.com    |     Documentation    |     Premium Support

RebuildIndexFile progress

I am hoping that an Event could be added on RebuildIndex function, I wish to be able to show a progress bar showing the progress of the index, one of my shapes is 180mb (national road network) and from what I can work out you would be steping the file, it shouldn't be that hard to find out what total features there are and what feature count you are up to.


I envision 

MapControl.RebuildIndexFileStatusChanged(sender as object, e as RebuildIndexFileStatusChangedEventArgs)


the eventargs would be


StatusType = [Started, ProgressChange, Finished]

TotalFeatureCount = ' self explanitory

CurrentFeatureIndex = 'self explanitory


so if 

event fires and the StatusType is Started the CurrentFeatureIndex should be 0, and TotalFeatureCount set

event fires and the StatusType is ProgressChanged, self explanitory

event fires and the StatusType is Finished, CurrentFeatureIndex and TotalFeatureCount are the same

 


This way we can popup a dialog on RebuildStart and monitor the rebuild until it finishes?


 


Any thoughts?



Michael, 
  
 Thanks for your advice. We should have thought of it and yes, it’s very useful for big shape files. I will write it down and we may add this feature in the future version. 
  
 Thanks again for the insights. 
  
 Ben