#NEWLINE# @ property #NEWLINE# def geojson( self ) : #NEWLINE# #INDENT# if ( not self . has_serialized_geom ) : #NEWLINE# #INDENT# return self . _dumps ( ) #NEWLINE# #UNINDENT# features = ',' . join ( map ( str , self [ 'features' ] ) ) #NEWLINE# keys = ( self . viewkeys ( ) - { 'features' } ) #NEWLINE# collection = ( '%s, "features": [' % json . dumps ( { k : self [ keys ] for k in keys } , cls = JSONEncoder ) [ : ( - 1 ) ] ) #NEWLINE# return '' . join ( [ collection , features , ']}' ] )