preliminary supress hgt reading in pos-unifier (performace problem)
This commit is contained in:
parent
f7bce89b7c
commit
8d711bf73a
1 changed files with 7 additions and 2 deletions
|
@ -98,10 +98,15 @@ public class PosUnifier extends MapCreatorBase {
|
|||
@Override
|
||||
public void nextNode(NodeData n) throws Exception {
|
||||
n.selev = Short.MIN_VALUE;
|
||||
SrtmRaster srtm = hgtForNode(n.ilon, n.ilat);
|
||||
|
||||
// TODO: performance bottleneck from hgtForNode
|
||||
|
||||
/* SrtmRaster srtm = hgtForNode(n.ilon, n.ilat);
|
||||
if (srtm == null) {
|
||||
srtm = srtmForNode(n.ilon, n.ilat);
|
||||
}
|
||||
} */
|
||||
|
||||
SrtmRaster srtm = srtmForNode(n.ilon, n.ilat);
|
||||
|
||||
if (srtm != null) n.selev = srtm.getElevation(n.ilon, n.ilat);
|
||||
findUniquePos(n);
|
||||
|
|
Loading…
Reference in a new issue