Mercurial > hg > nsaunier > traffic-intelligence
comparison python/storage.py @ 259:8ab76b95ee72
added code to save collision points and crossing zones in txt files
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Tue, 24 Jul 2012 15:18:12 -0400 |
| parents | 583a2c4622f9 |
| children | c71540470057 |
comparison
equal
deleted
inserted
replaced
| 258:d90be3c02267 | 259:8ab76b95ee72 |
|---|---|
| 9 | 9 |
| 10 | 10 |
| 11 ngsimUserTypes = {'twowheels':1, | 11 ngsimUserTypes = {'twowheels':1, |
| 12 'car':2, | 12 'car':2, |
| 13 'truck':3} | 13 'truck':3} |
| 14 | |
| 15 ######################### | |
| 16 # txt files | |
| 17 ######################### | |
| 18 | |
| 19 | |
| 20 | |
| 21 ######################### | |
| 22 # Sqlite | |
| 23 ######################### | |
| 14 | 24 |
| 15 def writeTrajectoriesToSqlite(objects, outFile, trajectoryType, objectNumbers = -1): | 25 def writeTrajectoriesToSqlite(objects, outFile, trajectoryType, objectNumbers = -1): |
| 16 """ | 26 """ |
| 17 This function writers trajectories to a specified sqlite file | 27 This function writers trajectories to a specified sqlite file |
| 18 @param[in] objects -> a list of trajectories | 28 @param[in] objects -> a list of trajectories |
