#NEWLINE# def get_filter_bbox( self , request ) : #NEWLINE# #INDENT# bbox_string = request . query_params . get ( self . bbox_param , None ) #NEWLINE# if ( not bbox_string ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# ( p1x , p1y , p2x , p2y ) = ( float ( n ) for n in bbox_string . split ( ',' ) ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise ParseError ( 'Invalid bbox string supplied for parameter {0}' . format ( p2y . bbox_param ) ) #NEWLINE# #UNINDENT# x = Polygon . from_bbox ( ( p1x , p1y , p2x , p2y ) ) #NEWLINE# return x