public override void Split( MapMakerSettings mapMakerSettings, IList <IMapDataSource> mapDataSourcesAfterSplitting, IProgramRunner programRunner) { mapDataSourcesAfterSplitting.Add(this); }
public override void Split( MapMakerSettings mapMakerSettings, IList <IMapDataSource> mapDataSourcesAfterSplitting, IProgramRunner programRunner) { throw new NotImplementedException(); //if (this.osmDatabaseProvider is OsmFileData) //{ // FetchData(); // Bounds2 mapBounds = osmDatabase.CalculateBounds(); // ReleaseData(); // IOsmosisClient client = OsmosisFacade.SplitOsmFile( // Path.GetFullPath(((OsmFileData) this.osmDatabaseProvider).OsmFileName), // Path.GetFullPath (mapMakerSettings.TempDir), // mapBounds, // mapMakerSettings.SplitFrame.X, // mapMakerSettings.SplitFrame.Y); // client.Verbose = true; // client.ConstructCommandLineArgs(); // StringBuilder args = new StringBuilder(); // foreach (string arg in client.CommandLineArguments) // { // string arg2 = arg; // if (arg2 == "--read-xml") // arg2 = "--read-xml enableDateParsing=false"; // args.AppendFormat ("{0} ", arg2); // } // programRunner.RunExternalProgram( // Path.GetFullPath(mapMakerSettings.OsmosisPath), // Path.GetFullPath(mapMakerSettings.TempDir), // args.ToString()); // foreach (string outputFileName in client.OutputFileNames) // mapDataSourcesAfterSplitting.Add(new OsmDataSource(new OsmFileData(outputFileName))); //} //else // mapDataSourcesAfterSplitting.Add(this); }
public abstract void Split( MapMakerSettings mapMakerSettings, IList <IMapDataSource> mapDataSourcesAfterSplitting, IProgramRunner programRunner);
static void GetProgramRunner() { IProgramRunner = UnityConfig.GetProgramRunner(); }
/// <summary> /// Initializes a new instance of the <see cref="ExtensionOpener"/> class. /// </summary> /// <param name="programRunner">The program runner.</param> /// <param name="fileSystem">The file system.</param> /// <exception cref="ArgumentNullException"> /// programRunner /// or /// fileSystem /// </exception> public ExtensionOpener(IProgramRunner programRunner, IFileSystem fileSystem) { this.programRunner = programRunner ?? throw new ArgumentNullException(nameof(programRunner)); this.fileSystem = fileSystem ?? throw new ArgumentNullException(nameof(fileSystem)); }