29688 Commits

Author SHA1 Message Date
mhugent
422abbde5e Merge pull request #2056 from sbrunner/qgis-server-security
[Feature] Add an interface in QGIS Server for access control plugins
2015-11-19 10:23:04 +01:00
Nyall Dawson
8c0fe47d8e Add tests for QgsPointV2, fix some issues:
- prevent creation of a QgsPointV2 with a non-point WKB type
- fix bounding box was not invalidated for some modification routines
- if WKT type is PointZ/M/ZM and not enough coordinates specified,
initialise extra coordinates to 0
2015-11-19 19:48:42 +11:00
Nyall Dawson
e1c3b4df3a Fix incorrect point types when segmentizing circular strings 2015-11-19 19:48:42 +11:00
Denis Rouzaud
df8584a71c [qt5] fix custom widgets 2015-11-19 09:11:01 +01:00
Matthias Kuhn
b1eb812792 Do not require manual CMakeCache intervention 2015-11-19 08:35:13 +01:00
Jürgen Fischer
8e5ba3bf92 Merge pull request #2458 from SebDieBln/Postgres_GeomTypeDirect
[postgresprovider] Determine geometry type and srid directly from column type
2015-11-18 22:46:09 +01:00
Juergen E. Fischer
f6e4e75cd6 [FEATURE]postgres provider: add support for timestamp types 2015-11-18 19:23:03 +01:00
Matthias Kuhn
7b0815b682 Fix python errors 2015-11-18 19:21:12 +01:00
Sebastian Dietrich
5399855566 restore original subset string on dialog cancel (fix #13620) 2015-11-18 18:00:57 +01: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
alexbruy
f7bdd66c43 Merge pull request #2481 from nyalldawson/processing
Processing enhancements and fixes
2015-11-18 15:09:22 +02:00
Stéphane Brunner
b1743dc8a8 Make log messages visible in the QGIS server log file 2015-11-18 13:29:34 +01:00
Nyall Dawson
e0bedc2b17 Drop SIP/documentation test thresholds 2015-11-18 23:05:36 +11:00
Nyall Dawson
5019fe244c Add methods to directly retrieve/set coordinates for linestring nodes
Also add method to create QgsPointV2 from a QPointF
2015-11-18 21:49:02 +11:00
Matthias Kuhn
0b0c413f3a Add Saga 2.2.2 descriptions 2015-11-18 08:14:42 +01:00
Matthias Kuhn
146b15a1f8 Merge pull request #2460 from nyalldawson/ogr_compiler
[FEATURE] Compiler for OGR and Spatialite expressions
2015-11-18 07:51:43 +01:00
Nyall Dawson
d0625b8b35 [processing] Add algorithm for reversing line directions 2015-11-18 16:27:25 +11:00
Nyall Dawson
9009ef0b26 [processing] Add smooth algorithm
Allows for smoothing line or polygon layers
2015-11-18 16:27:14 +11:00
Nyall Dawson
53aa583da0 [processing] Use QgsDoubleSpinBox instead of QSpinBox
Allows for simple calculations in spin box, adds a reset control
to reset widget to default value
2015-11-18 16:27:04 +11:00
Nyall Dawson
86231d79fa [processing] Guess sensible step sizes for float spin boxes 2015-11-18 16:26:55 +11:00
Nyall Dawson
ffd9707516 [processing] Fix maximum/minimum not respected for float spinboxes 2015-11-18 16:26:48 +11:00
Nyall Dawson
86c1ffa0aa Add reversed method to QgsCurveV2
Also clean up and add missing docs for QgsLineStringV2
2015-11-18 16:24:27 +11:00
Nyall Dawson
8783fe2763 Don't store QgsLineStringV2 coordinates in QPolygonF
This stores coordinates as qreal, which on some platforms is float,
and not suitable for accurate geometry storage.
2015-11-18 16:24:17 +11:00
Nyall Dawson
9cfbba1647 Add rx(), ry(), ... methods to QgsPointV2, add missing docs to class
Allows for directly modifying point's coordinates in place
2015-11-18 16:24:08 +11:00
Nyall Dawson
2623abc71c Fix detection of python related notes in Sip coverage test
In certain cases test was not correctly detecting "not available in
Python bindings" notes
2015-11-18 16:23:59 +11:00
Nyall Dawson
26b3685757 Bracket ops to avoid precedence issues when compiling expressions 2015-11-18 15:59:38 +11:00
Nyall Dawson
91571736a8 Make expression compilation optional, but enabled by default
Remove the previous postgres specific option and replace with an
enabled-by-default option which applies to all expression
compilation.
2015-11-18 15:16:38 +11:00
Nyall Dawson
982490f636 Add some more expression compilation tests, fix <> string for OGR 2015-11-18 14:31:36 +11:00
Nyall Dawson
35d0dd3211 [FEATURE] Expression compiler for SpatiaLite provider 2015-11-18 14:02:19 +11:00
Nyall Dawson
5f65f872dd Create QgsSqlExpressionCompiler as base class for expression compilers
Switch Postgres and OGR compilers to use the new base class. New class
should make it easier to add additional expression compilers (eg
spatialite, MS SQL, etc)
2015-11-18 14:02:18 +11:00
Jürgen Fischer
57f5fba582 Merge pull request #2478 from SebDieBln/DbManager_Fix13731
[DbManager] replaced 'LIMIT 0' by 'WHERE 0=1' (fixes #13731)
2015-11-17 23:08:19 +01:00
Sebastian Dietrich
e04d5e4d70 replaced 'LIMIT 0' by 'WHERE 0=1' (fixes #13731) 2015-11-17 21:29:19 +01:00
Nyall Dawson
dc0639c794 Add missing /Transfer/s to setSubSymbol 2015-11-18 06:46:30 +11:00
Nyall Dawson
f7ed42b933 Disable OGR expression compilation for certain OGR drivers
In some cases OGR forwards filters on to the underlying data source,
and the syntax may differ from OGR SQL. In these cases disable
expression compilation.
2015-11-18 06:30:42 +11:00
Nyall Dawson
3d947e82aa Add provider expression filter tests for TVL 2015-11-18 06:30:42 +11:00
Nyall Dawson
26f7683cf5 OGR expression compiler fixes
- Allow simple operators as supported by OGR (+, -, * )
- Only return a partial compilation success if expression contains
"column"="column2". Since OGR SQL performs case insensitive
comparisons, we need to double check the result using QGIS'
expressions to ensure that case matches. Add unit tests for this
to provider tests.
2015-11-18 06:30:42 +11:00
Nyall Dawson
d19adfe851 [FEATURE] Compiler for OGR expressions
Allows much faster retrieval of features when a FilterExpression
feature request is used.

OGR SQL supports only basic expressions, so this is really only
enabled for "attribute"='value' type expressions.
2015-11-18 06:30:41 +11:00
alexbruy
f184ec9794 Merge pull request #2471 from nyalldawson/processing_fixes
[processing] misc improvements
 - use QgsStatisticalSummary for statistic calculations
 -  faster expression request for ExtractByAttribute alg
2015-11-17 18:54:55 +02:00
alexbruy
fd50136e87 Merge pull request #2456 from NaturalGIS/fix_saga_222_kriging
[processing] fix SAGA 2.2.2 kriging tools
2015-11-17 18:51:54 +02:00
Werner Macho
79616fd8d8 Add Report a Bug to the Help menu to assist in creating bug reports
Signed-off-by: Werner Macho <werner.macho@gmail.com>
2015-11-17 15:48:29 +01:00
Matthias Kuhn
eeef84b1f7 Revert "Deduplicated FindPyQt(4|5).py"
This reverts commit 842c17c10b2112b0d92ab287d76e374900736065 which was
responsible for test timeouts for dubious reasons.
2015-11-17 13:57:11 +01:00
Matthias Kuhn
ac44a307c7 Fix PyQt compat lib INSTALL path 2015-11-17 09:20:18 +01:00
Juergen E. Fischer
1675703ddb qt5 fixes 2015-11-17 01:00:08 +01:00
Juergen E. Fischer
a6a29825b6 [auth] fix build on mac (fixes 08ec25b) 2015-11-16 18:10:14 +01:00
Juergen E. Fischer
b7fea5726a fix python error on startup on windows 2015-11-16 18:06:44 +01:00
Juergen E. Fischer
51295273ff fix pyrcc4 detection on windows (followup 0b6dd352) 2015-11-16 17:16:46 +01:00
Juergen E. Fischer
08ec25bedd [auth] fix detection of root CAs on Linux (fixes #13640) 2015-11-16 17:16:02 +01:00
volaya
5e7291e97e [processing] removed unimplemented lidar algorithm 2015-11-16 13:53:37 +01:00
volaya
96040ab822 Merge pull request #2462 from spono/patch-6
[processing] add new tools to lidar provider
2015-11-16 09:25:23 +01:00
Matthias Kuhn
56b8ce0f89 Merge pull request #2455 from sbrunner/refersh-attribut-table
Add "force reload" button to attribute table
2015-11-16 09:22:36 +01:00