MCPcopy
hub / github.com/django/django / get_geoms

Method get_geoms

tests/gis_tests/geos_tests/test_geos.py:1460–1461  ·  view source on GitHub ↗
(lst, srid=None)

Source from the content-addressed store, hash-verified

1458 # Creating a list of test geometries for pickling,
1459 # and setting the SRID on some of them.
1460 def get_geoms(lst, srid=None):
1461 return [GEOSGeometry(tg.wkt, srid) for tg in lst]
1462
1463 tgeoms = get_geoms(self.geometries.points)
1464 tgeoms.extend(get_geoms(self.geometries.multilinestrings, 4326))

Callers 1

test05_geometriesMethod · 0.45

Calls 1

GEOSGeometryClass · 0.90

Tested by

no test coverage detected