Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/backend/SpatialInfo.java @ 2375:61cb16549eb1
Modified the signature of RiverAxis.getRiverAxis() which now returns a list of RiverAxis objects instead of a single instance.
flys-backend/trunk@3592 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 05 Jan 2012 10:42:20 +0000 |
parents | 22eea1c9e907 |
children | d183ae164cfc |
comparison
equal
deleted
inserted
replaced
2374:ab1e642e7c85 | 2375:61cb16549eb1 |
---|---|
86 return list.get(0); | 86 return list.get(0); |
87 } | 87 } |
88 | 88 |
89 | 89 |
90 protected void doRiverAxisInfo(River river) { | 90 protected void doRiverAxisInfo(River river) { |
91 RiverAxis axis = RiverAxis.getRiverAxis(river.getName()); | 91 List<RiverAxis> axis = RiverAxis.getRiverAxis(river.getName()); |
92 if (axis != null) { | 92 if (axis != null && axis.size() > 0) { |
93 LineString ls = axis.getGeom(); | 93 logger.debug("TODO: Compute length and boundary."); |
94 logger.info("River axis is " + ls.getLength() + " long."); | |
95 logger.info("River boundary: " + ls.getBoundary()); | |
96 } | 94 } |
97 else { | 95 else { |
98 logger.warn("River has no RiverAxis."); | 96 logger.warn("River has no RiverAxis."); |
99 } | 97 } |
100 } | 98 } |