Ignore:
Timestamp:
13/06/10 20:20:13 (10 years ago)
Author:
astephen
Message:

bbox made to match openlayers in order of directions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows_wps/trunk/cows_wps/process_handler/validate_arguments.py

    r6898 r7001  
    151151    """ 
    152152    Checks bbox is valid floats. 
     153    We use (west, south, east, north) because that is used in OpenLayers 
     154    and we should use only one ordering in the bounds. 
    153155    """ 
    154156    err_msg = "Invalid bounding box supplied: '%s'." % item 
     
    165167    # Must be physically valid 
    166168    phys_err = "Value of '%s' (%s) is out of range in bounding box supplied: '%s'."  
    167     directions = ("north", "west", "south", "east") 
    168     ranges = [(-90, 90), (-360, 360), (-90, 90), (-360, 360)] 
     169    directions = ("west", "south", "east", "north") 
     170    ranges = [(-360, 360), (-90, 90), (-360, 360), (-90, 90)] 
    169171    
    170172    for i in range(4): 
Note: See TracChangeset for help on using the changeset viewer.