#NEWLINE# def getBBOXKVP( self , bbox , typename ) : #NEWLINE# #INDENT# 'Formate bounding box for KVP request type (HTTP GET)\n\n        @param bbox: (minx,miny,maxx,maxy[,srs])\n        @type bbox: List\n        @param typename:  feature name \n        @type typename: String\n        @returns: String properly formated according to version and\n            coordinate reference system\n        ' #NEWLINE# srs = None #NEWLINE# if ( len ( bbox ) == 5 ) : #NEWLINE# #INDENT# srs = self . getSRS ( bbox [ 4 ] , typename [ 0 ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# srs = self . contents [ typename [ 0 ] ] . crsOptions [ 0 ] #NEWLINE# #UNINDENT# if ( srs . version in [ '1.1.0' , '2.0.0' ] ) : #NEWLINE# #INDENT# if ( srs . encoding == 'urn' ) : #NEWLINE# #INDENT# if ( srs . axisorder == 'yx' ) : #NEWLINE# #INDENT# return ( '%s,%s,%s,%s,%s' % ( bbox [ 1 ] , bbox [ 0 ] , bbox [ 3 ] , bbox [ 2 ] , srs . getcodeurn ( ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( '%s,%s,%s,%s,%s' % ( bbox [ 0 ] , bbox [ 1 ] , bbox [ 2 ] , bbox [ 3 ] , srs . getcodeurn ( ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return ( '%s,%s,%s,%s,%s' % ( bbox [ 0 ] , bbox [ 1 ] , bbox [ 2 ] , bbox [ 3 ] , srs . getcode ( ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return ( '%s,%s,%s,%s,%s' % ( bbox [ 0 ] , bbox [ 1 ] , bbox [ 2 ] , bbox [ 3 ] , srs . getcode ( ) ) )