pyguymer3.geo.fillin

pyguymer3.geo.fillin(shape, fill, /, *, debug=True, eps=1e-12, fillSpace='EuclideanSpace', nIter=100, prefix='.', ramLimit=1073741824, tol=1e-10)[source]

Fill in a shape

This function reads in a shape that exists on the surface of the Earth and returns the same shape filled in by a constant distance: either in degrees in Euclidean space; or in metres in Geodesic space.

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

  • 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 shape

Return type:

shapely.coords.CoordinateSequence, shapely.geometry.polygon.LinearRing, shapely.geometry.linestring.LineString, shapely.geometry.multilinestring.MultiLineString, shapely.geometry.polygon.Polygon, shapely.geometry.multipolygon.MultiPolygon

Notes

Copyright 2017 Thomas Guymer [1]

References