Daten um Schachttyp erweitert
Wird aus CSV eingelese
This commit is contained in:
@@ -50,7 +50,17 @@ namespace WWTech_KanalSchnittstelle.Importer
|
||||
{ "3310", EEntwaeserung.Regenwasser }
|
||||
};
|
||||
|
||||
if(!File.Exists(filename))
|
||||
Dictionary<string, ESchachtType> schachtKennung = new Dictionary<string, ESchachtType>()
|
||||
{
|
||||
{ "1100", ESchachtType.Hauptkanal },
|
||||
{ "1200", ESchachtType.Hauptkanal },
|
||||
{ "1300", ESchachtType.Hauptkanal },
|
||||
{ "3110", ESchachtType.Revisionschacht },
|
||||
{ "3210", ESchachtType.Revisionschacht },
|
||||
{ "3310", ESchachtType.Revisionschacht }
|
||||
};
|
||||
|
||||
if (!File.Exists(filename))
|
||||
{
|
||||
throw new FileNotFoundException(filename);
|
||||
}
|
||||
@@ -93,10 +103,12 @@ namespace WWTech_KanalSchnittstelle.Importer
|
||||
if (parsed.Length >= 4)
|
||||
{
|
||||
schacht.Entwaesserung = entwaesserungKennung[parsed[4]];
|
||||
schacht.SchachtType = schachtKennung[parsed[4]];
|
||||
}
|
||||
else
|
||||
{
|
||||
schacht.Entwaesserung = EEntwaeserung.Schmutzwasser;
|
||||
schacht.SchachtType = ESchachtType.Hauptkanal;
|
||||
}
|
||||
schacht.Projekt = projekt;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user