I'm wondering if the raycasting is contributing to slow queries, if it's a good idea that where the polygon is convex to compute the largest containing orthogonal polygon inside the polygon (http://cgm.cs.mcgill.ca/~athens/cs507/Projects/2003/DanielSud/) during indexing.
Then when testing a point is within the polygon, you first check the rbush index, then next check a simple point inside the orthogonal polygon, and if that fails then do raycasting.
I haven't tested this so have no idea if it would improve performance, but I might give it a go if I find time, unless someone knows it's a bad idea?
I'm wondering if the raycasting is contributing to slow queries, if it's a good idea that where the polygon is convex to compute the largest containing orthogonal polygon inside the polygon (http://cgm.cs.mcgill.ca/~athens/cs507/Projects/2003/DanielSud/) during indexing.
Then when testing a point is within the polygon, you first check the rbush index, then next check a simple point inside the orthogonal polygon, and if that fails then do raycasting.
I haven't tested this so have no idea if it would improve performance, but I might give it a go if I find time, unless someone knows it's a bad idea?