get_geoms(geos=False)
A method that returns a list containing the geometry of each feature in the layer. If the optional argument geos
is set to True
then the geometries are converted to GEOSGeometry
objects. Otherwise, they are returned as OGRGeometry
objects:
>>> [pt.tuple for pt in layer.get_geoms()] [(-104.609252, 38.255001), (-95.23506, 38.971823), (-95.363151, 29.763374)]
Please login to continue.