#NEWLINE# def geometry( self , geometry ) : #NEWLINE# #INDENT# if ( not ( ( geometry != None ) and ( geometry [ 'type' ] in GEOMETRY_TYPES ) ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self [ 'type' ] == 'LineString' ) : #NEWLINE# #INDENT# return self . LineString ( geometry ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( geometry [ 'type' ] == 'MultiLineString' ) : #NEWLINE# #INDENT# return self . MultiLineString ( geometry ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( geometry [ 'type' ] == 'MultiPoint' ) : #NEWLINE# #INDENT# return self . MultiPoint ( geometry ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( geometry [ 'type' ] == 'MultiPolygon' ) : #NEWLINE# #INDENT# return self . MultiPolygon ( geometry ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( geometry [ 'type' ] == 'Point' ) : #NEWLINE# #INDENT# return self . Point ( geometry ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( geometry [ 'type' ] == 'Polygon' ) : #NEWLINE# #INDENT# return self . Polygon ( geometry ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( geometry [ 'type' ] == 'GeometryCollection' ) : #NEWLINE# #INDENT# return self . GeometryCollection ( geometry )