[mapserver-commits] [mapserver/mapserver] 22dc08: OGR Spatialite: avoid useless CAST() in filter, an...
GitHub
noreply at github.com
Thu Dec 1 08:45:32 PST 2016
Branch: refs/heads/branch-7-0
Home: https://github.com/mapserver/mapserver
Commit: 22dc081f1060ca40e0b209e7bb3e9aa0ca8b5ac3
https://github.com/mapserver/mapserver/commit/22dc081f1060ca40e0b209e7bb3e9aa0ca8b5ac3
Author: Even Rouault <even.rouault at spatialys.com>
Date: 2016-12-01 (Thu, 01 Dec 2016)
Changed paths:
M mapogr.cpp
M msautotest/wxs/data/db.sqlite
A msautotest/wxs/expected/wfs_combined_filter.xml
A msautotest/wxs/expected/wfs_ogr_native_sql_01_spatial_index_disabled.xml
M msautotest/wxs/expected/wfs_ogr_native_sql_37.xml
A msautotest/wxs/expected/wfs_ogr_native_sql_41.xml
A msautotest/wxs/wfs_combined_filter.map
M msautotest/wxs/wfs_ogr_native_sql.map
Log Message:
-----------
OGR Spatialite: avoid useless CAST() in filter, and use join for spatial filtering.
SQLite cannot use attribute indexes if the WHERE clause use CAST(foo AS text) instead
of foo.
Rework the way spatial filtering is done to do a JOIN on the idx_table_geometry virtual
table instead of using the SpatialIndex virtual table. This will help the query planner
to use an attribute filter first when this is more relevant.
CREDITS: Funded by:
Regione Toscana - Settore Sistema Informativo Territoriale ed
Ambientale (CIG: 644544015A)
More information about the mapserver-commits
mailing list