30531 Commits

Author SHA1 Message Date
Nyall Dawson
884c3ba8dd Use constGeometry to avoid some QgsFeature detachments 2016-01-14 09:58:23 +11:00
Nyall Dawson
31d981c49c Merge pull request #2670 from pvalsecc/xlsx_ods
Add saveAs XLSX and ODS
2016-01-14 09:39:20 +11:00
Nyall Dawson
184db1aa28 Indentation fix 2016-01-14 08:57:04 +11:00
Alexander Bruy
3d44e1f545 [fTools] enable OK button when error occurs (fix #13104) 2016-01-13 19:26:39 +02:00
Alexander Bruy
14c858a0b1 [processing] fix crash in ConcaveHull alg when using it from console (fix #12229) 2016-01-13 16:40:14 +02:00
Matthias Kuhn
ee093b211d Name for default MapCanvas ExpressionContextScope 2016-01-13 13:58:53 +01:00
Matthias Kuhn
e48d8b0e15 Doxymentation fix 2016-01-13 13:58:53 +01:00
Matthias Kuhn
33a2807bb9 Remove unrequired checks in geometry 2016-01-13 13:58:53 +01:00
Matthias Kuhn
e7b9a314f7 Add rendering extent information to expression context 2016-01-13 13:58:53 +01:00
Alexander Bruy
9551ca7ca8 Merge pull request #2628 from medspx/work_vnet_processing
[Feature][Processing] GRASS v.net modules
2016-01-13 14:49:53 +02:00
Martin Dobias
ea92e110ff [tracer] Renaming to camelCase, no actual code changes 2016-01-13 13:16:07 +01:00
Martin Dobias
b83f6e359a Merge pull request #2665 from wonder-sk/auto-trace
[FEATURE] Tracing of features (digitizing)

Tracing can be now used in various capturing map tools (add feature, add part, ...) including reshape and split tools.

Tracing is simply a new mode for these tools - when tracing is not enabled, the tools work as usual. When tracing is enabled (by clicking the new magnet icon or pressing T key), tools switch to tracing behavior:
- first click on a vertex/edge (must be snapped!) will start tracing - moving mouse on top of the map continuously updates the trace
- next click will confirm the trace and mark start of a new trace Tracing can be enabled/disabled anytime even while digitizing one feature, so it is possible to digitize some parts of the feature with tracing enabled and other parts with tracing disabled.

Tracing respects snapping configuration for the list of traceable layers.

If there are too many features in map display, tracing is disabled to avoid potentially long tracing structure preparation and large memory overhead. After zooming in or disabling some layers the tracing is enabled again.

Internally, things work like this:
- when tracing is requested, linestrings are extracted from vector layers, then noded (using GEOSNode to resolve all intersections) and finally a simple planar graph is built (vertices + edges)
- when tracing, endpoints are temporarily added to the graph (if not equal to one of existing vertices already) and Dijkstra's algorithm is run to get shortest path

Original specs for the curious ones (the interaction with QGIS is slightly improved from what has been specified): http://www.lutraconsulting.co.uk/crowdfunding/autotrace-phase-2/specification.pdf
2016-01-13 12:18:00 +01:00
Hugo Mercier
b0bfa5feb5 Merge pull request #2662 from mhugo/vlayer_expr
Support for expression functions in virtual layers
2016-01-13 12:03:46 +01:00
Denis Rouzaud
c69afc9e6d script for custom widget plugin creation 2016-01-13 11:49:26 +01:00
Denis Rouzaud
586b607245 add custom widgets for QgsExternalResourceWidget and QgsFilePickerWidget 2016-01-13 11:49:25 +01:00
Denis Rouzaud
3ce6454790 add documentation 2016-01-13 11:49:25 +01:00
Denis Rouzaud
492f1ad18b add sip bindings 2016-01-13 11:49:25 +01:00
Denis Rouzaud
488b41f5c5 add test for QgsFilePickerWidget 2016-01-13 11:49:25 +01:00
Denis Rouzaud
cc9f0000be use home directory as default path if nothing else can be used 2016-01-13 11:49:25 +01:00
Denis Rouzaud
a88e238276 allow definition of dialog title, display relative url in label 2016-01-13 11:49:25 +01:00
Denis Rouzaud
29752a3597 QgsFilePicker and QgsExternalResource: new file picker widget and editor widget for improved file name widget
* QgsFilePicker is intended to be used across whole QGIS application for file picking
  * right now it supports only single file/folder selection
  * it has advanced support of relative path

* QgsExternalRessourceWidget is the pending editor widget which integrates a photo/web viewer
  * it can be properly accessible from the API and custom widgets
  * new class to avoid duplicating code for legacy support
  * old widgets will be removed from QGIS 3 (users will be invited to use the new widget in the config dialog)
2016-01-13 11:49:25 +01:00
Médéric RIBREUX
0034108edb Improve FileName editor widget
* Use an hyperlink for file name: when checked the widget displays an hyperlink (in a QLabel) instead of a QLineEdit. The link is always clickable, even in non edit mode. In this mode, user can only change the content of the field by selecting a file with the file selector (which is opened with the "..." button). If you want to revert to editable QLineEdit file name widget, just unchek the option.
* Display the full path: when checked, the hyperlink will display the absolute path of the file. When unchecked, the hyperlink will display only the name of the file (useful if the file path is always long).
Default Path: this is the path that will be used by the file selector when opening. The file selector will start at this path (if the option is not empty).
* Store Relative paths to the default path: when checked, file names are stored relatively to the default path described above. It is useful to store long paths into text shapefiles attributes limited to 254 characters.
* Store relative paths to the project path: when checked, file names are stored relatively to the project (.qgs file) path. This option will override the "save paths" setting of the project because it is sometimes useful to store code/svg/layer path relatively but not for the file name attributes.
* File storage options are exclusive options to make the file selector select files (default mode) or only directories.

File Name editor widget:

* add a isFieldSupported method to the factory to allow File Name widget only on fields that are QStrings.
* add a new QSetting to save the last path used in the widget. Before the PR, users were always defaulted to QGIS home directory when using the file selector button. This QSetting could also be used for the photo widget.
* when you want to change the value of an already set attribute, file selector will point to this path.
* when the value of the attribute is null or non valid (not a file), the file selector will use the default path (if set), or the last used path or the home directory.
2016-01-13 11:49:25 +01:00
Matthias Kuhn
b7170b82d3 Add azimuth function 2016-01-13 11:14:25 +01:00
volaya
f8de083a5b [Processing] [OTB] fixed wrong command when alg help is not found
fixes #14096
2016-01-13 11:06:23 +01:00
Patrick Valsecchi
9dc7662e17 Add saveAs XLSX and ODS 2016-01-13 10:08:50 +01:00
volaya
7a879994d4 [processing] fixed frequency analysis algorithm
code provided by Joseph Liam

fixes #14090
2016-01-13 09:55:30 +01:00
Nyall Dawson
b2cc3099ac Make raster classes debug output less noisy 2016-01-13 19:10:39 +11:00
Matthias Kuhn
4e9afcec4c Expression variable for the currently rendered part
During rendering, two new variables will be available:

  * `geometry_part_count`
  * `geometry_part_num` (1-based index)

Useful to apply different styles to different parts of multipart
features
2016-01-13 08:17:49 +01:00
Nyall Dawson
3da051b989 More debugging output for raster layer test 2016-01-13 16:19:06 +11:00
Nyall Dawson
76f3bc1ad5 Fix some clang -weverything warnings 2016-01-13 16:18:36 +11:00
Nyall Dawson
a30a735150 Fix some clazy issues (detach/iterating temporary, QString multi arg) 2016-01-13 16:18:11 +11:00
Nyall Dawson
4181ef8535 Avoid some warnings on Windows 2016-01-13 16:17:03 +11:00
Nyall Dawson
f0d8efbdd4 Update test mask 2016-01-13 16:16:39 +11:00
Nyall Dawson
8bd92fb80f Reorder label modes combo box 2016-01-13 13:36:29 +11:00
Nyall Dawson
04caab24a7 Merge pull request #2542 from SebDieBln/RefreshStyleWidgetOnLoadStyle
Refresh the label style widget when loading a new style (fixes #13667)
2016-01-13 13:24:28 +11:00
Nyall Dawson
21cdefa7e8 Merge pull request #2667 from SebDieBln/ZoomToFeatureIds
allow zooming to multiple features by their ID
2016-01-13 11:09:52 +11:00
Nyall Dawson
7495d9eada Followup 9dccce8, nicer error messages 2016-01-13 10:37:41 +11:00
Nyall Dawson
d01307ff29 Merge pull request #2492 from SebDieBln/NoCopyPasteOnDuplicateLayer
[Bugfix] Avoid using copyStyle() / pasteStyle() within duplicateLayers()
2016-01-13 10:35:31 +11:00
Sebastian Dietrich
e5f1d87506 allow zooming to multiple features by their ID
Changed QgsMapCanvas::zoomToFeatureId() to QgsMapCanvas::zoomToFeatureIds() accepting multiple IDs instead of just one.
2016-01-13 00:14:23 +01:00
Nyall Dawson
9dccce87ee Followup 3a1d47
- Fix dialog tab order
- Avoid use of hardcoded enum int conversion
- Remove some unneeded implicit casts
- Doc tweaks
2016-01-13 09:38:18 +11:00
Duncan Runnacles
4af65e6329 Set default margin units to MM 2016-01-13 08:27:58 +11:00
Duncan Runnacles
3a1d47fef7 Updated decoration items to use QgsUnitSelectionWidget.
Applies to north arrow, copyright and scalebar.

- Changed dialogs to use QgsUnitSelectionWidget.
- Added QgsSymbolV2::OutputUnit enum to decorationitem.
- Updated to use mm, pixel, or percentage units.
2016-01-13 08:27:54 +11:00
Duncan Runnacles
a89c1830de Added "Percentage" option to QgsSymboV2::OutputUnit.
- Added percentage to OutputUnit enum.
- Updated qgssymbolv2utils to include percentage.
- Updated qgsunitselectionwidget to include percentage.
Changed selection widget in its own commit

Added Percentage to OutputUnit enum.

Added percentage to switches in utils
2016-01-13 08:27:49 +11:00
Juergen E. Fischer
0ba089e6d4 fix PyQgsAppStartup on windows 2016-01-12 21:59:47 +01:00
Alexander Bruy
917ea5c0e3 [processing] add extension to the output vector VRT (fix #13872) 2016-01-12 20:24:55 +02:00
Alexander Bruy
3a514269ea [processing] remove nviz algorithm from modeller (fix #9107) 2016-01-12 20:24:55 +02:00
Alexander Bruy
04542a900a [processing] allow multiple threshold values for GRASS v.clean.advanced algorithm (fix #13748) 2016-01-12 20:24:55 +02:00
mhugent
47ae05fbdb Merge pull request #2595 from SebDieBln/ImproveDigitizingTools
Improve digitizing tools for circular strings
2016-01-12 16:25:41 +01:00
mhugent
3febba279d Merge pull request #2619 from mhugent/zoom_to_feature
[FEATURE]: Zoom to feature with right-click in attribute table
2016-01-12 16:20:17 +01:00
Matthias Kuhn
e351d24a7d More types support for QgsVectorFileWriter 2016-01-12 12:58:47 +01:00