2

Can you help me break down shape A to different linestrings: lines 2 & 3 AND line 1? The shape contains three different polygons (A, B, C). I wish to determine the start/end point of each part with the common points of the other polygons.

I'm using Postgis 1.5 / Python Shapely

A1

0

1 Answer 1

0

The intersection of A and B's exterior rings will be your segment 3, yes?

line3 = a.exterior.intersection(b.exterior)

Does that help?

1
  • thanks! it did. line3 = a.boundary.intersection(b.boundary)
    – OLS
    Commented Jul 4, 2013 at 17:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.