def constrain(value, lowest, highest):
    return min(highest, max(value, lowest))
Returns the value of the maximum X coordinate.
dataset/ETHPy150Open lsaffre/lino/lino/utils/ranges.py/constrain--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/gis/gdal/envelope.py/Envelope.max_x