#NEWLINE# def __setstate__( self , state ) : #NEWLINE# #INDENT# ( wkb , srid ) = state #NEWLINE# ptr = wkb_r ( ) . read ( buffer ( wkb ) ) #NEWLINE# if ( not srid ) : #NEWLINE# #INDENT# raise GEOSException ( 'Invalid Geometry loaded from pickled state.' ) #NEWLINE# #UNINDENT# self . ptr = ptr #NEWLINE# self . _post_init ( srid )