[GRASS-SVN] r64257 - grass-addons/grass7/vector/v.isochrones

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 20 09:54:03 PST 2015


Author: mlennert
Date: 2015-01-20 09:54:03 -0800 (Tue, 20 Jan 2015)
New Revision: 64257

Modified:
   grass-addons/grass7/vector/v.isochrones/v.isochrones.py
Log:
avoid too long column names for dbf driver



Modified: grass-addons/grass7/vector/v.isochrones/v.isochrones.py
===================================================================
--- grass-addons/grass7/vector/v.isochrones/v.isochrones.py	2015-01-20 15:14:50 UTC (rev 64256)
+++ grass-addons/grass7/vector/v.isochrones/v.isochrones.py	2015-01-20 17:54:03 UTC (rev 64257)
@@ -130,7 +130,7 @@
     resolution = math.sqrt(float(region['nsres']) * float(region['ewres']))
 
     # add cost column to road vector
-    cost_column = 'temp_cost_%d' % os.getpid()
+    cost_column = 'temp%d' % os.getpid()
     def_cost_column = cost_column + ' DOUBLE PRECISION'
     grass.run_command('v.db.addcolumn',
                       map=roads,



More information about the grass-commit mailing list