32677 Commits

Author SHA1 Message Date
Nyall Dawson
008310d91d Fix warning 2016-05-23 13:09:36 +10:00
Nyall Dawson
fdb6488b97 [expressions] Support date + time = datetime calculations 2016-05-23 07:45:30 +10:00
Nyall Dawson
4ce16e1e31 Fix distorted date time calendar popup 2016-05-23 07:45:24 +10:00
Matthias Kuhn
b18e33c880 [qt5 tests] Fix blacklist 2016-05-22 23:29:20 +02:00
Juergen E. Fischer
84121f2793 fix postgres provider message 2016-05-22 22:46:27 +02:00
Matthias Kuhn
87ac6eaf7b [qt5 tests] Unblacklist more tests 2016-05-22 22:04:52 +02:00
Bas Couwenberg
e888753577 Only require QTWEBKIT for Qt4 when WITH_QTWEBKIT is true. 2016-05-22 21:52:56 +02:00
Matthias Kuhn
50c7970ed4 Use unittest assertXXX methods 2016-05-22 21:52:55 +02:00
Matthias Kuhn
0e96ef3797 [travis] Fix ccache for Qt4 builds 2016-05-22 21:52:55 +02:00
Matthias Kuhn
bbe9664dba [travis] Run Qt5 tests with osgeo4travis in $PATH
This allows running the gdal processing tests and other subprocesses which have
been manually built like server applications.
2016-05-22 21:52:55 +02:00
Matthias Kuhn
dbb24e971e [processing tests] More tolerance in statistics test 2016-05-22 21:52:55 +02:00
Matthias Kuhn
ced7c27dcf [py3] Use __bool__ instead of __nonzero__ 2016-05-22 21:52:55 +02:00
Matthias Kuhn
7e113840cb [qt5 tests] Unblacklist tests 2016-05-22 21:52:55 +02:00
Matthias Kuhn
7f3526be71 [processing tests] Cleanup layer registry before every new test 2016-05-22 21:52:55 +02:00
Nathan
2aa002d986 Fix crash on style dock apply with no layer 2016-05-22 21:27:37 +10:00
Nathan
3ace8e62fd [Style dock] Add support for raster layers 2016-05-22 20:45:24 +10:00
Matthias Kuhn
13f053b7d5 Merge pull request #3084 from nyalldawson/single_click_ediit
Open editor in attribute table on single click
2016-05-22 09:36:01 +02:00
mhugent
b6923758bc Merge pull request #3087 from arnaud-morvan/maptooladdfeature_avoidintersections_nullgeometry
In tool add feature, reject null geometry due to intersection avoidance
2016-05-20 16:53:27 +02:00
arnaud.morvan@camptocamp.com
17fd3d8cb9 Fix in maptool add feature, reject null geometry due to intersection avoidance 2016-05-20 14:40:43 +02:00
Alessandro Pasotti
ff4532c3ac [server] Fix pep8 build error 2016-05-20 11:37:52 +02:00
Alessandro Pasotti
eef0486cd3 [server] Removed debug print from the test 2016-05-20 09:59:57 +02:00
Alessandro Pasotti
10e8807655 [server] Added regression test for #8656
Ref. commit b956874f02a9379
2016-05-20 09:57:17 +02:00
Juergen E. Fischer
5cfcf8468f translation string fixes 2016-05-20 09:23:57 +02:00
Nyall Dawson
8724feb74e Some symbol layer widget fixes:
- Fix broken shapeburst fill widget
- Tweak stretch behaviour of some widgets
2016-05-20 16:33:52 +10:00
Nyall Dawson
88db4f9ad3 Open editor in attribute table on single click 2016-05-20 13:26:36 +10:00
Nyall Dawson
0fcff9f2a0 Allow direct QVariant creation from some QGIS metatypes 2016-05-20 09:48:18 +10:00
Alessandro Pasotti
b956874f02 [server][bugfix] FILTER GetFeatureInfo working again
Fixes #8656
2016-05-19 22:20:56 +02:00
mhugent
bc1aa42f85 Merge pull request #3081 from mhugent/curve_segmentize_parameters
Curve segmentize parameters
2016-05-19 16:29:05 +02:00
Even Rouault
0078b33ed2 Merge pull request #3082 from rouault/vectorfilewriter_cleanup_and_encoding_improvement
Vectorfilewriter cleanup and encoding improvement
2016-05-19 14:53:38 +02:00
volaya
a19741b297 [processing] log errors in hook scripts 2016-05-19 13:45:18 +02:00
volaya
518f7dcf6b [processing] correctly switch to description tab if help tab exists 2016-05-19 13:45:17 +02:00
Nyall Dawson
6bf4b92cb9 Merge pull request #3080 from nyalldawson/select_tools
[FEATURE] Improved map select tool behaviour
2016-05-19 21:19:59 +10:00
Nyall Dawson
d73210a5f8 Update test mask image 2016-05-19 21:04:50 +10:00
Even Rouault
1ab29771b7 QgsVectorLayerSaveAsDialog: use QgsVectorFileWriter::MetaData::compulsoryEncoding to initialize the encoding combobox 2016-05-19 11:41:50 +02:00
Even Rouault
3ee7d59e18 QgsVectorFileWriter::MetaData: add a compulsoryEncoding member
* Some formats require a compulsory encoding, typically UTF-8.
Change initMetadata() to indicate UTF-8 compulsory encoding for
GeoJSON, GeoRSS, GML, GPKG, GPX, KML, SQLite, SpatiaLite, FileGDB,
XLSX and ODS
* QgsVectorFileWriter::init(): make it override the user specified
encoding if the format has a compulsory encoding. And remove hard-coded
case for KML.
2016-05-19 11:38:42 +02:00
Even Rouault
b1efb9a72c QgsVectorFileWriter::initMetaData(): fix DGN registration
DGN was registered twice, and the second occurence reseted the
creation options
2016-05-19 11:21:34 +02:00
Even Rouault
222fa767c9 QgsVectorFileWriter: remove the deprecated private driverMetadata(driverName, multiple args) method and use the public one instead 2016-05-19 11:20:44 +02:00
Marco Hugentobler
c0d12dcdeb [FEATURE]: possibility to set the segmentation tolerance (maximum angle or maximum difference) 2016-05-19 11:02:43 +02:00
Juergen E. Fischer
3ac9364f35 * debian packaging update
* include qch download link on api index page
2016-05-19 10:18:38 +02:00
Jürgen Fischer
6f07322d9d Merge pull request #3048 from nyalldawson/qt_doxygen
Allow generation of Qt QHP help files from doxygen
2016-05-19 08:37:23 +02:00
Nyall Dawson
cd9f47ae45 [FEATURE] Improved map select tool behaviour
Implements the improved mouse/key modifier behaviour discussed in:
http://osgeo-org.1560.x6.nabble.com/Key-modifiers-with-selection-tc5239653.html

