Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileMeshCrossOutputState.java @ 416:04a242c67fe6
Added support of gap detection in horizontalcrossprofile charts.
gnv-artifacts/trunk@464 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 21 Dec 2009 13:49:49 +0000 |
parents | f66088a43ecc |
children | 6eae1efb5fc3 |
comparison
equal
deleted
inserted
replaced
375:b3ad3cb94855 | 416:04a242c67fe6 |
---|---|
393 value, | 393 value, |
394 iPos, jPos); | 394 iPos, jPos); |
395 points.add(p); | 395 points.add(p); |
396 } | 396 } |
397 | 397 |
398 public void interpolated(Coordinate coordinate) { | 398 public void interpolated(Coordinate coordinate, boolean success) { |
399 DefaultResult result = new DefaultResult(descriptor); | 399 DefaultResult result = new DefaultResult(descriptor); |
400 ResultDescriptor pd = prototyp.getResultDescriptor(); | 400 ResultDescriptor pd = prototyp.getResultDescriptor(); |
401 | 401 |
402 int pcolums = pd.getColumnCount(); | 402 int pcolums = pd.getColumnCount(); |
403 for (int i = 0, j = 0; i < pcolums; ++i) { | 403 for (int i = 0, j = 0; i < pcolums; ++i) { |
407 } | 407 } |
408 if (colname.equals("SHAPE")) { | 408 if (colname.equals("SHAPE")) { |
409 result.addColumnValue(j, toWKT(coordinate)); | 409 result.addColumnValue(j, toWKT(coordinate)); |
410 } | 410 } |
411 else if (colname.equals("YORDINATE")) { | 411 else if (colname.equals("YORDINATE")) { |
412 result.addColumnValue(j, Double.valueOf(coordinate.z)); | 412 result.addColumnValue(j, success |
413 ? Double.valueOf(coordinate.z) | |
414 : null); | |
413 } | 415 } |
414 else { | 416 else { |
415 result.addColumnValue(j, prototyp.getObject(i)); | 417 result.addColumnValue(j, prototyp.getObject(i)); |
416 } | 418 } |
417 ++j; | 419 ++j; |