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&rsquo;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&nbsp;<em>pt&nbsp;</em>is a shapely point,&nbsp;<em>bx&nbsp;</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.&nbsp;<em>py1&nbsp;</em>and&nbsp;<em>py2&nbsp;</em>are both<em>&nbsp;</em>shapely polygons.&nbsp;<em>py1&nbsp;</em>shows how to convert a<em>&nbsp;</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>