[Dive4elements-commits] [PATCH 04 of 13] W80Parser: Respect (ignore) 'shore' field of w80 files
Wald Commits
scm-commit at wald.intevation.org
Fri Jan 4 11:12:43 CET 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1357220525 -3600
# Node ID 4db3a1509e90110451b713338cc7195983097b3f
# Parent e965593eee57121120dee7382ef2b64815693f7d
W80Parser: Respect (ignore) 'shore' field of w80 files.
diff -r e965593eee57 -r 4db3a1509e90 flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java Thu Jan 03 14:41:41 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java Thu Jan 03 14:42:05 2013 +0100
@@ -178,10 +178,11 @@
// because later distances are calculated which cannot be
// negative.
String pointId = line.substring(0,20);
- String station = line.substring(9,16);
+ String station = line.substring(9,15);
+ String shore = line.substring(15,17);
// TODO: There is 'station' and a 'shore'-code behind.
// 1 = left, 2 = right. none = middle
- String pointIndex = line.substring(16,21);
+ String pointIndex = line.substring(17,21);
// For GK, first seven digits are of interest.
String gkRight = line.substring(20,30);
String gkHigh = line.substring(30,40);
More information about the Dive4elements-commits
mailing list