Mercurial Hosting > traffic-intelligence
diff python/moving.py @ 19:5a21d2cfee44
added polygon plotting
author | Nicolas Saunier <nico@confins.net> |
---|---|
date | Fri, 27 Nov 2009 19:16:12 -0500 |
parents | 9d6831cfe675 |
children | 3c4629550f5f |
line wrap: on
line diff
--- a/python/moving.py Fri Nov 27 00:21:18 2009 -0500 +++ b/python/moving.py Fri Nov 27 19:16:12 2009 -0500 @@ -121,6 +121,11 @@ # return sqrt(sq) return [hypot(x,y) for x,y in zip(self.positions[0], self.positions[1])] + def getTrajectoryInPolygon(self, polygon): + 'Returns the set of points inside the polygon' + # use shapely polygon contains + pass + class MovingObject(STObject): '''Class for moving objects i.e. with a trajectory and a geometry (volume)