0👍
The solution is simple:
x1, y1 = 'left bottom corner of rectangle area'
x2, y2 = 'top right corner of rectangle area'
area = Polygon.from_bbox((x1, y1, x2, y2))
P.S. Cover this code with test to be sure 🙂
Source:stackexchange.com
0👍
The solution is simple:
x1, y1 = 'left bottom corner of rectangle area'
x2, y2 = 'top right corner of rectangle area'
area = Polygon.from_bbox((x1, y1, x2, y2))
P.S. Cover this code with test to be sure 🙂