opteryx 1562 Posted November 22, 2008 Well I'm trying to use the smooth roads/moving average script, but it keeps running forever and doesn't finish.... what gives? Share this post Link to post Share on other sites
t_d 47 Posted November 22, 2008 Is there any output in the script console? Share this post Link to post Share on other sites
Nicholas Bell 0 Posted November 22, 2008 I've had that problem if I made real long roadnets or ones with multiple intersections. I just limit the length of roads and overlap the ends of the different segments. Share this post Link to post Share on other sites
opteryx 1562 Posted November 22, 2008 Is there any output in the script console? After this: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Wait - getting vertices Wait - getting vertices Done :) Done :) the console just goes blank, then... nothing, it just says script in progress and never ends. I've had that problem if I made real long roadnets or ones with multiple intersections. Â I just limit the length of roads and overlap the ends of the different segments. Yeah it works on short road segments, but this one isn't that long. Share this post Link to post Share on other sites
t_d 47 Posted November 22, 2008 Hmm in your script output every line is doubled. The script says for example <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">echo "---------------"; echo "SmoothRoads.vis"; echo "---------------"; And each of this lines appears twice. Is that with every script you use? Share this post Link to post Share on other sites
opteryx 1562 Posted November 22, 2008 And each of this lines appears twice. Is that with every script you use? Yes. Is it not supposed to? Share this post Link to post Share on other sites
t_d 47 Posted November 23, 2008 Dunno, but what sense does it make? To track down the problem you should put further echo commands between this code part:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> echo "Done :)"; _walkPts = getWalkPoints _road; { // gets the profile of this part of road _profile = _x call GetRoadProfile; // smooths the profile _smoothedProfile = [_profile, _algToUse, _parameter] call SmoothProfile; echo "vertices:"; Somewhere in there it stucks. Share this post Link to post Share on other sites