quarta-feira, 1 de outubro de 2014

Using Shapely - intersection between bouding boxes

Discovering the area of intersection between two bounding boxes using Shapely

1 from shapely.geometry import box
2 b = box(5.0, 5.0, 10.0, 10.0)
3 c = box(0.0, 0.0, 5.0, 5.0)
4 print (b.intersection(c)).area
_________________________________
4: 0.0

Nenhum comentário:

Postar um comentário