Skip to main content

fromstr

Given a string value, return a GEOSGeometry object.

def fromstr(
string: string,
**kwargs: dict
) - > GEOSGeometry

Given a string value, return a GEOSGeometry object.

Parameters

NameTypeDescription
stringstringThe string representation of the geometry, such as WKT (Well-Known Text) or Hex EWKB
**kwargsdictAdditional keyword arguments passed to the GEOSGeometry constructor for configuration

Returns

TypeDescription
GEOSGeometryA GEOSGeometry object initialized from the provided string representation