area

Python – Is there a method to calculate the signed area of a polygon?

Python – Is there a method to calculate the signed area of a polygon? Question: I have a polygon defined in a Python list with (x, y) coordinates. # for example polygon = [(0, 0), (2, 0), (2, 2), (1, 1), (0, 2)] I would like to get the signed area of this polygon. I …

Total answers: 1

creating a polygon that covers other polygons layer using python

creating a polygon that covers other polygons layer using python Question: I have a layer with polygons (buildings) and I would like create a polygon that limits the area where the polygons are using geopandas or other python module SO I have these buildings: and I would like to have a new layer with a …

Total answers: 1

Area of triangle using 3 sets of coordinates

Area of triangle using 3 sets of coordinates Question: I am doing one question where i need to find area of triangle with given 3 sets of coordinates So what will be the logic to convert array to pair in (a1,b1) (a2,b2) (a3,b3) and how to find area of triangle using this vertices Here is …

Total answers: 2

Find the area between two curves plotted in matplotlib (fill_between area)

Find the area between two curves plotted in matplotlib (fill_between area) Question: I have a list of x and y values for two curves, both having weird shapes, and I don’t have a function for any of them. I need to do two things: Plot it and shade the area between the curves like the …

Total answers: 7

Calculate area of polygon given (x,y) coordinates

Calculate area of polygon given (x,y) coordinates Question: I have a set of points and would like to know if there is a function (for the sake of convenience and probably speed) that can calculate the area enclosed by a set of points. for example: x = np.arange(0,1,0.001) y = np.sqrt(1-x**2) points = zip(x,y) given …

Total answers: 12

Calculate Polygon area in planar units (e.g. square-meters) in Shapely

Calculate Polygon area in planar units (e.g. square-meters) in Shapely Question: I am using Python 3.4 and shapely 1.3.2 to create a Polygon object out of a list of long/lat coordinate pairs which I transform into a well-known-text string in order to parse them. Such a Polygon might look like: POLYGON ((-116.904 43.371, -116.823 43.389, …

Total answers: 3