#NEWLINE# def SensorObservationService( url , version = '1.0.0' , xml = None ) : #NEWLINE# #INDENT# 'sos factory function, returns a version specific SensorObservationService object' #NEWLINE# if ( version in [ '1.0' , '1.0.0' ] ) : #NEWLINE# #INDENT# return sos100 . SensorObservationService_1_0_0 . __new__ ( sos100 . SensorObservationService_1_0_0 , url , version , version ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( version in [ '2.0' , '2.0.0' ] ) : #NEWLINE# #INDENT# return sos200 . SensorObservationService_2_0_0 . __new__ ( sos200 . SensorObservationService_2_0_0 , url , version , xml )