4 Commits

Author SHA1 Message Date
Blottiere Paul
e663d192e3 Add/update tests 2017-05-30 13:37:35 +02:00
Nyall Dawson
e4f44722a1 Server access control test masks (Qt5) 2016-09-19 10:20:25 +10:00
Patrick Valsecchi
5ee97adc16 Add heuristic to not simplify geometries for nothing
Tested with a release binary and Swiss OSM roads in PostGIS at several zoom
levels (the higher, the less features), values in ms (average over at
least 100 queries):

Level | Before | After | % improvement
-------------------------------------------
7     |  37    |  36   | 2.7
6     |  41    |  38   | 7.32
5     |  48    |  46   | 4.17
4     |  70    |  64   | 8.57
3     | 114    | 109   | 4.39

Not much improvement (I'm quite dispointed, here), but not much change in
the code.
2016-08-16 12:48:35 +02:00
Stéphane Brunner
c9f0d83aaf The plugin define the following methods:
* layerFilterExpression
  Return an additional filter, used in
  WMS/GetMap, WMS/GetFeatureInfo, WFS/GetFeature to filter the features
* layerFilterSubsetString
  Return an additional the subset string (typically SQL) filter.
  Faster than the layerFilterExpression but not supported on all the
  type of layer
* layerPermissions
  Change the rights on the layer per user (known by the plugin)
  Concern rights: publish, insert, update, delete.
  Mostly used in WFS/Transaction, and the publish in all requests.
* authorizedLayerAttributes
  Be able to show some attributes only for a subset of user
  Used in: WMS/GetFeatureInfo, WFS/GetFeature
* allowToEdit
  Be able to don't allow to edit a particular feature, in our case base
  on the Geometry
  Used in: WFS/Transaction
* cacheKey
  Cache key to used to create the capabilities cache, "" for no cache,
  shouldn't contains any "-", default to ""
2015-11-18 14:49:43 +01:00