[QGIS Commit] [qgis/Quantum-GIS] 31cecd: Fix attributetable and vectorlayercache

GitHub noreply at github.com
Fri Apr 19 01:59:29 PDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/qgis/Quantum-GIS
  Commit: 31cecdbc51d090badd22a07a75f36bc274c7ff8e
      https://github.com/qgis/Quantum-GIS/commit/31cecdbc51d090badd22a07a75f36bc274c7ff8e
  Author: Matthias Kuhn <matthias.kuhn at gmx.ch>
  Date:   2013-04-19 (Fri, 19 Apr 2013)

  Changed paths:
    M src/core/qgscacheindex.h
    M src/core/qgscacheindexfeatureid.cpp
    M src/core/qgscacheindexfeatureid.h
    M src/core/qgsfeaturerequest.cpp
    M src/core/qgsfeaturerequest.h
    M src/core/qgsvectorlayercache.cpp
    M src/core/qgsvectorlayercache.h
    M src/gui/attributetable/qgsattributetablemodel.cpp
    M src/gui/attributetable/qgsattributetablemodel.h
    M tests/src/core/testqgsvectorlayercache.cpp

  Log Message:
  -----------
  Fix attributetable and vectorlayercache
* In the attributetable there was a mess with references and pointers, originating from 66fadee8ef.
* QgsVectorLayerCache did sometimes cache features which did not contain all information which needs to be cached and therefore corrupting the cache and leading to incomplete cache hits.
* Add a unit test for the cache problem
* Fix QgsCacheIndexFeatureId
* QgsAbstractCacheIndex::getCacheIterator now produces a QgsFeatureIterator (instead of a list of Feature Ids). This allows to combine a mixed response, partly satisfied by the cache and partly by an additional query to the backend.





More information about the QGIS-commit mailing list