Can you send all of your shape files to us, I cannot reproduce your problem correctly, I used the same code as you for building all shape files in a folder, the buildindex mode is "Rebuild". Also I checked the history for the necessary code and there are not any changes for the build index ability, so I guessed the problem is from your shape files, if your dataset is large please contact ThinkGeo Support to send them,
I can’t seem to get this to work. Building a RTG based on MultipleShapeFileFeatureSource always fails for me. It doesn’t seem to matter if I use Tiger or OSM. Geometries are snapped, cleaned, plannerized, and indexed. Also, I can build rtg files just fine for individual areas.
System.IndexOutOfRangeException was unhandled HResult=-2146233080 Message=Index was outside the bounds of the array. Source=MapSuiteCore StackTrace: at ThinkGeo.MapSuite.Core.MultipleShapeFileFeatureSource.GetFeaturesByIdsCore(IEnumerable`1 ids, IEnumerable`1 returningColumnNames) at ThinkGeo.MapSuite.Core.FeatureSource.GetFeatureById(String id, IEnumerable`1 returningColumnNames) at ThinkGeo.MapSuite.Core.FeatureSource.GetFeatureById(String id, ReturningColumnsType returningColumnNamesType) at vBM=.RBQ=.aRQ=(String bRQ=, FeatureSource bhQ=, BuildRoutingDataMode bxQ=, GeographyUnit cBQ=, DistanceUnit cRQ=) at ThinkGeo.MapSuite.Routing.RtgRoutingSource.GenerateRoutingData(String rtgFilePathName, FeatureSource featureSource, BuildRoutingDataMode buildRoutingDataMode, GeographyUnit geographyUnit, DistanceUnit distanceUnit) at RouteFileBuilder.Form1.BuildRouteFile() at RouteFileBuilder.Form1.BtnGenClick(Object sender, EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at RouteFileBuilder.Program.Main() at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException:
Sorry that we give you an incorrect reply before, actually the MultipleShapeFileFeatureSource is not supported for building Routing index file, would you please let me know what scenario you would like to implement, then I may provide a workaround for you?
Well, I’m trying to implement a nationwide routing engine. Primarily for Service Area analysis, but would like flexibility to accommodate other routing operations down the road.
The ShapeFileFeatureSource is just taken into account when generating the routing index, thus if we would like to MutipleShapeFileFeatureSource, it’s possible, but need some changes in Routing extention, I have entered it into our internal issue tracking system, we will focus on it if the high priority taks are completed. If it’s urgent for you, please contact sales@thinkgeo.com for a priority change, it may need few days.
As you mentioned, you would like to do a United State national wide route, do you mean any route between cities, such as from New York to Dallas or like that? If yes, I guess it may run into performance issue, anyway, please let us know the details of your requirements, we can have a check.