Closed thekingofkings closed 7 years ago
Point
MultiPolygon
Mapping 828,677 trips into 77 regions takes 51 seconds.
Currently solution iterates through all Polygons for each Point. This O(nk) solution is too slow.
Polygons
O(nk)
Use some spatial index tree to improve.
Possible solution STRtree.
STRtree
Polygon and Point are wrapped into a Envelope and inserted into the tree.
Polygon
Envelope
Processing 1,199,056 trips takes 80 seconds.
This is addressed by Java Serialize and Deserialize methods
Serialize
Deserialize
Mapping a sequences of
Point
into nMultiPolygon
takes a long timeMapping 828,677 trips into 77 regions takes 51 seconds.
Currently solution iterates through all
Polygons
for eachPoint
. ThisO(nk)
solution is too slow.Use some spatial index tree to improve.