Mercurial > hg > nsaunier > traffic-intelligence
annotate .hgignore @ 372:349eb1e09f45
Cleaned the methods/functions indicating if a point is in a polygon
In general, shapely should be used, especially for lots of points:
from shapely.geometry import Polygon, Point
poly = Polygon(array([[0,0],[0,1],[1,1],[1,0]]))
p = Point(0.5,0.5)
poly.contains(p) -> returns True
poly.contains(Point(-1,-1)) -> returns False
You can convert a moving.Point to a shapely point: p = moving.Point(1,2) p.asShapely() returns the equivalent shapely point
If you have several points to test, use moving.pointsInPolygon(points, polygon) where points are moving.Point and polygon is a shapely polygon.
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Tue, 16 Jul 2013 17:00:17 -0400 |
| parents | 9d486af42e49 |
| children | 7d051afcb22d |
| rev | line source |
|---|---|
| 1 | 1 # use glob syntax. |
| 2 syntax: glob | |
| 3 | |
|
3
ace29ecfb846
basic files and directories
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1
diff
changeset
|
4 *.out |
| 1 | 5 *.a |
| 6 *.o | |
| 7 *.pyc | |
|
65
75cf537b8d88
moved and generalized map making functions to the library
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
3
diff
changeset
|
8 *.pyo |
| 1 | 9 *~ |
| 10 *.rej | |
| 11 *.orig | |
| 12 *.bak | |
| 13 *.lock | |
| 14 *.yml | |
| 15 *.zip | |
|
251
4978b5baf8f1
Win32 version for traffic intelligence. Use the README-Win32.txt to know how to
Jeep-Tour@Jeep-Tour-PC
parents:
120
diff
changeset
|
16 *.opensdf |
|
4978b5baf8f1
Win32 version for traffic intelligence. Use the README-Win32.txt to know how to
Jeep-Tour@Jeep-Tour-PC
parents:
120
diff
changeset
|
17 *.sdf |
|
4978b5baf8f1
Win32 version for traffic intelligence. Use the README-Win32.txt to know how to
Jeep-Tour@Jeep-Tour-PC
parents:
120
diff
changeset
|
18 *.suo |
|
4978b5baf8f1
Win32 version for traffic intelligence. Use the README-Win32.txt to know how to
Jeep-Tour@Jeep-Tour-PC
parents:
120
diff
changeset
|
19 *.user |
|
4978b5baf8f1
Win32 version for traffic intelligence. Use the README-Win32.txt to know how to
Jeep-Tour@Jeep-Tour-PC
parents:
120
diff
changeset
|
20 *.filters |
| 1 | 21 .emacs.desktop* |
|
120
46b166523bf8
added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
65
diff
changeset
|
22 |
|
46b166523bf8
added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
65
diff
changeset
|
23 CMakeCache.txt |
|
46b166523bf8
added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
65
diff
changeset
|
24 *.cmake |
|
361
9d486af42e49
added files to ignore given the CMakeLists.txt
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
252
diff
changeset
|
25 Makefile |
|
9d486af42e49
added files to ignore given the CMakeLists.txt
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
252
diff
changeset
|
26 install_manifest.txt |
|
120
46b166523bf8
added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
65
diff
changeset
|
27 |
| 1 | 28 latex |
| 29 html | |
| 30 bin | |
|
120
46b166523bf8
added CMakeLists.txt for feature-based-tracking
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
65
diff
changeset
|
31 build |
|
251
4978b5baf8f1
Win32 version for traffic intelligence. Use the README-Win32.txt to know how to
Jeep-Tour@Jeep-Tour-PC
parents:
120
diff
changeset
|
32 CMakeFiles |
| 252 | 33 ipch |
| 34 win32-depends/opencv/ | |
| 35 win32-depends/boost/ | |
| 36 win32-depends/klt | |
| 37 win32-depends/sqlite |
