42951 Commits

Author SHA1 Message Date
Sandro Mani
49b3cee4dd [Geometry checker] Various ui improvements 2017-10-23 17:25:07 +02:00
Sandro Mani
374e186556 [Geometry checker] Add layer column to fix summary dialog tables 2017-10-23 17:25:07 +02:00
Sandro Mani
e0caef9271 [Geometry checker] Introduce vertical-only scroll-areas 2017-10-23 17:25:07 +02:00
Sandro Mani
aa27b66460 [Geometry checker] Fix some feature highlighting issues 2017-10-23 17:25:07 +02:00
Sandro Mani
0740979b4c [Geometry checker] Improve label 2017-10-23 17:25:07 +02:00
Sandro Mani
5e6501fe57 [Geometry checker] Add layer column to result table 2017-10-23 17:25:07 +02:00
Sandro Mani
b80fa36450 [Geometry checker] Imporove logic for picking the output directory 2017-10-23 17:25:07 +02:00
Sandro Mani
018467fc39 [Geometry checker] Fix determining active layer geometry types 2017-10-23 17:25:07 +02:00
Sandro Mani
81a4a526c7 [Geometry checker] Fix updating and gathering of layers 2017-10-23 17:25:07 +02:00
Sandro Mani
29d057c15a [Geometry checker] Reduce icon size in setup layer list 2017-10-23 17:25:07 +02:00
Sandro Mani
7a5186684e [Geometry checker] Fix angle check possibly reporting end nodes of lines 2017-10-23 17:25:07 +02:00
Sandro Mani
57c348b8b6 [Geometry checker] Ensure all UI items are consistently enabled/disabled depending on type of layers to be checked 2017-10-23 17:25:07 +02:00
Sandro Mani
5470b16356 [Geometry checker] Set appropriate initial size for checker dialog 2017-10-23 17:25:07 +02:00
Sandro Mani
45862ed674 [Geometry checker] Rename tab: Settings -> Setup 2017-10-23 17:25:07 +02:00
Sandro Mani
c1b06cef79 [Geometry checker] Tweak logic for choosing which layers are selected in the setup tab 2017-10-23 17:25:07 +02:00
Sandro Mani
f0f66d74b5 [Geometry checker] Fix LayerFeature iterator 2017-10-23 17:25:07 +02:00
Sandro Mani
e88f32a21c [Geometry checker] Add point in polygon check 2017-10-23 17:25:07 +02:00
Sandro Mani
3842f42a6e [Geometry checker] Add line intersection check 2017-10-23 17:25:07 +02:00
Sandro Mani
b5208c04df [Geometry checker] Simplify code 2017-10-23 17:25:07 +02:00
Sandro Mani
b9966aa362 [Geometry checker] Extend duplicate check to also handle points 2017-10-23 17:25:07 +02:00
Sandro Mani
ee47d42d85 [Geometry checker] Add point must be covered by line check 2017-10-23 17:25:07 +02:00
Sandro Mani
7fb1c5515b [Geometry checker] Add dangle check 2017-10-23 17:25:07 +02:00
Sandro Mani
84184d453f [Geometry checker] Use map crs for geometry and errorLocation in CheckErrors, overall code cleanup 2017-10-23 17:25:06 +02:00
Sandro Mani
1642eb1601 [Geometry checker] Adapt for API changes 2017-10-23 17:25:06 +02:00
Sandro Mani
b52b2c51e4 [Geometry checker] Introduce QgsGeometryCheckerUtils::LayerFeatures 2017-10-23 17:25:06 +02:00
Sandro Mani
821eb4096a [Geometry checker] Initial multilayer support for contained check 2017-10-23 17:25:06 +02:00
Sandro Mani
55cf125480 [Geometry checker] Initial multilayer support for duplicate check 2017-10-23 17:25:06 +02:00
Sandro Mani
3d8ffcb184 [Geometry checker] Initial multilayer support for overlap check 2017-10-23 17:25:06 +02:00
Sandro Mani
dd12b132c5 [Geometry checker] Add multi-layer support to gap check 2017-10-23 17:25:06 +02:00
Sandro Mani
23affe4fae [Geometry checker] Store error values in map units, perform topology checks in map CRS 2017-10-23 17:25:06 +02:00
Sandro Mani
46e3ef7395 [Geometry checker] Ensure headers appear in project tree 2017-10-23 17:25:06 +02:00
Sandro Mani
e7efde2c31 [Geometry checker] Make checks report affected are in selected crs 2017-10-23 17:25:06 +02:00
Sandro Mani
2a92bfb2c9 [Geometry checker] Introduce QgsGeometryCheckerContext 2017-10-23 17:25:06 +02:00
Sandro Mani
31cc65df49 [Geometry checker] Initial multi-layer support 2017-10-23 17:25:06 +02:00
Alessandro Pasotti
1ecdb1dc44 [auth] Menu option and configuration for auto clear auth cache 2017-10-23 16:02:56 +02:00
Alessandro Pasotti
cde36f3247 [auth] Clear network authentication cache on SSL errors 2017-10-23 16:02:18 +02:00
Even Rouault
e3fc73f41e Merge pull request #5415 from rouault/use_layername
[OGR provider/askUserForOGRSublayers] Use layername= instead of layerid= when no ambiguity
2017-10-23 14:48:34 +02:00
lbartoletti
0d89504ee5 ADD GML export to QgsTriangle 2017-10-23 14:29:08 +02:00
rldhont
a6964b51bc Merge pull request #5413 from rldhont/server-bugfix-display
[Server][Bugfix] Test if the environ variable DISPLAY is defined
2017-10-23 14:20:23 +02:00
Nyall Dawson
1d043f3c5a Update test 2017-10-23 20:35:54 +11:00
Nyall Dawson
d8dc0f92de Make gpkg the first choice for processing vector outputs 2017-10-23 20:35:54 +11:00
rldhont
7bfd60ab78 [Server][Bugfix] Test if the environ variable DISPLAY is defined 2017-10-23 11:35:46 +02:00
Even Rouault
1822b76c1a [OGR provider/askUserForOGRSublayers] Use layername= instead of layerid= when no ambiguity (#16135)
When composing URI, use layer names if layer names are unique. This will
be more stable in case the datasource get layers added/removed (for example for
GeoPackage)
2017-10-23 11:04:20 +02:00
Nyall Dawson
a48c2e8fd4 Merge pull request #4947 from lbartoletti/regularShape_gui
[FEATURE][needs-docs] Add gui to draw Circle, Ellipse, Rectangle and Regular Polygon
2017-10-23 16:04:23 +11:00
Nyall Dawson
5d675720bb Optimise calculation of QgsGeometry::vertexNrFromVertexId
By moving logic to abstract geometry subclasses so that they
can trivially retrieve the vertex number, instead of relying
on the inefficient coordinateSequence method.

Has flow on speed boosts to many geometry operations like
calculation of closest points in a geometry, which will
benefit snapping related operations.
2017-10-23 08:03:22 +11:00
Nyall Dawson
2e8e72d02d Optimise determination of adjacent vertices and move to QgsAbstractGeometry
Previously the method in QgsGeometryUtils was relying on
QgsAbstractGeometry::coordinateSequence, which is an absolute
performance killer.

Instead move to optimised methods in the various abstract
geometry subclasses which rely only on trivial calculations.
2017-10-23 08:03:22 +11:00
lbartoletti
16cad4d14f - Add Signals start/stopCapturing
- fix QSpinBox -> QgsSpinBox
2017-10-22 22:03:27 +02:00
Nyall Dawson
51fb66541d Fix QgsVectorFileWriter use of transactions while writing
Previously the writer was only using transactions in some
cases (when calling the static writeAsVectorFormat method).

This changes the writer to always use a transaction when
possible.

Fixes the map renderer job test using gpkg from timing out after
taking forever to running twice the speed of the shapefile
version. Similar benefits across other parts of qgis,
which are writing files without using the static method, e.g.
processing.
2017-10-22 21:43:36 +11:00
Nyall Dawson
c4f3832af2 Rename QgsGeometry::fromPolyline as QgsGeometry::fromPolylineXY
and add new QgsGeometry::fromPolyline which uses QgsPoint

We want to encourage people not to use the QgsPointXY method, as it drops
Z/M values. So it's moved across to a different name to make way
for a new QgsGeometry::fromPolyline which uses a QgsPoint list
instead of QgsPointXY, thus keeping Z/M values intact.

Similarly, QgsPolyline now is a list of QgsPoint (keeping z/m values)
and the old 2d QgsPolyline type was renamed to QgsPolylineXY.

Making the QgsPoint method the "preferred" method and making linestrings
just as easy to create from z/m dimensioned points as 2d points is
important to push people to write code which does not discard
these important dimensions.

As a bonus, the QgsPoint methods are more efficient anyway, since
they don't require creation of a temporary list.
2017-10-22 18:10:14 +10:00
Nyall Dawson
10a2867cab Partially revert 28daa1a0
Using gpkg for this test is causing intermittent travis
timeouts.

.
.
.
.

Team Shapefile FTW ;)
2017-10-22 12:09:43 +10:00