[GRASS-SVN] r40291 - grass-addons/vector/v.in.mbsys_fnv

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 6 12:50:52 EST 2010


Author: hamish
Date: 2010-01-06 12:50:50 -0500 (Wed, 06 Jan 2010)
New Revision: 40291

Modified:
   grass-addons/vector/v.in.mbsys_fnv/v.in.mbsys_fnv
Log:
write bbox to db table

Modified: grass-addons/vector/v.in.mbsys_fnv/v.in.mbsys_fnv
===================================================================
--- grass-addons/vector/v.in.mbsys_fnv/v.in.mbsys_fnv	2010-01-06 14:34:49 UTC (rev 40290)
+++ grass-addons/vector/v.in.mbsys_fnv/v.in.mbsys_fnv	2010-01-06 17:50:50 UTC (rev 40291)
@@ -254,6 +254,15 @@
 	  ($GIS_OPT_CAT, '`basename $GIS_OPT_INPUT`', '$START_TIME', \
 	   '$END_TIME', $START_LAT, $START_LON, $END_LAT, $END_LON)" \
 	   | db.execute
+
+	# add bounding box
+	v.db.addcol map="$GIS_OPT_OUTPUT" columns="\
+	   bbox_north DOUBLE PRECISION, bbox_south DOUBLE PRECISION, \
+	   bbox_east DOUBLE PRECISION, bbox_west DOUBLE PRECISION"
+	eval `v.info -g "$GIS_OPT_OUTPUT"`
+	echo "UPDATE $GIS_OPT_OUTPUT SET \
+	   bbox_north = $north, bbox_south = $south, \
+	   bbox_east = $east, bbox_west = $west" | db.execute
 	;;
 esac
 case "$GIS_OPT_TYPE" in



More information about the grass-commit mailing list