51970 Commits

Author SHA1 Message Date
Nyall Dawson
149726cfa5 [dbmanager] Fix exception when browsing project layers 2018-11-10 12:30:52 +10:00
Juergen E. Fischer
669f6bb4b7 OGC parameter names are case-insensitive 2018-11-10 00:53:30 +01:00
Nyall Dawson
08abf92922 Explicitly disable debug messages in dwg import
Even preventing their output isn't enough here. There's just
SO many debug msgs throughout this class, that creating and
parsing the debug messages strings (which is done even if
the message level is higher than is output) is enough
to grind the import to a halt on debug enabled builds.
2018-11-10 09:27:06 +10:00
Nyall Dawson
8bf206d221 Make dwg import less debug noisy 2018-11-10 09:27:06 +10:00
Nyall Dawson
df9307b9aa Further protection in windows event message handling
Refs #20386
2018-11-10 07:30:17 +10:00
Nyall Dawson
d6aa46cfe7 Add some notes to test, additional test with empty line 2018-11-10 07:24:02 +10:00
Nyall Dawson
ff5a8bc0ae Revert "[pal] Use QgsGeometry::makeValid instead of buffer(0) to repair geometries"
This reverts commit e05a5a930241ec3c9c5df7880650da60382b956c.

The makeValid call is much slower than the previous "buffer( 0 )" approach

Fixes #20260
2018-11-10 05:13:47 +10:00
Denis Rouzaud
30cf2d37bc
Merge pull request #8404 from 3nids/locator_core
Move parts of QgsLocatorFilter to core
2018-11-09 12:18:27 +00:00
Matthias Kuhn
9e78b826f9
Merge pull request #8451 from daniviga/rpm-opencl
Add support for OpenCL in RPM
2018-11-09 12:18:59 +01:00
Denis Rouzaud
fe6f99a6e0 check filter 2018-11-09 10:01:38 +00:00
Denis Rouzaud
f4f5d1ef5b missing destructor 2018-11-09 10:01:38 +00:00
Denis Rouzaud
31cd1644c3 also move triggering of results to core 2018-11-09 10:01:29 +00:00
Daniele Viganò
1606bf1997
RPM spec template cleanup [skip ci] 2018-11-09 10:56:50 +01:00
Nyall Dawson
06c3d7c5b6 Nice icons for ring combo box 2018-11-09 19:06:48 +10:00
Nyall Dawson
ba17b130f8 Move forceRHR to QgsGeometry, avoid duplicate code 2018-11-09 19:06:48 +10:00
Nyall Dawson
63c9bcb5d2 Update reference lines 2018-11-09 19:06:48 +10:00
Nyall Dawson
7641605eb9 Fix warning 2018-11-09 19:06:48 +10:00
Nyall Dawson
30214538c2 [FEATURE] Add option to simple line and marker line to only
render exterior ring or interior rings

This option is shown whenever a simple line symbol or
marker line symbol is used as part of a fill symbol for
rendering polygons.

The default behavior is to render both interior and exterior
rings, but this new setting allows users to set the symbol
layer to render only for the exterior ring OR only
for interior rings.

This allows for symbolisation which wasn't directly possible
before, such as a marker line with markers for interior
rings angled toward the interior of the polygon.

Sponsored by the German QGIS User Group

Fixes #12652
2018-11-09 19:06:48 +10:00
Nyall Dawson
a947bb3b9b Dox++ 2018-11-09 19:06:48 +10:00
Nyall Dawson
73d0ced5df [FEATURE] Add option to force right-hand-rule during polygon symbol rendering
This new option, available under the "Advanced" button for fill symbols,
allows forcing rendered polygons to follow the standard "right hand
rule" for ring orientation (where exterior ring is clockwise, and
interior rings are all counter-clockwise).

The orientation fix is applied while rendering only, and the original
feature geometry is unchanged.

This allows for creation of fill symbols with consistent appearance,
regardless of the dataset being rendered and the ring orientation
of individual features.

