32650 Commits

Author SHA1 Message Date
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
Blottiere Paul
842be91e61 remove spin box background color 2016-05-18 02:01:28 +02:00
Blottiere Paul
eb9ab8a4d9 add unit test for extent 2016-05-18 01:55:44 +02:00
Nathan
0ff10aeb0e [styledock] more widget changes 2016-05-18 09:50:49 +10:00
Nyall Dawson
e92dc26c68 Followup feeeaf0, add unit tests 2016-05-18 09:33:17 +10:00
Martin Dobias
feeeaf0e53 [FEATURE] Extend linestring geometries with reshape tool
If the reshape line starts or ends at a linestring geometry's
endpoint, such geometry will be extended (previously no action
would be done).
2016-05-18 09:23:30 +10:00
Nyall Dawson
b23bae74b2 Fix warning 2016-05-18 08:50:38 +10:00
Juergen E. Fischer
04176350ec fix about box (followup 0b940cac, fixes #14832) 2016-05-17 22:03:30 +02:00
Even Rouault
aa66bc6a20 Merge pull request #3076 from rouault/delimitedtext_qt5_fix
Delimited text provider: fix parsing of subset URL parameter with QT 5 and fix tests
2016-05-17 17:00:36 +02:00
Even Rouault
8ee697bf2d Vector layer save as: usability tunings related to attribute selection
- The group is renamed as 'Select fields to export and their export options'
- It has no longer a checkbox. It is just collapsible. So
  QgsVectorLayerSaveAsDialog::attributeSelection() is deprecated and always
  return true.
- For most formats, all attributes are selected by default
- For CSV/XLSX/ODS, if they have edit widgets, the corresponding checkbox in
  "Replace with displayed values" column is also checked by default.
- For DXF, keep existing behaviour: attributes are unchecked and not checkable
- For KML, keep existing behaviour: attributes are unselected by default
2016-05-17 16:57:45 +02:00
arnaud.morvan@camptocamp.com
7847f971d4 Processing - Adapt RefactorFields to work on tables as well as vector layers 2016-05-17 14:16:16 +02:00