- Timestamp:
- 08/13/12 17:35:16 (12 years ago)
- Location:
- branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3/HeuristicLab.Problems.RoutePlanning.csproj
r8438 r8480 46 46 <Reference Include="HeuristicLab.Persistence-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" /> 47 47 <Reference Include="HeuristicLab.PluginInfrastructure-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" /> 48 <Reference Include="ICSharpCode.SharpZipLib, Version=0.85.4.369, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL" /> 48 49 <Reference Include="System" /> 49 50 <Reference Include="System.Core" /> … … 56 57 </ItemGroup> 57 58 <ItemGroup> 59 <Compile Include="DIMACS\DIMACSDataSource.cs" /> 58 60 <Compile Include="Graph\Edge.cs" /> 59 61 <Compile Include="Graph\Graph.cs" /> -
branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3/Osm.Data/XmlDataSource.cs
r8462 r8480 1 1 2 using System;3 2 using System.Collections.Generic; 4 3 using System.IO; … … 92 91 graph.AddVertex(v1); 93 92 Vertex v2 = new Vertex(nodes[i + 1].Id, nodes[i + 1].Longitude, nodes[i + 1].Latitude); 94 if (v1.Id == 370626403) { 95 Console.WriteLine(); 96 } 93 94 // --------------------------------------- 95 //long id = 314973778; 96 //if (v1.Id == id || v2.Id == id) { 97 // Console.WriteLine(); 98 //} 99 // --------------------------------------- 97 100 graph.AddVertex(v2); 101 short category = (short)way.HighwayTag; 98 102 if (way.OneWay) { 99 Edge<Vertex> edge = new Edge<Vertex>(v1, v2); 100 edge.Category = (short)way.HighwayTag; 103 Edge<Vertex> edge = new Edge<Vertex>(v1, v2, category); 101 104 graph.AddEdge(edge); 102 105 } else { 103 Edge<Vertex> edgeForward = new Edge<Vertex>(v1, v2); 104 edgeForward.Category = (short)way.HighwayTag; 106 Edge<Vertex> edgeForward = new Edge<Vertex>(v1, v2, category); 105 107 graph.AddEdge(edgeForward); 106 108 107 Edge<Vertex> edgeBackward = new Edge<Vertex>(v2, v1); 108 edgeForward.Category = (short)way.HighwayTag; 109 Edge<Vertex> edgeBackward = new Edge<Vertex>(v2, v1, category); 109 110 graph.AddEdge(edgeBackward); 110 111 } 111 112 112 } 113 113 }
Note: See TracChangeset
for help on using the changeset viewer.