Refs #12652
2018-11-09 19:06:48 +10:00
Nyall Dawson
ae2255469b Fix accidently skipped test 2018-11-09 19:06:48 +10:00
Nyall Dawson
0462c260a3 Remove no longer required workaround 2018-11-09 19:06:48 +10:00
Nyall Dawson
e5946c50e7 Ensure that QgsGeometry::offsetCurve does not reverse curve orientation 2018-11-09 19:06:48 +10:00
Nyall Dawson
d1e09a2bc7 [FEATURE][processing] New algorithm to force right hand rule for polygons
This algorithm forces polygon geometries to respect the Right-Hand-Rule,
in which the area that is bounded by a polygon is to the right of the
boundary. In particular, the exterior ring is oriented in a clockwise
direction and the interior rings in a counter-clockwise direction.
2018-11-09 19:06:48 +10:00
Nyall Dawson
1b79b9a140 [FEATURE] force_rhr expression function
Forces polygons to follow the right hand rule, in which the area that
is bounded by a polygon is to the right of the boundary. In particular,
the exterior ring is oriented in a clockwise direction and the
interior rings in a counter-clockwise direction.
2018-11-09 19:06:48 +10:00
Nyall Dawson
27e1ef5c1c Add method to QgsCurvePolygon to force RHR, ensuring standard ring orientation 2018-11-09 19:06:48 +10:00
Nyall Dawson
c22364d45e Add method to determine orientation of closed curves 2018-11-09 19:06:48 +10:00
Etienne Trimaille
6e16651d96 [FEATURE] explode hstore algorithm (#8212) 2018-11-09 13:00:29 +07:00
Nyall Dawson
df81e554f8 Fix crash in geometry checker
Fixes #20408
2018-11-09 12:57:42 +10:00
Daniele Viganò
a9bc65e6fc
Add support for OpenCL in RPM 2018-11-08 22:38:28 +01:00
Alessandro Pasotti
eab40d0e4c
Merge pull request #8435 from elpaso/handle-bad-layers5
bad layers dialog new button labels and icon
2018-11-08 12:15:21 +01:00
Martin Dobias
ad1bba2ac9
Merge pull request #8438 from wonder-sk/fix-block-outside-raster-extent
Fix raster block output when block extent is outside of valid area
2018-11-08 11:56:10 +01:00
Alessandro Pasotti
ba4981a1f4 Move change data source under filter 2018-11-08 11:30:06 +01:00
Martin Dobias
872c9a10a3 Add unit test 2018-11-08 10:09:57 +01:00
Martin Dobias
528c8a63bf [3d] fix inevitable crashes when terrain bounding boxes were shown
The list of vertices just kept growing and growing (and we didn't even need another copy!)
2018-11-08 09:57:31 +01:00
Alessandro Pasotti
c74ce886dc Disable "Change data source..." action if layer is editable 2018-11-08 09:22:33 +01:00
Alessandro Pasotti
85f8ba359f Move apply button next to browse and disable keep when apply is triggered 2018-11-08 09:14:34 +01:00
Alessandro Pasotti
222f0a0355
Merge pull request #8434 from elpaso/datasource-select-dialog-additions
QgsDataSourceSelectDialog: filter, refresh and scroll to last selecte…
2018-11-08 08:39:13 +01:00
Nyall Dawson
0ba475bdfb Minor ui tweaks to afs source select dialog 2018-11-08 10:58:52 +10:00
Nyall Dawson
1066161bfd [afs] Remove 'cached' checkbox from source select dialog
This checkbox was never hooked up to anything (caching is ALWAYS
enabled for the provider).
2018-11-08 10:58:52 +10:00
Nyall Dawson
85bc01f5fc [FEATURE][AFS] Add new browser context menu entry to visit the
service info page for AFS layer/featureservice/folder items

It's very handy for troubleshooting connections and seeing
extended service properties
2018-11-08 10:58:52 +10:00
Nyall Dawson
b2d2634870 [afs] Fix missing layers/services when connection url does
not point at an individual service endpoint

Previously the provider would only show layers if a FeatureService
endpoint was used for the url, and would show nothing if
users enter the base server url.

Fix this by implementing a tree view for AFS items so that
if users enter a connection url at a higher level than we
show nested services/folders containing the layers.
2018-11-08 10:58:52 +10:00
Martin Dobias
afca644954 [gdal] Fix raster block output when block extent is outside of valid area
This was causing problems in 3D view when raster was used as DEM... terrain
tiles were generated also where they should not appear and contained random
heights that caused failures of camera center adjustment to terrain. In the areas
completely outside of raster's extent the block was being returned with some
values uninitialized (instead of having correctly set no-data values)
2018-11-07 15:07:46 +01:00
Matthias Kuhn
3e14761d79
Merge pull request #8436 from signedav/copy_2_pg
Using of QgsVectorLayerUtils::createFeature on move and copy tool
2018-11-07 15:00:55 +01:00
signedav
913719fd37 use toMap to convert to attributeMap 2018-11-07 14:20:30 +01:00
Alessandro Pasotti
0bd9021523 s/bad/unavailable/ layers 2018-11-07 14:14:26 +01:00
signedav
4ac0631774 createFeature on move and copy
using of the createFeature function with tool move and copy and there the logic of unique not null fields (like primary keys) is used.

This would fix #20347
2018-11-07 14:10:33 +01:00
Alessandro Pasotti
4e767ce2a5 bad layers dialog new button labels and icon 2018-11-07 12:13:02 +01:00
Alessandro Pasotti
f012580740 Remove double qualifier 2018-11-07 11:58:04 +01:00
Alessandro Pasotti
02ecb56d95 QgsDataSourceSelectDialog: filter, refresh and scroll to last selected item
plus:
- expand children of last selected item
- save/restore status
2018-11-07 11:08:49 +01:00