Import and Export of Regions

This commit is contained in:
2023-02-03 00:02:04 +01:00
parent 9ce3bc4a9d
commit f31b1b577b
6 changed files with 165 additions and 29 deletions

View File

@ -8,6 +8,9 @@ public class Server
public static void Main(string[] args)
{
Importer.Split("/home/glax/Downloads/oberbayern-latest.osm", "/home/glax/Downloads/split");
Importer.Split("/home/glax/Downloads/bayern-latest.osm", "/home/glax/Downloads/bayern-latest");
Region r = Importer.ImportRegion("/home/glax/Downloads/bayern-latest", new Coordinates(47.890f,12.56f));
foreach(KeyValuePair<ulong, Node> nodes in r.GetNodes())
Console.WriteLine(nodes.Key);
}
}