37585 Commits

Author SHA1 Message Date
Nyall Dawson
8eb35531c3 Optimise QgsGeos conversions
Avoid some unnecessary creation of QgsPointV2
2017-03-26 10:55:00 +10:00
Nyall Dawson
314842d0cc Merge pull request #4303 from nyalldawson/densify
Port processing densify algorithms to c++
2017-03-25 21:19:25 +10:00
Nyall Dawson
51035cfb67 Add optimised constructors for QgsLineString
Instead of requiring all linestrings to be constructed by
first creating QgsPointSequence (requiring creation or
conversion of points to QgsPointV2), allow construction
of LineStrings directly from vectors of values (fastest!)
or lists of QgsPoint.

Likely results in speedups for lots of geometry operations,
but using the same layer as earlier tested for densify
improvements the densify operation time dropped further
from 25 seconds to 15 seconds.
2017-03-25 20:44:31 +10:00
Nyall Dawson
daa2454558 Fix setting project to no projection not triggering lockdown of
ellipsoid and unit selection
2017-03-25 20:30:27 +10:00
Nyall Dawson
345ce734c4 [composer] Correctly draw overview frame when map item CRS differs 2017-03-25 17:58:48 +10:00
Nyall Dawson
83ac0e584d Fix doxygen warning 2017-03-25 17:15:38 +10:00
Nyall Dawson
a769448e70 Also port processing densify to distance to c++
- Add QgsGeometry method to densify by distance
- Fix bug in processing algorithm which resulted in duplicate
vertices and incorrectly spaced extra vertices
2017-03-25 16:23:29 +10:00
Nyall Dawson
77e7693c48 Fix spelling errors in processing algorithm help 2017-03-25 16:23:29 +10:00
Nyall Dawson
b90aa916e6 Port processing Densify Geometries algorithm to use c++ densify
Rough benchmark using 50k geometry polygon shapefile

