Support invalid keys in GiST index
|Reported by:||pramsey||Owned by:||pramsey|
For various input geometries (ones with NaN coordinates, EMPTY ones) there is no reasonable box2df that can be created to represent it within the index. We need to return a key, or an error, and we can't error particularly on valid things like EMPTY. So we need a key which means "just ignore me". Probably (NaN, Nan, Nan, Nan). Or, really, any box2df with xmin==NaN.
Then 2d ops and 3d ops need to be fixed up to understand it. And probably also Inf geometries need to be either supported (in all their Inf glory) or considered invalid as well.
This is legitimately a bug, though probably an under-exercised one, since people don't use invalid/empty geometries very much. It should be fixed all the way back into the 2.0 branch.