<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi John,<br>
<br>
> I just found that it's not null<br>
<br>
null is not possible here and 0 is a valid latitude value so an
exception would be the best. That is indeed a bit ugly, we should
add a check in the nodeAccess to avoid this. Would you mind to
create an issue?<br>
<br>
The problem why you can still access the indices even after
max.nodes is that graphhopper uses segments of 1MB and very likely
there is still space after the last node. And now that you get
even reasonable values for a latitude is probably because
graphhopper creates the graph, detects islands and then marks
certain nodes to be deleted and moves the last nodes into those
gaps. It reduces the node count of course but without explicitly
clearing the last values.<br>
<br>
Kind Regards,<br>
Peter<br>
<br>
On 19.05.2015 08:37, John Zhao wrote:<br>
</div>
<blockquote
cite="mid:CA+EBg9Qcxvdm=eq1XJKxLKbKOh+vSSR9ya0uoS6g80P+hJdq1Q@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,
<div>I feel nodes should store all the tower nodes.</div>
<div>
<div style="font-size:12.8000001907349px">I just found that
it's not null for:</div>
<div style="font-size:12.8000001907349px">nodeAccess.getLatitude(graph.getNodes()+10001)</div>
<div style="font-size:12.8000001907349px"><img
src="cid:part1.09070209.03000800@gmx.de" alt="Inline image
1" height="85" width="405"><br>
</div>
<div style="font-size:12.8000001907349px"><br>
</div>
<div style="font-size:12.8000001907349px">So, it's a little
weird.</div>
<div style="font-size:12.8000001907349px">what is that after
the #nodes?</div>
<div style="font-size:12.8000001907349px"><br>
</div>
<div style="font-size:12.8000001907349px">Thanks!</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</blockquote>
<br>
</body>
</html>