[Dive4elements-commits] [PATCH 06 of 10] W80Parser: Put infrastructure for an anchor point in place
Wald Commits
scm-commit at wald.intevation.org
Thu Jan 3 10:16:22 CET 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1357203496 -3600
# Node ID 2a6d64a415e4dac54eca5a2686b86a15672c7d9a
# Parent 0b60b77d4d00170a389955c643b75bfa53a8c44b
W80Parser: Put infrastructure for an anchor point in place.
diff -r 0b60b77d4d00 -r 2a6d64a415e4 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 09:57:22 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java Thu Jan 03 09:58:16 2013 +0100
@@ -5,6 +5,7 @@
import de.intevation.flys.importer.XY;
import de.intevation.flys.utils.EpsilonComparator;
+import de.intevation.flys.importer.parsers.tim.Coordinate;
import java.io.File;
import java.io.IOException;
@@ -55,6 +56,26 @@
protected Map<Double, List<XY>> data;
+ /** Anchor to project to. */
+ private class Anchor {
+ private Coordinate coordinate;
+ private double station;
+ public Anchor(Coordinate anchor, double station) {
+ this.coordinate = anchor;
+ this.station = station;
+ }
+ public double getStation() {
+ return station;
+ }
+ public Coordinate getCoordinate() {
+ return coordinate;
+ }
+ }
+
+
+ private Anchor anchor;
+
+
/** Trivial constructor. */
public W80Parser() {
data = new TreeMap<Double, List<XY>>(EpsilonComparator.CMP);
More information about the Dive4elements-commits
mailing list