On Wed, Jun 11, 2008 at 6:44 AM, Karl Newman <<a href="mailto:siliconfiend@gmail.com">siliconfiend@gmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Wed, Jun 11, 2008 at 12:35 AM, Simon Wood <<a href="mailto:simon@mungewell.org" target="_blank">simon@mungewell.org</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
I have finally gotten around to uploading some of the Calgary Trails Project data... under the username 'catmp'. I made a slight mod the converter to remove attribution/RoadID on nodes within a way as this was making/will make cleaning up of traces difficult.<br>
<br>
I think there is a bug with the POLYGON stuff. Look in the Calgary area (BOW RIVER polygons), they are mostly right but 'jump' to nodes not in the original polygon. So it looks like something is up with the 'previously used' node stuff.<br>
<br>
For example (frigged the name to make it findable in output)<br>
---<br>
[POLYGON]<br>
Type=0x48<br>
Label=BLOW RIVER<br>
Data0=(50.93128,-113.99972),(50.93116,-113.99959),(50.93172,-113.99959),(50.93214,-113.99998),(50.93279,-114.00093),(50.93288,-114.00122),(50.93270,-114.00196),(50.93262,-114.00212),(50.93253,-114.00199),(50.93227,-114.00067),(50.93163,-113.99990),(50.93150,-113.99993)<br>
[END]RoadID=1459<br>
---<br>
ends up with nodes<br>
---<br>
<node id='-1' visible='true' lat='50.93163' lon='-113.9999' /> - yes<br>
<node id='-2' visible='true' lat='50.93227' lon='-114.00067' /> - yes<br>
<node id='-3' visible='true' lat='50.91909' lon='-113.99369' /> - no<br>
comes from RoadID 1458<br>
<node id='-4' visible='true' lat='50.93262' lon='-114.00212' /> - yes<br>
<node id='-5' visible='true' lat='50.93214' lon='-113.99998' /> - yes<br>
<node id='-6' visible='true' lat='50.93279' lon='-114.00093' /> - yes<br>
<node id='-7' visible='true' lat='50.93116' lon='-113.99959' /> - yes<br>
<node id='-8' visible='true' lat='50.93288' lon='-114.00122' /> - yes<br>
<node id='-9' visible='true' lat='50.9327' lon='-114.00196' /> - yes<br>
<node id='-10' visible='true' lat='50.91991' lon='-113.9935' /> - no<br>
comes from RoadID=1459<br>
<node id='-11' visible='true' lat='50.92262' lon='-113.99522' /> - no<br>
comes from RoadID=1459<br>
<node id='-12' visible='true' lat='50.9315' lon='-113.99993' /> - yes<br>
---<br>
<br>
<br>
<br>
I am not 100% convinced of the tags, apparently the route up Turtle<br>
Mountain is 'bicycle=yes'... this is definately NOT the case!!!! Don't<br>
know whether this is source data problem, or with the parsing of the<br>
garmin attributes.<br>
<br>
Places uploaded:<br>
<a href="http://www.openstreetmap.org/?lat=49.5908&lon=-114.4056&zoom=14&layers=B00FT" target="_blank">http://www.openstreetmap.org/?lat=49.5908&lon=-114.4056&zoom=14&layers=B00FT</a><br>
<a href="http://www.openstreetmap.org/?lat=49.5846&lon=-114.5279&zoom=13&layers=B00FT" target="_blank">http://www.openstreetmap.org/?lat=49.5846&lon=-114.5279&zoom=13&layers=B00FT</a><br>
<a href="http://www.openstreetmap.org/?lat=49.3548&lon=-114.2812&zoom=13&layers=B00FT" target="_blank">http://www.openstreetmap.org/?lat=49.3548&lon=-114.2812&zoom=13&layers=B00FT</a><br>
<a href="http://www.openstreetmap.org/?lat=49.0474&lon=-113.9209&zoom=13&layers=B00FT" target="_blank">http://www.openstreetmap.org/?lat=49.0474&lon=-113.9209&zoom=13&layers=B00FT</a><br>
<br>
(these are revertable/removable quite easily as there are isolated on their own)<br>
<br>
Way too late to do much more on this tonight (errr.. this morning). Cheers,<br>
<font color="#888888">Simon.</font></blockquote></div><br></div></div>I don't think I did much of anything with the polygon part--I mostly focused on the polylines. I'll look into it but I'm not sure that I'll be able to get to it right away. As for the bicycle=yes, I'll double-check the parsing but I suspect it's a problem with the source data. Part of the issue is that if it's not marked as restricted/forbidden in the .mp file, then I had to assume that meant "yes".<br>
<font color="#888888">
<br>Karl<br>
</font></blockquote></div><br>Okay, it was a one-line fix. I wasn't clearing out the routing nodes so the polygons were trying to reuse nodes from previously parsed roads. It's checked in to SVN. As far as Turtle Mountain, it's in the source data, so apparently someone thought bicycles were okay (at least not restricted). Don't forget bicycle can include mountain bike, too. I think there may be some proposals about distinguishing between them, but in any case there's not enough information in the source data to make that distinction.<br>
<br>Karl<br>