> here is what's around line 594 in the script:
> 
> print
> 
> print "Simplifying line segments"
> 
> for line in lineSegments.values():
> 
>     #print line
> 
>     for segmentID in line:    # No need to check the last segment, it could
> not be simplyfied
> 
>         #print segmentID
> 
>         #print segmentNodes[segmentID]
> 
>         for nodeID in segmentNodes[segmentID]:
> 
>             simplifyNode(nodeID)
> 
>             #simplifyNode(segmentNodes[segmentID][0])    # last node in
> segment
> 
> 
> Thanks for any help!

I've seen this a couple times before too. I haven't cared enough to investigate 
what's exactly going on…

But to make the error go away, change that 'for' statement on line 594 to:

  for nodeID in segmentNodes.get(segmentID, []):

The side effects depend on your data. Make sure to check for problems.

-- 
Samat K Jain <http://samat.org/> | GPG: 0x4A456FBA

Adults are just obsolete children, and too hell with them.
-- Theodor Seuss Geisel (Dr. Seuss) (362)

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev

Reply via email to