def _geom_str(geom):
    if geom.GetGeometryType() == ogr.wkbPoint:
        return 'POINT ({:.3f}, {:.3f})'.format(geom.GetX(), geom.GetY())
    else:
        return geom.GetGeometryName()
Get a geometry string for printing attributes.
dataset/ETHPy150Open cgarrard/osgeopy-code/ospybook/ospybook/__init__.py/_geom_str