51158 Commits

Author SHA1 Message Date
Richard Duivenvoorde
fc7df32571 Make values in attribute form better readable
Currently in readonly modus of a form, the line-edits get
a 'disabled'-palette. But because text is then so light readability
is bad.
Removing the palette make the lineedits look like they are writable
input fields. So to distinguish them from input field, the frame
is removed and the background (of the lineEdit) is set to almost
transparent.
2018-09-30 08:28:57 +10:00
Matthias Kuhn
db65b9a8fc Add QgsRubberBand::setToGeometry with crs parameter 2018-09-30 08:28:05 +10:00
Denis Rouzaud
e2aa0b715b explicitely call int version of former calls to toMapCoordinates 2018-09-29 15:48:05 -04:00
rldhont
ad7d03c64f
Merge pull request #7859 from rldhont/fix-server-sld-param-support
[Bugfix][Server] Add WMS SLD parameter support
2018-09-29 18:10:54 +02:00
Denis Rouzaud
157ba0f4be QgsMapToPixel API cleanup
* overload toMapCoordinates to also take double (use different PyName)
* deprecate toMapPoint which is strictly equivalent to toMapCoordinates
2018-09-29 11:05:54 -04:00
Denis Rouzaud
110c8a01f2 use float precision for screen coordinates
this should fix rounding error when the map canvas has an odd pixel size
2018-09-29 10:21:57 -04:00
Denis Rouzaud
8ec5fec280
remove useless invokable methods (#8059)
having invokable on overloaded methods taking enum as parameter is pretty useless as it is seen as an integer
the last declared was used: e.g. the one with LayoutUnit for toAbbreviatedSring
this commit only keeps the ones for DistanceUnit which is the most likely to be used
2018-09-29 03:28:26 -08:00
Matthias Kuhn
6d97af0d14
Fix link 2018-09-29 11:35:42 +02:00
Alessandro Pasotti
b395488b4f
Merge pull request #8052 from elpaso/bugfix-19930-spatialite-query
Fix spatialite queries without pk
2018-09-29 08:02:47 +02:00
Denis Rouzaud
2f7666e34a
fix requesting CRS for layer without geometry (#7771) 2018-09-28 17:24:30 -08:00
Juergen E. Fischer
a6c3b812e6 add appinfo metadata source dependency 2018-09-29 00:14:36 +02:00
Denis Rouzaud
f58cc38115 mark static methods as such 2018-09-29 07:38:40 +10:00
Nyall Dawson
94b10829ee Micro optimization: very slightly cheaper QgsFeature::initAttributes call 2018-09-29 07:38:15 +10:00
Nyall Dawson
8ae35de44b Replace deprecated call 2018-09-29 07:37:53 +10:00
Nyall Dawson
9698444f4a [processing] Fix inefficiencies in Delete Duplicate Geometries algorithm
..and make progress bar more accurate.

Use a spatial index to avoid comparing every feature to every other
feature, and only compare against features with intersecting bounding
boxes instead. Also optimise feature requests and loop logic.

Benchmarks:

Point layer, 6000k features

Before: 30 seconds
After: 0.15 seconds

Point layer, 45k features

Before: > 10 minutes
After: 7 seconds

Fixes #19973
2018-09-29 07:37:53 +10:00
Nyall Dawson
6110931f8a Rename QgsSpatialIndex::insertFeature to ::addFeature, for consistency
with other classes

And make QgsSpatialIndex a QgsFeatureSink
2018-09-29 07:37:53 +10:00
Blottiere Paul
63f597f934
Merge pull request #8040 from pblottiere/server_highlight_line
[server] Fixes #19906 - GetMap request with line in the SLD is correctly rendered
2018-09-28 17:07:26 +02:00
Matthias Kuhn
7ba19dd05f
Cleanup leftover file 2018-09-28 15:26:08 +02:00
Matthias Kuhn
93fe72262a
Indentation and typo fix 2018-09-28 15:25:00 +02:00
Matthias Kuhn
514d09bb0a
Fix rebase problems 2018-09-28 15:21:03 +02:00
Matthias Kuhn
0e52074e58
Remove duplicate flags and rename is valid check 2018-09-28 14:53:11 +02:00
Matthias Kuhn
7af61a4cfd
Fix missing vertex check 2018-09-28 14:14:36 +02:00
Matthias Kuhn
903e94331f
Doxygen 2018-09-28 13:59:42 +02:00
Matthias Kuhn
bee5470e10
Python bindings for QgsGeometryCheck and co
Adds

 - python bindings
 - geometry check factory
 - geometry check registry
 - QgsFeedback for geometry checks (lots of potential still)
 - An IsValid geometry check
 - Splits classes into their own files
 - Decouples feature pools from the configuration context
2018-09-28 13:33:24 +02:00
Alessandro Pasotti
dc15ae1ff7 Spelling 2018-09-28 12:06:06 +02:00
Alessandro Pasotti
f1b2893b48 Move table name variable to local 2018-09-28 11:05:27 +02:00
Alessandro Pasotti
9e9f0d6d5a Remove debug output 2018-09-28 11:02:08 +02:00
Alessandro Pasotti
a02d448ba6 [spatialite] Fix pk-less queries cannot be retrieved by id
Fixes #1993 - Zoom to feature" does not work

This actually fixes many more bugs related with the
QGIS generated feature id (incremental) when using
queries that was not consistent when using
QgsFeature request with ids or bbox.

This is not a regression: the same error is in 2.18
2018-09-28 10:29:23 +02:00
Blottiere Paul
5496442ca1 Add mask image 2018-09-28 08:42:18 +01:00
Martin Dobias
1a61885254 3D view: allow usual camera controls while the identify tool is active
A small usability improvement... until now one would need to disable
identify tool before being able to move/zoom/rotate the camera in 3D view
and then enable identify tool again. Now camera can be controlled
while the tool is active and the tool is easier to use.
2018-09-28 09:12:24 +02:00
Nyall Dawson
68426d641d Add missing file 2018-09-28 14:25:38 +10:00
Nyall Dawson
308d7136b4 [processing] More fixes to convertToCompatibleFormat, lots of unit
tests

Fixes #19938
2018-09-28 14:25:38 +10:00
Nyall Dawson
737ab3069a [processing][gdal] Correctly handle geopackage paths with layername argument
Fixes #19938
2018-09-28 14:25:38 +10:00
Nyall Dawson
7a45702b83 [processing][gdal] Fix stylesheet for gdal algorithms 2018-09-28 14:25:38 +10:00
Nyall Dawson
7977450796 [processing][ogr] Fix conversion of non-disk based layer sources
to GDAL commands

Fixes #19946
2018-09-28 13:36:50 +10:00
Nyall Dawson
f1ced30ee2 Fix dox 2018-09-28 13:17:12 +10:00
Nyall Dawson
39d148612b Optimise conversion of geometry from OGR -> QGIS
Avoid conversion to/from WKB at OGR/QGIS side, and just directly
utilise OGR geometry API to construct QGIS geometries.

Shaves ~10% off rendering time for a large point layer (GPKG)
2018-09-28 13:17:12 +10:00
Nyall Dawson
2f214c66fa Fix qgis_bench 2018-09-28 13:17:12 +10:00
Nyall Dawson
e8f3dbdd7b Fallback to old method if decodeUri returns an empty map 2018-09-28 12:26:43 +10:00
Nyall Dawson
e433a10567 Use decodeUri to make bad layers file parsing more stable 2018-09-28 12:26:43 +10:00
Harrissou Sant-anna
0396abfd01 [needs-docs] Review the Dissolve algorithm description
* The current description focuses on geometries and assumes only line or vector layers can be dissolved
* Rename label to look more meaningful and closer to GDAL Dissolve's
2018-09-28 10:20:11 +10:00
Harrissou Sant-anna
b478ee750c Fix "Array of offset lines" algorithm 2018-09-28 10:19:31 +10:00
Harrissou Sant-anna
9e5cc4b76b Fix array of translated features algorithms 2018-09-28 10:19:31 +10:00
rldhont
b9f20b0ebe
Merge pull request #7902 from rldhont/server-wfs-format-field
[Bugfix][Server][WFS] Server wfs format field
2018-09-27 23:03:10 +02:00
rldhont
907c1a9e81 [Server] Localize loadUrl messages in log 2018-09-27 21:10:46 +02:00
rldhont
00cfe7da2b [Server] Use QgsNetworkContentFetcher to loadUrl 2018-09-27 21:08:33 +02:00
rldhont
34009d3fb9 [Tests][Server] Add test for WMS SLD parameter and move SLD_BODY test 2018-09-27 21:08:33 +02:00
rldhont
c15f05b4c9 [Bugfix][Server] Add WMS SLD parameter support
Fixed #19795 QGIS Server 3 / WMS: the SLD parameter support has been removed

To reactivate SLD parameter support, we add a new conversion capability in server parameter `toUrl`. And the capabilty to load the content associted to an URL.

Then if the SLD parameter is defined, the content is loaded and the SLD_BODY is set.
2018-09-27 21:08:33 +02:00
Denis Rouzaud
3a70f88fa0
expand layer tree in project properties to take vertical space (#8042)
* expand layer tree in project properties to take vertical space

* remove spacer
2018-09-27 09:58:03 -08:00
Blottiere Paul
210a1fe1e7 Update unit test 2018-09-27 16:25:29 +01:00