Mercurial Hosting > traffic-intelligence
changeset 166:4eb13ed73d84
tests on reading and printing trajectories from database
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Thu, 29 Sep 2011 18:49:40 -0400 |
parents | 50964af05a80 |
children | ed2de414e5f6 |
files | c/feature-based-tracking.cpp |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/c/feature-based-tracking.cpp Thu Sep 29 03:12:59 2011 -0400 +++ b/c/feature-based-tracking.cpp Thu Sep 29 18:49:40 2011 -0400 @@ -17,7 +17,6 @@ #include <boost/foreach.hpp> #include <iostream> -//#include <list> #include <vector> using namespace std; @@ -258,8 +257,11 @@ cout << trajectories.size() << endl; success = trajectoryDB->read(trajectories, "positions"); cout << trajectories.size() << endl; - cout << trajectories[0]->size() << endl; - //cout << trajectories[0]->getPoint(0) << endl; + for (int i=0; i<5; ++i) { + stringstream ss; + ss << *trajectories[i]; + cout << ss.str() << endl; + } trajectoryDB->endTransaction(); trajectoryDB->disconnect(); }