#NEWLINE# def svg( self , relative = False , precision = 8 , **kwargs ) : #NEWLINE# #INDENT# '\n        Returns SVG representation of the geographic field in a `svg`\n        attribute on each element of this GeoQuerySet.\n\n        Keyword Arguments:\n         `relative`  => If set to True, this will evaluate the path in\n                        terms of relative moves (rather than absolute).\n\n         `precision` => May be used to set the maximum number of decimal\n                        digits used in output (defaults to 8).        \n        ' #NEWLINE# relative = int ( bool ( relative ) ) #NEWLINE# if ( not isinstance ( precision , ( int , long ) ) ) : #NEWLINE# #INDENT# raise TypeError ( 'SVG precision keyword argument must be an integer.' ) #NEWLINE# #UNINDENT# s = { #NEWLINE# #INDENT# 'desc' : 'SVG' , #NEWLINE# 'procedure_fmt' : '%(geo_col)s,%(rel)s,%(precision)s' , #NEWLINE# 'procedure_args' : { #NEWLINE# #INDENT# 'rel' : relative , #NEWLINE# 'precision' : precision , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# return self . _spatial_attribute ( 'svg' , s , ** kwargs )