Before: 1m25s
After:  21s
2017-03-25 16:23:29 +10:00
Nyall Dawson
249c6fcb20 Densify canvas extent geometry before reprojecting for views
Makes displaying canvas extent in extra map views nice and smooth
if canvas CRSes differ.
2017-03-25 16:23:24 +10:00
Nyall Dawson
5360b79174 [FEATURE] New API QgsGeometry::densifyByCount
Densifies a geometry by adding a specified number of vertices
to each segment
2017-03-25 15:07:16 +10:00
Nathan Woodrow
2dac2d3bac Hide and show system tray icon on all platforms 2017-03-24 23:43:24 +10:00
Nathan Woodrow
4c0ace9569 Hide system tray icon on Windows 2017-03-24 13:32:41 +01:00
Mathieu Pellerin
9c5abc9587 [FEATURE] Add a secondary stroke color to QgsRubberBand (#4301)
This comes in handy when in need of insure visibility of a
marker/line/polygon overlay over both light and dark areas.
This also updates the map view's extent to make use of a
secondary stroke color instead of a semi-transparent fill.
2017-03-24 14:49:37 +07:00
Alessandro Pasotti
8b0e3d8da3 [bugfix] Apply authentication configuration to xyz layers 2017-03-24 08:13:14 +01:00
Mathieu Pellerin
40f86b2033 [processing] GRASS 7.2 support: use SQL compatible output names (#4298)
(fixes #16370)
2017-03-24 08:35:57 +07:00
Nyall Dawson
2354696f26 Fix error when enabling additional providers in processing
Add an interface method to show the options dialog at a specific
page. This is required since plugins can now embed their options
in the main options dialog, so they may also need a way to
force this dialog to open.

Implement this in processing so that enabling additional providers
works again.
2017-03-24 11:16:49 +10:00
Nyall Dawson
109be1b0bb Allow options filter to search in QTreeViews
Such as processing options. Quite basic - it just checks the item
text but does not filter or highlight items in the view
2017-03-24 10:59:31 +10:00
Nyall Dawson
5f1a512d90 Remove unused options search widgets 2017-03-24 10:41:42 +10:00
Nyall Dawson
83db0fbe79 Fix broken widget filter box in layer/project properties 2017-03-24 10:35:11 +10:00
Steven Mizuno
9d5f28921d hide Internal connection if build is without WITH_QTMOBILITY cmake setting
use previously set connection; set Autodetect only if Internal happened to be the stored setting.
fix #13233
2017-03-24 09:58:02 +10:00
Nyall Dawson
02b4f6c770 Spell check: accurancy->accuracy 2017-03-24 09:36:46 +10:00
Nyall Dawson
4d42d769e6 Allow showing main canvas extent in extra map views
Another step toward multicanvas replacing map overview panel
2017-03-24 08:34:49 +10:00
Matthias Kuhn
1ffa9ee7a6 Revert renaming of main layer-tree-group node 2017-03-23 15:29:28 +01:00
Matthias Kuhn
e5aaceacbe Preserve custom layer order in offline editing 2017-03-23 15:29:13 +01:00
Matthias Kuhn
8cecf236df Document API breaks 2017-03-23 15:29:13 +01:00
Matthias Kuhn
baa4c86262 Fix tests 2017-03-23 15:29:12 +01:00
Matthias Kuhn
f33aabd90a Completely move layer order to core 2017-03-23 15:29:12 +01:00
rldhont
798b1ed69e Merge pull request #4294 from rldhont/bugfix_processing_saga_io_gdal
[Processing] Saga: update gdal_io and Flow Accumulation (Flow Tracing)
2017-03-23 10:54:40 +01:00
Nyall Dawson
634d5ffb8a Mark QgsRasterRenderer::legendSymbologyItems as /Out/ in sip 2017-03-23 10:15:30 +10:00
Nyall Dawson
2446dae163 Some more new style connects 2017-03-23 08:51:34 +10:00
rldhont
2fe7caf787 [Processing] Saga: update gdal_io and Flow Accumulation (Flow Tracing) 2017-03-22 19:17:18 +01:00
Larry Shaffer
265da3ffa0 Merge pull request #4292 from Gustry/fix_mac_build
fix undeclared identifier on MAC in composer
2017-03-22 12:12:10 -06:00
Etienne Trimaille
119637768c fix undeclared identifier on mac in composer 2017-03-22 14:35:56 +01:00
Alexander Bruy
060a57f12b Merge pull request #4287 from nyalldawson/processing_default_layer
[processing] Default to current layer in layer selection combos
2017-03-22 08:18:19 +02:00
Nyall Dawson
746d288e33 Don't emit layerOrderChanged when removing layers
Otherwise it automatically enables the layer order panel
2017-03-22 13:01:32 +10:00
Nyall Dawson
b8fd1fd7db Some more use of QgsProject crs instead of canvas crs 2017-03-22 11:46:48 +10:00
Nyall Dawson
8593e38705 Add missing api break note 2017-03-22 11:15:40 +10:00
Nyall Dawson
0500865b3f Set default layer CRS according to behaviour radio (fix #11889)
Makes the new layer dialogs correctly respect the current project
CRS choice when set to follow project CRS.
2017-03-22 11:13:30 +10:00
Nyall Dawson
1042b442ca [composer] Fix maps defaulting to rectangle preview mode 2017-03-22 10:27:04 +10:00
Nyall Dawson
7c79803cc3 Add missing dynamic cast for QgsTriangle to sip bindings 2017-03-22 10:20:01 +10:00
Nyall Dawson
a8e8eec95d Convert almost all core connects to new style
Just a handful remain which for various reasons cannot
be converted
2017-03-22 10:03:43 +10:00
Nyall Dawson
b7d2b9fd72 Merge pull request #4283 from nyalldawson/filterrect
Remove QgsFeatureRequest::FilterRect
2017-03-22 07:38:53 +10:00
Nyall Dawson
2e9f99693d Merge pull request #4281 from nyalldawson/does_not_contain
[FEATURE][processing] Add 'does not contain' to Extract By Attribute
2017-03-22 07:37:56 +10:00
Nyall Dawson
aad182fdc0 Merge pull request #4274 from nyalldawson/scroll_timer
A different approach to avoiding accidently scroll changes
2017-03-22 06:23:55 +10:00
lbartoletti
fb3d07f3f5 [FEATURE] New class for triangle
Adds a new geometry class for Triangle geometries

Methods include orthocenter, bisectors, medians, medial, circumscribed (center,
radius), inscribed (center, radius)

Also adds make_triangle expression function for creating triangles
2017-03-21 18:50:47 +10:00
Nyall Dawson
0710fb5da8 Flip some connects to new style 2017-03-21 17:06:55 +10:00
Nyall Dawson
bd17999755 Swap QgisApp to use new style connects 2017-03-21 16:49:13 +10:00
jdugge
45f2cd5583 Fix duplicate QgsRectangle.toString methods
Condenses the 2 duplicate methods to a single method which is usable from the Python bindings.
2017-03-21 15:58:39 +10:00
Nyall Dawson
b54fe1e3a5 Use a clearer marker for main canvas position in view windows 2017-03-21 15:49:42 +10:00