def get_shp_geom(fn):
    lyr, ds = _get_layer(fn)
    feat = lyr.GetNextFeature()
    return feat.geometry().Clone()
Convenience function to get the first geometry from a shapefile.
dataset/ETHPy150Open cgarrard/osgeopy-code/ospybook/ospybook/__init__.py/get_shp_geom