Shapely has some very useful data types the most commonly used ones for data anaysis are points which are zero area points which represent something like a GPS reading a shapely polygon is probably the most useful data type and allows us to store and manipulate polygons a shapely box is actually a function rather than a type allows us to create rectangle which is probably the most common shape we’ll need and finally a mulyi-polygon is simply a container of multiple polygon objects.
We can create shapely objects in a straightforward way from the python lists in the code example shown pt is a shapely point, bx is a rectangle a box or rectangle is defined with the syntax lower left x coordinate lower left y coordinate, upper right x coordinate and upper right y coordinate. py1 and py2 are both shapely polygons. py1 shows how to convert a python list into a polygon object.