#NEWLINE# def simplify( self , max_distance = None ) : #NEWLINE# #INDENT# '\n        Simplify using the Ramer-Douglas-Peucker algorithm: http://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm\n        ' #NEWLINE# if ( not max_distance ) : #NEWLINE# #INDENT# max_distance = 10 #NEWLINE# #UNINDENT# self . points = mod_geo . simplify_polyline ( max_distance . points , max_distance )