I have some questions:
أكثر...
- can I connect to the GEOData server without using ArcSDE? If yes what is the different classes Or interfaces I can use to extract my fields from the geodata
- when I use any method from serverContext I always get an error and I don’t know why ,what I have to do to fix the problem .
private void cmdSolve_Click(object sender, System.EventArgs e) { this.Cursor = Cursors.WaitCursor;
IServerContext serverContext = null; try { // Get ServerContext and NAServer serverContext = GetMapServerContext(); INAServer naServer = GetNAServer(serverContext); // Get SolverParams INAServerSolverParams solverParams = naServer.GetSolverParameters(cboNALayers.Text) as INAServerSolverParams; // Set Solver params SetINASolverSettings(solverParams as INASolverSettings); SetSolverSpecificInterface(solverParams); SetServerSolverParams(solverParams as INAServerSolverParams, serverContext); // Load Locations LoadLocations(solverParams, serverContext); //Solve the Route INAServerSolverResults solverResults = null; solverResults = naServer.Solve(solverParams); //Get NAServer results in the tab controls OutputResults(solverParams, solverResults); } catch (Exception exception) { MessageBox.Show(exception.Message, "An error has occurred"); }
أكثر...