37644 Commits

Author SHA1 Message Date
Denis Rouzaud
15e4903890 sipify improvements
* add demo file and start a short doc
* fix some annotations
* do not display hidden line (SIP_SKIP, delete)
* use a defined var for SIP_SKIP
* remove constructor definition in header
* fix comment after method definition in header
* add a test for sipify itself
2017-03-30 15:13:01 +02:00
Denis Rouzaud
21be025d25 use sip includes rather than listing header to generate all sip files 2017-03-30 15:13:01 +02:00
Denis Rouzaud
a44eb4d7b0 use dedicated header for QgsAttributes 2017-03-30 15:13:01 +02:00
Denis Rouzaud
b0564becfd also comment methods
fix comment starting on first line of block
2017-03-30 15:13:01 +02:00
Denis Rouzaud
a3bdd4405a SIP test: use blacklist rather than whitelist 2017-03-30 15:13:01 +02:00
Denis Rouzaud
7b08608f7f sipify QgsVectorLayer, QgsFeature 2017-03-30 15:13:01 +02:00
Denis Rouzaud
85894ed4c8 pre-process headers (QgsVectorLayer and QgsFeature) 2017-03-30 15:13:01 +02:00
Denis Rouzaud
988c504d77 test auto-generated sip files on Travis 2017-03-30 15:13:01 +02:00
Denis Rouzaud
77d7236a93 sipify improvements
* remove enum value assignments
 * remove deleted functions
 * remove private members
 * remove function bodies
 * remove keywords (override, inline)
 * comment out but print SIP_SKIP
 * allow use of #if(n)def SIP_RUN and remove code in #else statements

 * fix PyName
 * fix SIP_SKIP

 * add a list of auto-generated sip files and a script to build them at once
2017-03-30 15:13:01 +02:00
Denis Rouzaud
ba6f736c02 remove comments from sipfiles (QgsVectorLayer and QgsFeature) 2017-03-30 15:13:01 +02:00
Matthias Kuhn
0bdaf4fc6d Ignore SIP annotations in doxygen 2017-03-30 15:13:01 +02:00
Matthias Kuhn
bd75aeef49 Put some sip code into qgsfeature.h
Just for reference
2017-03-30 15:13:01 +02:00
Matthias Kuhn
ca008d7a48 Add script to generate sip code from headers
Add more annotations

Add some references to upstream documentation

Add more annotations
2017-03-30 15:13:01 +02:00
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