Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/GridCell.java @ 519:4e347624ee7c
Last part to fix gnv/issue153. Now 'Profilschnitte', 'Horizontalschnitte' and 'horizontale Schnittprofile'
all use the same x/y interpolation code.
gnv-artifacts/trunk@613 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 23 Jan 2010 21:16:45 +0000 |
parents | 96a1e92e7ed2 |
children | b248531fa20b |
comparison
equal
deleted
inserted
replaced
518:464e03bf786b | 519:4e347624ee7c |
---|---|
125 } | 125 } |
126 | 126 |
127 row.put(p.j, p); | 127 row.put(p.j, p); |
128 } | 128 } |
129 | 129 |
130 if (log.isDebugEnabled()) { | |
131 log.debug("culled points: " + culled); | |
132 } | |
133 | |
134 ArrayList<GridCell> cells = new ArrayList<GridCell>(points.size()); | 130 ArrayList<GridCell> cells = new ArrayList<GridCell>(points.size()); |
135 | 131 |
136 for (int i = minI + 1; i <= maxI; ++i) { | 132 for (int i = minI + 1; i <= maxI; ++i) { |
137 HashMap<Integer, Point2d> row1 = rows.get(i-1); | 133 HashMap<Integer, Point2d> row1 = rows.get(i-1); |
138 HashMap<Integer, Point2d> row2 = rows.get(i); | 134 HashMap<Integer, Point2d> row2 = rows.get(i); |
148 } | 144 } |
149 } // for all columns in row | 145 } // for all columns in row |
150 } | 146 } |
151 } // for all rows | 147 } // for all rows |
152 | 148 |
149 if (log.isDebugEnabled()) { | |
150 log.debug("culled points: " + culled); | |
151 log.debug("min/max i: " + minI + " / " + maxI); | |
152 log.debug("min/max j: " + minJ + " / " + maxJ); | |
153 log.debug("cells found: " + cells.size()); | |
154 } | |
155 | |
153 return cells; | 156 return cells; |
154 } | 157 } |
155 } | 158 } |
156 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 159 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |