On Mon, May 24, 2010 at 5:05 PM, gene <[email protected]> wrote:
> Hello Sean,
>
> I do not understand the final of your script (the cut.cut(line):
>
>>>> line = LineString([(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0)])
>>>> pprint([list(x.coords) for x in cut.cut(line, 1.0)])
>
> For me, with Python 2.5, what works is:
>
>>>> line = LineString([(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0)])
>>>> pprint.pprint([list(x.coords) for x in cut(line, 1.0)])
> [[(0.0, 0.0), (1.0, 0.0)],
>  [(1.0, 0.0), (2.0, 0.0), (3.0, 0.0), (4.0, 0.0), (5.0, 0.0)]]
>

Yes, there was a mistake that I have now corrected. Thanks,

-- 
Sean

Reply via email to