29852 Commits

Author SHA1 Message Date
Nyall Dawson
a10936f06a Use a set for classes in PointsInPolygonUnique (faster) 2015-11-13 13:24:08 +11:00
Nyall Dawson
596b56c441 Faster PointsInPolygon(+Unique/Weighted) algorithms
- Avoid use of seperate feature requests for every point
- Use GEOS prepared geometries when testing for point containment

Quick stats:

~1500 point layer

BEFORE: 17 seconds
AFTER: 3 seconds

~900k point layer

BEFORE: 30 mins = canceled at 20%
AFTER: 2.5 mins = 100% complete
2015-11-13 13:24:08 +11:00
Nyall Dawson
7c8177e01a Use expression filter request for SelectByAttribute
Makes SelectByAttribute orders of magnitude faster for providers which
support compiled expressions (eg Postgres), also allows algorithm
to take advantage of database indexes created on attribute.

For a 4 million point PostGIS layer (with an index on attribute)
BEFORE: cancelled after 20 mins
AFTER: ~2 seconds
2015-11-13 13:23:18 +11:00
Juergen E. Fischer
d8f5dbeb4e Limit extent reprojection workaround to vector layers (followup 51fe632; fixes #13735; refs #7596) 2015-11-12 23:42:17 +01:00
Radim Blazek
fd9f0b5268 [GRASS] fixed cat shift when importing vectors via browser, fixes #13815 2015-11-12 18:10:56 +01:00
Alessandro Pasotti
854ce17699 Merge pull request #2443 from elpaso/bugfix-11794
SQLITE ask for a new name if already exists
2015-11-12 17:50:23 +01:00
Alessandro Pasotti
be8c7dac4f Merge pull request #2449 from elpaso/bugfix-11517
Fix attribute sync to layer for python init code and make QgsAttributeDialog reachable form python
2015-11-12 17:49:30 +01:00
elpaso
ad2caed3b2 Removed parent and replaced with QgsAttributeDialog
This makes possible to resize/alter the outer dialog
from python init code in the form.

Fixes #11517 (indirectly)
2015-11-12 16:55:39 +01:00
elpaso
17df615c18 Fixed attribute sync to layer for init code
Also removed UI connect in favour of QMetaObject::connectSlotsByName
to be consistent with other methods in the same class
2015-11-12 16:53:18 +01:00
alexbruy
c483411034 Merge pull request #2447 from NaturalGIS/fix_saga_220_kriging
[processing] fix SAGA 2.2.0 kriging
2015-11-12 17:37:01 +02:00
Marco Bernasocchi
6b3eddd0d0 fix biulding issue when WITH_QT_WEBKIT=OFF 2015-11-12 16:33:29 +01:00
Giovanni Manghi
19376770af missing parameter 2015-11-12 14:28:03 +00:00
alexbruy
20a8b37d6f Merge pull request #2444 from NaturalGIS/fix_saga_212_kriging
[processing] fix SAGA 2.1.2 kriging
2015-11-12 16:19:12 +02:00
Giovanni Manghi
957c019027 fix SAGA 2.2.0 kriging 2015-11-12 14:12:52 +00:00
Denis Rouzaud
0461cbdd22 use aliases instead of field names in attribute table column filter list 2015-11-12 14:26:01 +01:00
Matthias Kuhn
f1fe98558a [qt5] Fix QCA Cmake 2015-11-12 14:14:03 +01:00
Matthias Kuhn
1bb7aff067 [qt5] Fix QScintilla cmake file 2015-11-12 14:14:03 +01:00
Giovanni Manghi
be563584ed fix SAGA 2.1.2 kriging 2015-11-12 12:44:13 +00:00
elpaso
325f0992e7 SQLITE ask for a new name if already exists
If the db name already exists, allow to enter a new name.
Fixes #11794
2015-11-12 13:22:53 +01:00
rldhont
81acd07edc Update [BUGFIX] 13118 QGIS Server - WFS - GeoJSON and escaping line breaks
Enhance replace, thanks to @nyalldawson
Enhance format, thanks to @jef-n

fixes #13118
2015-11-12 11:41:38 +01:00
Nyall Dawson
df6c7104e2 Use QgsStatisticalSummary for merge attributes dialog
Adds a bunch of new stats and avoids code duplication
2015-11-12 20:29:07 +11:00
Nyall Dawson
cdf21b7c3e Return derived classes from clone() methods, avoids need to
dynamic_cast results
2015-11-12 20:29:06 +11:00
Nyall Dawson
dfb1585c49 Bump QgsStatisticSummary test coverage 2015-11-12 20:29:06 +11:00
Juergen E. Fischer
6e1df491f6 fix windows build (followup 2175e7a) 2015-11-12 09:46:42 +01:00
Matthias Kuhn
8803cb4241 Merge pull request #2437 from bstroebl/improveDissolve
[PROCESSING] Speed up dissolve without changing parameters
2015-11-12 09:08:52 +01:00
Richard Duivenvoorde
b741986041 new splash for dev (Las Palmas Hackfest) 2015-11-11 23:23:14 +01:00
Matthias Kuhn
56ccb2b858 sipClass_Klass is deprecated for a long time: replace with sipType_Klass 2015-11-11 23:22:51 +01:00
rldhont
016f497726 [BUGFIX] 13118 QGIS Server - WFS - GeoJSON and escaping line breaks
Line breaks are not properly handled in GeoJSON results when making GetFeature requests.
Line breaks should be replaced by \\n.
2015-11-11 20:12:35 +01:00
Bernhard Ströbl
cfb932afa9 [PROCESSING] Speed up dissolve without changing parameters 2015-11-11 16:29:33 +01:00
Matthias Kuhn
b4d206af71 Updates for GDAL 2 2015-11-11 13:07:21 +01:00
Matthias Kuhn
ec1097c9f5 Change links to https 2015-11-11 11:08:35 +01:00
rldhont
2175e7a9cb [QGIS-Server] Use layer precision in searchRect 2015-11-11 10:49:20 +01:00
Matthias Kuhn
4f6989ecbd [qt5] Fix crash on exit
See https://bugreports.qt.io/browse/QTBUG-35977
2015-11-11 10:19:16 +01:00
Nyall Dawson
bb339f7a5b 100% test coverage for QgsFeature 2015-11-11 19:51:43 +11:00
Nyall Dawson
87168c14a5 100% test coverage for QgsWKBTypes, add missing docs 2015-11-11 19:51:42 +11:00
Nyall Dawson
fd317701fb Avoid warning 2015-11-11 19:51:42 +11:00
Nyall Dawson
b384f18a3d Followup f9fa9793, avoid expensive intersection calculation when
testing label candidates against polygon obstacles

Fix #13556
2015-11-11 19:51:42 +11:00
Juergen E. Fischer
04abaf3bfa fix 81bbb82 2015-11-10 21:31:22 +00:00
Jürgen Fischer
8ec0208408 Merge pull request #2436 from dgoedkoop/linePointDifferenceFix
Fix QgsGeos::linePointDifference
2015-11-10 21:18:11 +00:00
Daan Goedkoop
c05057158b Fix QgsGeos::linePointDifference 2015-11-10 22:06:42 +01:00
Juergen E. Fischer
9a89408b72 indentation update 2015-11-10 20:21:10 +00:00
Matthias Kuhn
b57d5abe36 Followup cb5f748, Use QgsExpression::quotedColumnRef 2015-11-10 15:47:00 +01:00
Matthias Kuhn
cb5f7485d6 Quote field names when converting renderers
Fix #13800
2015-11-10 13:50:43 +01:00
Juergen E. Fischer
81bbb8235c postgres provider: avoid additional fetch after all features have already been processed 2015-11-10 12:26:38 +00:00
Nyall Dawson
452e61c8e0 More test mask updates for windows 2015-11-10 17:15:43 +11:00
Nyall Dawson
ebaa26f373 Drop missing documentation/sip thresholds 2015-11-10 17:10:17 +11:00
Nyall Dawson
5c9873c794 More robust GEOS pointOnSurface calculation (fix #13787) 2015-11-10 17:09:04 +11:00
Nyall Dawson
18744b4123 Fix crash with malformed WKT 2015-11-10 17:08:48 +11:00
Nyall Dawson
0853076eef [expressions] Allow conversion of features/geometries to bool
Where geometry = false if empty, feature = false if not valid.
Allows expressions like "case when $geometry then ... else ..."
and "case when get_feature(...) then ... else ... "
2015-11-10 17:08:41 +11:00
Nyall Dawson
719ff408a5 Add some missing SIP bindings, comment some classes as not available
in Python
2015-11-10 17:08:27 +11:00