37681 Commits

Author SHA1 Message Date
Matthias Kuhn
39cd81b309 Hide embedded form in relation reference
by default
2017-03-30 15:02:00 +02:00
Matthias Kuhn
aa4a784898 Code formatting 2017-03-30 14:35:21 +02:00
Nyall Dawson
636e9c5ea3 [FEATURE] Add geometry snapper modes to only snap end points of lines
Allows snapping of end points only, or end point to end point only

Also update processing algorithm to match
2017-03-30 15:52:49 +10:00
Nyall Dawson
92249c1a33 [FEATURE][processing] Snap Geometries algorithm can now snap
within the same layer

Allows closure of gaps within a layer
2017-03-30 13:54:05 +10:00
Nyall Dawson
ece3991dbe [FEATURE] New class QgsInternalGeometrySnapper
Used for snapping geometries within a set of features to other
features from that same set.

Just like QgsGeometrySnapper, except that where QgsGeometrySnapper
requires a separate reference layer to snap to
QgsInternalGeometrySnapper snaps *within* a single layer. E.g.
allows you to close gaps within that layer.
2017-03-30 13:54:05 +10:00
Nyall Dawson
6ea616ef4b Fix compilation error on Travis 2017-03-30 11:38:16 +10:00
Nyall Dawson
78685e1a49 Qt5 style connects 2017-03-30 11:11:28 +10:00
Juergen E. Fischer
5bfc0a12f2 debian packaging: update icons 2017-03-29 21:55:37 +02:00
Even Rouault
ef26d95007 Raster layer properties: fix renderer widget that was reset, and fix wrong behaviour on cancel.
2 issues :
- when opening the raster layer properties dialog, it used to reset the min/max value
  to custom values, due to a bad interaction with a recent change in the histogram code
  (likely introduced in 4f3cf6889763ae4236c43179504e9c8ce97b6633)
- when closing the raster layer properties dialog on a multiband renderer in updated
  extent mode for example, it got result to whole raster statistics due to
  QgsRasterLayerProperties::setRendererWidget() reseting stuff. Honestly the code in
  that method that changes value in the renderer object seems to be completely
  inappropriate for a method that you would expect to only affects GUI/widgets.
2017-03-29 17:22:41 +02:00
volaya
ca5f99de1c Merge pull request #4278 from sfkeller/patch-1
[processing] Updated ogr2ogr.py with GeoPackage in FORMATS and EXTS.
2017-03-29 14:43:21 +02:00
Mathieu Pellerin
eb110fd307 [gui] improve the browser panel's spinner (#4312) 2017-03-29 17:18:16 +07:00
Matthias Kuhn
a71132a15b Catch geos exception in event loop 2017-03-29 07:20:28 +02:00
Matthias Kuhn
6aeb9b7ded Catch geos exceptions 2017-03-29 07:20:28 +02:00
Nyall Dawson
31762193df Merge pull request #4290 from nyalldawson/fix_16149
Fix incorrect project CRS when loading project (fix #16149)
2017-03-29 13:37:39 +10:00
nirvn
da41af1481 fix ArcGIS Feature/Map Server connect() 2017-03-29 10:15:41 +07:00
Nyall Dawson
99f186a7d2 Clean up progress handling in QgsProcessingFeedback 2017-03-29 09:02:30 +10:00
jef
4d62804888 fix windows build (followup 943d1a2) 2017-03-28 09:36:20 +02:00
Alessandro Pasotti
fe1329a5ea Removed a few debug messages (credentials leakage) 2017-03-28 08:48:17 +02:00
Nyall Dawson
294e4a5c8c Fix map views always recenter when resized 2017-03-28 13:40:18 +10:00
Nyall Dawson
b31d18e5df Avoid redrawing map views multiple times on creation 2017-03-28 13:38:07 +10:00
Nyall Dawson
5b9dc9dca5 Allow labels to be toggled in map views
Another step toward feature parity with overview panel
2017-03-28 13:18:24 +10:00
Nyall Dawson
456fdc48a7 Fix Coverity divide by zero errors 2017-03-28 09:24:11 +10:00
Nyall Dawson
943d1a2ca5 More Qt5 style connect conversions 2017-03-28 09:18:59 +10:00
Matthias Kuhn
4d8df75098 Merge pull request #4280 from timlinux/new-logo
New logo
2017-03-27 17:07:54 +02:00
Alexander Bruy
b8cb196322 Merge pull request #4293 from alexbruy/processing-api
[processing][needs-docs] Processing API improvements
2017-03-27 10:25:43 +03:00
Nyall Dawson
1f927abe5c Avoid coverity null dereference after null check warning 2017-03-27 11:43:22 +10:00
Nyall Dawson
7387d7456c Followup 8b9e492, fix drawing of cached layer images 2017-03-27 11:41:42 +10:00
Nyall Dawson
721131e661 [server] Fix potential crash caused by referencing out of scope local 2017-03-27 08:14:51 +10:00
Nyall Dawson
68437a1032 More Qt5 style connects 2017-03-27 08:08:58 +10:00
Nyall Dawson
8b9e4922fc Don't try to compose images before they have been initialized 2017-03-26 17:33:43 +10:00
Nyall Dawson
7aa4fa090b Fix some valgrind issues 2017-03-26 16:51:36 +10:00
Nyall Dawson
e55fbebf68 Add failing test to ensure that QgsAbstractGeometry.centroid
result matches that of GEOS

It doesn't, and reveals the the QGIS native centroid calculation
is quite broken
2017-03-26 14:34:51 +10:00
Nyall Dawson
631c7cd1dd Port GEOS centroid tests to PyQGIS 2017-03-26 14:34:51 +10:00
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