[GRASS-SVN] r67962 - grass/trunk/lib/python/temporal
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Feb 26 06:17:36 PST 2016
Author: lucadelu
Date: 2016-02-26 06:17:36 -0800 (Fri, 26 Feb 2016)
New Revision: 67962
Modified:
grass/trunk/lib/python/temporal/stds_export.py
Log:
temporal export: fixed export of datasets if where option is used
Modified: grass/trunk/lib/python/temporal/stds_export.py
===================================================================
--- grass/trunk/lib/python/temporal/stds_export.py 2016-02-26 13:45:16 UTC (rev 67961)
+++ grass/trunk/lib/python/temporal/stds_export.py 2016-02-26 14:17:36 UTC (rev 67962)
@@ -335,7 +335,9 @@
if sp.is_time_relative():
string += "%s=%s\n" % ("relative_time_unit",
sp.get_relative_time_unit())
- string += "%s=%s\n" % ("number_of_maps", sp.metadata.get_number_of_maps())
+ # replace sp.metadata.get_number_of_maps() with len(rows)
+ # sp.metadata.get_number_of_maps() doesn't work with where option
+ string += "%s=%s\n" % ("number_of_maps", len(rows))
north, south, east, west, top, bottom = sp.get_spatial_extent_as_tuple()
string += "%s=%s\n" % ("north", north)
string += "%s=%s\n" % ("south", south)
More information about the grass-commit
mailing list