I have a few MULTIPOLYGON geometries that are very complex to work with, and I need to find POINT geometries from a ~40M rows that are inside these MULTIPOLYGON geometries.
Right now I'm working with ST_Within but things are going on extremely slowly.
I don't need all of the POINT geometries, just a few of them, but they all have to be inside of the MULTIPOLYGON (I need a few points per geometry).
I thought that if there was something reverse to an envelope, that is to find the largest box that is within a geometry.
I couldn't find it in the docs or Google or here.
Is it possible to create such a box? If so, how?
I do not want to use simplify since it is:
- Not accurate enough.
- Still slow.