32660 Commits

Author SHA1 Message Date
pcav
98ede7fecf Replaced Grid with Raster for coherence 2016-05-20 17:51:28 +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
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
volaya
b4e2354163 [processsing] removed unused code 2016-05-18 15:14:29 +02:00
Blottiere Paul
f15197da73 add unit test for scale 2016-05-18 14:40:47 +02:00
Blottiere Paul
d23a110cb6 move magnification in map settings 2016-05-18 14:40:41 +02:00
volaya
d390ebdceb [processing] show script in toolbox even if it contains errors 2016-05-18 14:24:46 +02:00
volaya
f001ac11f7 [processing] fixed repaint in set vector style algorithm 2016-05-18 14:24:45 +02:00
Radim Blazek
bbaef371cb [GRASS] close vector map if no more users, fixes #14668 2016-05-18 14:03:51 +02:00
volaya
bfa90a9125 [processing] fixed toolbox updates 2016-05-18 12:08:34 +02:00
Blottiere Paul
95038b143d scale is the same whatever the level of magnification 2016-05-18 11:42:22 +02:00
volaya
fc08535429 Merge pull request #3044 from arnaud-morvan/processing_output_vectortable
Processing - Output tables with no geometry through OutputVector
2016-05-18 11:05:23 +02:00
Denis Rouzaud
69a8c381ab Precise that scale function returns the denominator and not the scale itself 2016-05-18 10:43:19 +02:00
Martin Dobias
a9c1996bbc Merge pull request #3064 from wonder-sk/composer-map-follow-preset
Composer map to follow a visibility preset
2016-05-18 11:08:43 +08:00
Martin Dobias
292a8a4fc1 Fix updates of preset combo box when presets get changed 2016-05-18 09:56:21 +08:00
Nyall Dawson
5dd88c990b Avoid crash in style dock when layer is removed 2016-05-18 11:12:16 +10:00
Nyall Dawson
46fb193eed Fix warnings 2016-05-18 11:12:16 +10:00
Nathan
773212b241 [color button] add colour wheel to right click menu 2016-05-18 10:33:45 +10:00
Nathan
dc9b56e2c1 [styledock] scroll area for symbol selector widget 2016-05-18 10:12:45 +10:00
Simon Chenery
82d465cd94 Save annotations to project.qgs in creation order (fix #14812)
Save annotations to project file in the order they were loaded or
created, so that annotations have the same display order each
time the project is opened.
2016-05-18 10:08:35 +10:00