Ejemplo n.º 1
0
def getImageBoundingBox(filePath):
    """Returns (minLon, maxLon, minLat, maxLat) for a georeferenced image file"""

    extension = os.path.splitext(filePath)[1]
    if '.cub' in extension:
        return IrgIsisFunctions.getIsisBoundingBox(filePath)
    else:  # Handle all other types
        return getGeoTiffBoundingBox(filePath)
Ejemplo n.º 2
0
def getImageBoundingBox(filePath):
    """Returns (minLon, maxLon, minLat, maxLat) for a georeferenced image file"""

    extension = os.path.splitext(filePath)[1]
    if '.cub' in extension:
        return IrgIsisFunctions.getIsisBoundingBox(filePath)
    else: # Handle all other types
        return getGeoTiffBoundingBox(filePath)