pyguymer3.geo.area

pyguymer3.geo.area(shape, /, *, eps=1e-12, level=1, nIter=100, onlyValid=False, repair=False)[source]

Find the area of a shape.

Parameters:
  • shape (shapely.coords.CoordinateSequence, shapely.geometry.point.Point, shapely.geometry.multipoint.MultiPoint, shapely.geometry.polygon.LinearRing, shapely.geometry.linestring.LineString, shapely.geometry.multilinestring.MultiLineString, shapely.geometry.polygon.Polygon, shapely.geometry.multipolygon.MultiPolygon) – the shape

  • eps (float, optional) – the tolerance of the Vincenty formula iterations

  • level (int, optional) – the number of levels to split the shape into

  • nIter (int, optional) – the maximum number of iterations (particularly the Vincenty formula)

  • onlyValid (bool, optional) – only add valid Polygons (checks for validity can take a while, if being being called often)

  • repair (bool, optional) – attempt to repair invalid Polygons

Returns:

area – the area (in metres-squared)

Return type:

float

Notes

Copyright 2017 Thomas Guymer [1]

References