Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

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

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

Does that help?

share|improve this answer
    
thanks! it did. line3 = a.boundary.intersection(b.boundary) –  OLS Jul 4 '13 at 17:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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