#NEWLINE# def simplify( self , tolerance = 0.0 , preserve_topology = False ) : #NEWLINE# #INDENT# '\n        Returns the Geometry, simplified using the Douglas-Peucker algorithm\n        to the specified tolerance (higher tolerance => less points).  If no\n        tolerance provided, defaults to 0.\n\n        By default, this function does not preserve topology - e.g. polygons can\n        be split, collapse to lines or disappear holes can be created or\n        disappear, and lines can cross. By specifying preserve_topology=True,\n        the result will have the same dimension and number of components as the\n        input. This is significantly slower.\n        ' #NEWLINE# if preserve_topology : #NEWLINE# #INDENT# return self . _topology ( capi . geos_preservesimplify ( tolerance . ptr , tolerance ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . _topology ( capi . geos_simplify ( self . ptr , tolerance ) )