#NEWLINE# def scale( self , x , y , z = 0.0 , **kwargs ) : #NEWLINE# #INDENT# '\n        Scales the geometry to a new size by multiplying the ordinates\n        with the given x,y,z scale factors.\n        ' #NEWLINE# if SpatialBackend . spatialite : #NEWLINE# #INDENT# if ( z != 0.0 ) : #NEWLINE# #INDENT# raise NotImplementedError ( 'SpatiaLite does not support 3D scaling.' ) #NEWLINE# #UNINDENT# s = { #NEWLINE# #INDENT# 'procedure_fmt' : '%(geo_col)s,%(x)s,%(y)s' , #NEWLINE# 'procedure_args' : { #NEWLINE# #INDENT# 'x' : x , #NEWLINE# 'y' : y , #NEWLINE# #UNINDENT# } , #NEWLINE# 'select_field' : GeomField ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# s = { #NEWLINE# #INDENT# 'procedure_fmt' : '%(geo_col)s,%(x)s,%(y)s,%(z)s' , #NEWLINE# 'procedure_args' : { #NEWLINE# #INDENT# 'x' : x , #NEWLINE# 'y' : y , #NEWLINE# 'z' : z , #NEWLINE# #UNINDENT# } , #NEWLINE# 'select_field' : GeomField ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# return self . _spatial_attribute ( 'scale' , s , ** kwargs )