Show
Ignore:
Timestamp:
07/23/09 21:47:41 (3 years ago)
Author:
elemoine
Message:

Protocol.Map Fish? "bbox" property, r=bbinet (closes #496)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/MapFish/server/python/mapfish/lib/protocol.py

    r2711 r2731  
    8080        epsg = int(request.params['epsg']) 
    8181 
    82     if 'box' in request.params: 
     82    # "box" is an alias to "bbox" 
     83    box = None 
     84    if 'bbox' in request.params: 
     85        box = request.params['bbox'] 
     86    elif 'box' in request.params: 
     87        box = request.params['box'] 
     88 
     89    if box is not None: 
    8390        # box spatial filter 
    8491        filter = Spatial( 
    8592            Spatial.BOX, 
    8693            geom_column, 
    87             box=request.params['box'].split(','), 
     94            box=box.split(','), 
    8895            tolerance=tolerance, 
    8996            epsg=epsg