Пример #1
0
def getBufferedExtent(theGeoExtent, theCellSize):
    """Grow bounding box with one unit of resolution in each direction.

    Args:

        * theGeoExtent - Bounding box with format [W, S, E, N]
        * theCellSize - (resx, resy) Raster resolution in each direction.

        If resolution is None bbox is returned unchanged.

    Returns:
        Adjusted bounding box

    Raises:

        Any exceptions are propogated
    Note: See docstring for underlying function buffered_bounding_box
          for more details.
    """
    try:
        return buffered_bounding_box(theGeoExtent, theCellSize)
    except:
        raise
Пример #2
0
def get_buffered_extent(geo_extent, cell_size):
    """Grow bounding box with one unit of resolution in each direction.

    If resolution is None bbox is returned unchanged.

    :param geo_extent: Bounding box with format [W, S, E, N]
    :type geo_extent: list

    :param cell_size: (resx, resy) Raster resolution in each direction.
    :type: tuple

    :returns: Adjusted bounding box.
    :rtype: list

    :raises: Any exceptions raised will be propagated.

    Note: See docstring for underlying function buffered_bounding_box
          for more details.
    """
    try:
        return buffered_bounding_box(geo_extent, cell_size)
    except:
        raise
Пример #3
0
def getBufferedExtent(theGeoExtent, theCellSize):
    """Grow bounding box with one unit of resolution in each direction.

    Args:

        * theGeoExtent - Bounding box with format [W, S, E, N]
        * theCellSize - (resx, resy) Raster resolution in each direction.

        If resolution is None bbox is returned unchanged.

    Returns:
        Adjusted bounding box

    Raises:
        Any exceptions are propogated

    Note: See docstring for underlying function buffered_bounding_box
          for more details.
    """
    try:
        return buffered_bounding_box(theGeoExtent, theCellSize)
    except:
        raise
Пример #4
0
def get_buffered_extent(geo_extent, cell_size):
    """Grow bounding box with one unit of resolution in each direction.

    If resolution is None bbox is returned unchanged.

    :param geo_extent: Bounding box with format [W, S, E, N]
    :type geo_extent: list

    :param cell_size: (resx, resy) Raster resolution in each direction.
    :type: tuple

    :returns: Adjusted bounding box.
    :rtype: list

    :raises: Any exceptions raised will be propagated.

    Note: See docstring for underlying function buffered_bounding_box
          for more details.
    """
    try:
        return buffered_bounding_box(geo_extent, cell_size)
    except:
        raise