예제 #1
0
def bounds(ob):
    """Returns a (minx, miny, maxx, maxy) bounding box.

    The ``ob`` may be a feature record or geometry."""
    geom = ob.get('geometry') or ob
    return _bounds(geom)
예제 #2
0
파일: __init__.py 프로젝트: dimlev/Fiona
def bounds(ob):
    """Returns a (minx, miny, maxx, maxy) bounding box.
    
    The ``ob`` may be a feature record or geometry."""
    geom = ob.get('geometry') or ob
    return _bounds(geom)