Ignore:
Timestamp:
08/08/07 13:21:57 (12 years ago)
Author:
lawrence
Message:

A temporary fix (I think) for ticket:841.
Some more improvements with security (still turned off though)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/discovery.py

    r2773 r2785  
    7878             
    7979            # ------------- Handle Location Bounding -------- 
    80             # default form has a global bounding box 
     80            # default form has a global bounding box, NB, internal to this routine we use bbox=[N,W,E,S], not [W,S,E,N]! 
    8181            bbox=[self.inputs['bboxN'],self.inputs['bboxW'],self.inputs['bboxE'],self.inputs['bboxS']] 
    8282             
     
    230230         
    231231    def __checkbox(self,bbox): 
    232         if float(bbox[0])>90.0 or float(bbox[1])<-90. or float(bbox[2])<-180. or float(bbox[3])>180.: 
    233             self.message='Invalid bounding box dimensions entered (limits 90,-90,-180,180)' 
     232        m='Invalid bounding box dimensions entered - limits are ' 
     233        if float(bbox[0])>90.0 or float(bbox[3])<-90.: 
     234            self.message=m+'+90 (N), -90 (S)!' 
     235        if float(bbox[1])<-180. or float(bbox[2])>180.: 
     236            if self.message=='':self.message=m 
     237            self.message=self.message[:-1]+' -180 (W), 180 (E)!' 
    234238             
    235239    def __checkform(self,expected): 
Note: See TracChangeset for help on using the changeset viewer.