spherely.from_wkt

Contents

spherely.from_wkt#

spherely.from_wkt(a: numpy.ndarray[object], oriented: bool = False, planar: bool = False, tessellate_tolerance: float = 100.0) object#

Creates geographies from the Well-Known Text (WKT) representation.

Parameters:
  • a (str or array_like) – WKT strings.

  • oriented (bool, default False) – Set to True if polygon ring directions are known to be correct (i.e., exterior rings are defined counter clockwise and interior rings are defined clockwise). By default (False), it will return the polygon with the smaller area.

  • planar (bool, default False) – If set to True, the edges of linestrings and polygons are assumed to be linear on the plane. In that case, additional points will be added to the line while creating the geography objects, to ensure every point is within 100m of the original line. By default (False), it is assumed that the edges are spherical (i.e. represent the shortest path on the sphere between two points).

  • tessellate_tolerance (float, default 100.0) – The maximum distance in meters that a point must be moved to satisfy the planar edge constraint. This is only used if planar is set to True.