Mercurial > dive4elements > river
diff flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java @ 186:cf8cbcb6a10d
Added parser to read *.KM files.
flys-backend/trunk@1506 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 17 Mar 2011 17:43:57 +0000 |
parents | 4ab2c3bd474c |
children | 003ac16812dd |
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java Thu Mar 17 16:12:39 2011 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java Thu Mar 17 17:43:57 2011 +0000 @@ -23,6 +23,8 @@ protected List<ImportGauge> gauges; + protected List<ImportAnnotation> annotations; + public ImportRiver() { } @@ -56,6 +58,11 @@ this.bbInfoFile = bbInfoFile; } + public void parseDependencies() throws IOException { + parseGauges(); + parseAnnotations(); + } + public void parseGauges() throws IOException { File gltFile = new File(wstFile.getParentFile(), PEGEL_GLT); gltFile = FileTools.repair(gltFile); @@ -70,5 +77,13 @@ gauges = pgltp.getGauges(); } + + public void parseAnnotations() throws IOException { + File riverDir = wstFile.getParentFile().getParentFile(); + AnnotationsParser aparser = new AnnotationsParser(); + aparser.parse(riverDir); + + annotations = aparser.getAnnotations(); + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :