pyguymer3.geo.fillinSrc.fillin_Polygon¶
- pyguymer3.geo.fillinSrc.fillin_Polygon(poly, fill, /, *, debug=True, eps=1e-12, fillSpace='EuclideanSpace', nIter=100, prefix='.', ramLimit=1073741824, tol=1e-10)[source]¶
Fill in a Polygon
This function reads in a Polygon (with an exterior and any number of interiors) that exists on the surface of the Earth and returns a Polygon of the same Polygon filled in by a constant distance: either in degrees in Euclidean space; or in metres in Geodesic space.
- Parameters:
poly (shapely.geometry.polygon.Polygon) – the Polygon
fill (float) – the Euclidean or Geodesic distance to fill in between each point within the shape by (in degrees or metres)
debug (bool, optional) – print debug messages
eps (float, optional) – the tolerance of the Vincenty formula iterations
fillSpace (str, optional) – the geometric space to perform the filling in (either “EuclideanSpace” or “GeodesicSpace”)
nIter (int, optional) – the maximum number of iterations (particularly the Vincenty formula)
prefix (str, optional) – change the name of the output debugging CSVs
ramLimit (int, optional) – the maximum RAM usage of each “large” array (in bytes)
tol (float, optional) – the Euclidean distance that defines two points as being the same (in degrees)
- Returns:
fills – the filled in Polygon
- Return type:
shapely.geometry.polygon.Polygon
Notes
Copyright 2017 Thomas Guymer [1]
References