-
Notifications
You must be signed in to change notification settings - Fork 416
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
Sync map with Filter sometimes disables the layer #2210
Comments
Just one note, using strToLowerCase ensures that the filter will be run in memory instead of making it hit an eventual database (it is not translated to SQL, there is no support for it in common JDBC data stores, and experimental support in postgis, but it has to be enabled in the store configuration). This might merit some discussion with Simone too. |
Actually, that part of the filter at least... the filter is split into a form like "SUPPORTED and UNSUPPORTED", the supported part is sent to the database, the unsupported one is run in memory. So if you have say a bbox anded it will still hit the db, along with "ID='1'" |
The problem is related to the fact that the crs used for CQL_FITLER must be the native one for that layer. @offtherailz what do you think about this solution? |
There were other problems related on how the cql_filter was built in ol |
i've been able to replicate the issue related to the use of ID attribute in the cql filter.
another one is
is the ID attribute a reserved key ? |
Sometimes CQL_FILTER generated are not valid. So, when the sync map and table is active, sometimes the invalid request makes the layer disable.
Example wrong filters:
empty:
sometimes with filter = 0.
This(don't know what is wrong in this filter, single conditions work, together with AND generate error):
The text was updated successfully, but these errors were encountered: