-
Notifications
You must be signed in to change notification settings - Fork 826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PostGIS Plugin: Expose BBOX substitution to enable override of auto-appended BBOX #415
Comments
[springmeyer] HUGE thanks to migurski for figuring this one out. The goal would be to have a query like this: {{{ be turned into: {{{ rather than being limited to using: {{{ which by default gets turned into: {{{ and in this case tries to collect all geometries in the table before performing the bbox query. |
[springmeyer] Usage could be either: {{{ ...or... [..snip..] where ST_Intersects(geometry,!bbox!) The token is case insensitive, so either !BBOX! or !bbox! would work. |
[springmeyer] note: quick testing reveals that the |
[springmeyer] added in r1290 |
[springmeyer] This substitution needs to happen in other parts of the code otherwise queries will fail... reopening. |
[springmeyer] r1292 improving the previous commit by handling the possibility of a bbox token in other parts of postgis.cpp |
[springmeyer] re-opening to give thought to also passing the current map !scale! as a token. |
[springmeyer] ah nevermind about the !scale!, will look into it for 0.7.0 in #465 |
This is needed for complex sub-queries to achieve the optimal query plan - where tacking the '&& BBOX' at the end would not correctly limit the geometries.
The text was updated successfully, but these errors were encountered: