Spatial Data Analysis:Shapely
<p>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.</p>
<p>We can create shapely objects in a straightforward way from the python lists in the code example shown <em>pt </em>is a shapely point, <em>bx </em>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. <em>py1 </em>and <em>py2 </em>are both<em> </em>shapely polygons. <em>py1 </em>shows how to convert a<em> </em>python list into a polygon object.</p>
<p><a href="https://medium.com/@mervegamzenar/spatial-data-analysis-shapely-fe72d65e63bf"><strong>Website</strong></a></p>