MCPcopy
hub / github.com/django/django / fromstr

Function fromstr

django/contrib/gis/geos/factory.py:31–33  ·  view source on GitHub ↗

Given a string value, return a GEOSGeometry object.

(string, **kwargs)

Source from the content-addressed store, hash-verified

29
30
31def fromstr(string, **kwargs):
32 "Given a string value, return a GEOSGeometry object."
33 return GEOSGeometry(string, **kwargs)

Callers 15

test_isvalid_lookupMethod · 0.90
test_equals_lookupsMethod · 0.90
test_relate_lookupMethod · 0.90
test_isvalidMethod · 0.90
test_make_validMethod · 0.90
test_snap_to_gridMethod · 0.90
test_transformMethod · 0.90
test_unionMethod · 0.90
test01_PointMutationsMethod · 0.90

Calls 1

GEOSGeometryClass · 0.90

Tested by 15

test_isvalid_lookupMethod · 0.72
test_equals_lookupsMethod · 0.72
test_relate_lookupMethod · 0.72
test_isvalidMethod · 0.72
test_make_validMethod · 0.72
test_snap_to_gridMethod · 0.72
test_transformMethod · 0.72
test_unionMethod · 0.72
test01_PointMutationsMethod · 0.72