Specifically,

For click-and-drag selections:
- holding shift = add to selection
- holding ctrl = substract from selection
- holding ctrl+shift = intersect with current selection
- holding alt (can be used with shift/ctrl too) = change from
"intersects" to "fully contains" selection mode

For single-click selections:
- holding shift or ctrl = toggle whether feature is selected
(ie either add to current selection or remove from current
selection)

This brings the canvas behaviour into line with other design apps
and also with the composer behaviour.

(fix #2666)
2016-05-19 16:14:28 +10:00
Nyall Dawson
c0799d4764 Fix deprecated warning 2016-05-19 15:11:03 +10:00
Nyall Dawson
9d59f9ce76 Generate QCH compiled help with qgis-api-doc package 2016-05-19 14:52:33 +10:00
Denis Rouzaud
1602c02df7 Merge pull request #3009 from pblottiere/magnifier
[FEATURE] add a map canvas magnifier
2016-05-19 06:30:07 +02:00
Nyall Dawson
45f0cff256 Allow generation of Qt QHP help files from doxygen
This adds a new cmake option GENERATE_QHP. If the api docs are
set to being built (ie doxygen is available and WITH_APIDOC is true)
then setting GENERATE_QHP to true will cause doxygen to create
a compiled Qt help file from the QGIS docs.

This QHP file can then be used by QtCreator to show the QGIS
api directly within the QtCreator help (ie, press F1 on a class
or member to see the docs).

To do this, you need to:
- make sure doxygen is installed, WITH_APIDOC is true and
GENERATE_QHP is true
- build to generate the docs
- In QtCreator, go to Tools -> Options -> Help, switch to the
"Documentation" tab and click "Add". Point it to your generate
QHP file (should be in the build folder doc\api\qch folder)
- Restart QtCreator, wait a bit, and then you should have the
api docs available under the "Help" tab and by pressing F1
on a QGIS class/method
2016-05-19 13:55:11 +10:00
Nyall Dawson
daa23b59fc Merge pull request #3078 from 3nids/scaledenomhelp
Precise that scale function returns the denominator and not the scale itself
2016-05-19 13:46:12 +10:00
Nyall Dawson
23a3a7717e Cleaner API for selecting features in QgsVectorLayer
- add selectByRect( QgsRectangle&, SelectBehaviour) and
selectByIds( QgsFeatureIds, SelectBehaviour) for selecting
by rect and ids respectively, with options to add to selection/
remove from selection/intersect with current selection
- deprecate select( QgsRectangle ) and setSelectedFeatures in
favour of new methods
- add unit tests
2016-05-19 12:30:32 +10:00
Nyall Dawson
1767d3b073 [processing] Use QgsVectorLayer::selectByExpression for select by expression alg 2016-05-19 10:40:18 +10:00
Nyall Dawson
b951d5a54d [FEATURE] new method QgsVectorLayer::selectByExpression(...)
Makes it simple for scripts to select by expression. The method
also accepts a parameter which dictates whether matching features
are added to an existing selection, removed from the selection
or intersected with the current selection.

The existing code from the select by expression dialog has been
moved to QgsVectorLayer, and optimised for maximum possible speed.

Also added unit tests.
2016-05-19 09:11:00 +10:00
Nyall Dawson
7187148afb Set expression context for geometry generator builder (fix #14833) 2016-05-19 08:50:03 +10:00