def getInfo(row, key, fill, polygon_data):
    """
    Retrieve information from polygon data:

    @param row: Container with key 'ShapeIndex'
    @param key: Key of data to retrieve from polygon_data element
    @param fill: Value to return if key does not exist in polygon_data element
    @param polygon_data: Polygon data as read in by parseBasemapShape
    """
    try:
        return polygon_data[int(row['ShapeIndex'])]['info'][key]
    except KeyError:
        return fill
