I'm looking for advice (or direction to advice) for the best way to
perform point in polygon searches. My document store holds complex
polygons and the search criteria will be a single geopoint (to return
any polygons it is bounded by). My questions are:
- is there any native geofilter for point in polygon? They all seem
to search stored geopoints on polygon criteria (I want the opposite)
Assuming no, I was planning on returning any polygons that contain
points north + south + east + west of the search geopoint, then doing
a ray-cast in the application to determine results exactly. In this
how much additional performance would storing an additional minimum
bounded box coords (eg just North West, South East) & searching just
that vs search on the entire polygons? Im guessing the MBB would
return more results but be faster?
is there any benefit of storing the polygon coords as geopoint
types if I'm not going to be using the native geo filters?
Thanks in advance.