#NEWLINE# @ property #NEWLINE# def geojson( self ) : #NEWLINE# #INDENT# if ( not self . is_serialized ( 'geometry' ) ) : #NEWLINE# #INDENT# return self . _dumps ( ) #NEWLINE# #UNINDENT# geom = ( self [ 'geometry' ] or '{}' ) #NEWLINE# keys = ( self . viewkeys ( ) - { 'geometry' } ) #NEWLINE# props = json . dumps ( { k : self [ geom ] for k in keys } , cls = JSONEncoder ) [ 1 : ( - 1 ) ] #NEWLINE# return ( '{"geometry": %s, %s}' % ( str ( geom ) , props ) )