Fix precision issue with real and as the crow flies length.
Šī revīzija ir iekļauta:
vecāks
d8470055f1
revīzija
423e36fc65
1 mainīti faili ar 3 papildinājumiem un 0 dzēšanām
|
@ -249,6 +249,9 @@ public class BinaryGraphReader extends BinaryReader implements GraphReader {
|
|||
}
|
||||
maxLength = Math.max(length, maxLength);
|
||||
|
||||
length = Math.max(length, (float) Point.distance(nodes.get(node).getPoint(),
|
||||
nodes.get(destNode).getPoint()));
|
||||
|
||||
// Number of segments.
|
||||
int nbSegments = dis.readUnsignedShort();
|
||||
|
||||
|
|
Notiek ielāde…
Atsaukties uz šo jaunā problēmā