6908 Commits

Author SHA1 Message Date
Nyall Dawson
6c6f3c1e34 Remove deprecated members from QgsMapLayer 2016-07-15 06:02:45 +10:00
Nyall Dawson
7d2027faa9 Fix most remaining methods which return a reference to
QgsCoordinateReferenceSystem or which take a pointer to a
CRS
2016-07-15 06:01:39 +10:00
Nyall Dawson
726569c6bc QgsMapLayer::crs() now returns a copy, not a reference
(desirable because QgsCoordinateReferenceSystem is implicitly shared)
2016-07-15 06:00:51 +10:00
Nyall Dawson
a2efab0485 Make QgsVectorLayerImport use QgsCoordinateReferenceSystem
references, not pointers
2016-07-15 06:00:11 +10:00
Nyall Dawson
e683101b10 Make QgsVectorDataProvider::fields() return a copy
Implements a QGIS 3.0 TODO
2016-07-15 05:59:02 +10:00
Nyall Dawson
1bafa80089 Const correctness for numerous data provider methods 2016-07-15 05:57:57 +10:00
Nyall Dawson
fd42ed3145 Use reference rather than pointer for crs in QgsVectorFileWriter
Since QgsCoordinateReferenceSystem is implicitly shared, it's a
safer approach
2016-07-15 05:57:03 +10:00
Nyall Dawson
2db7fca7a6 [processing] Add tests for clip algorithm 2016-07-14 08:05:59 +10:00
Nyall Dawson
258c8999ef Merge pull request #3303 from nyalldawson/identify_url
Make links in identify results clickable
2016-07-14 07:17:01 +10:00
Nyall Dawson
2f8c6f5207 [composer] Add a checkbox for legends to prevent automatic resizing
A new checkbox has been added to the legend settings to control
whether or not a legend should be automatically resized to fit
its contents.

If unchecked, then the legend will never resize and instead just
stick to whatever size the user has set. Any content which
doesn't fit the size is cropped out.

Refs #10556

On behalf of Faunalia, sponsored by ENEL
2016-07-13 17:35:44 +10:00
Nyall Dawson
05ced6797d Followups and fixes to identify results linking 2016-07-13 16:01:57 +10:00
Nyall Dawson
9e1ddcb54d [processing] Allow modification of feature request when using
vector.features

Allows for optimising the request through subsets of attributes
or no geometry fetching
2016-07-13 12:06:41 +10:00
Matthias Kuhn
ae3db0a1bf Fix single process build
A race condition triggered that sometimes the file
output/python/qgis/__init__.py was not created before a python uic
compiler started and therefore the required module could not be
imported.

This leads to errors like

[ 82%] Generating ui_dialogAbout.py
Traceback (most recent call last):
  File "../../../../../scripts/pyuic-wrapper.py", line 26, in <module>
    import qgis.PyQt.uic.pyuic
ImportError: No module named qgis.PyQt.uic.pyuic
python/plugins/GdalTools/tools/CMakeFiles/zzz-GdalTools-2-depend.dir/build.make:117:
recipe for target 'python/plugins/GdalTools/tools/ui_dialogAbout.py'
failed
make[2]: *** [python/plugins/GdalTools/tools/ui_dialogAbout.py] Error 1
CMakeFiles/Makefile2:5074: recipe for target
'python/plugins/GdalTools/tools/CMakeFiles/zzz-GdalTools-2-depend.dir/all'
failed
make[1]: ***
[python/plugins/GdalTools/tools/CMakeFiles/zzz-GdalTools-2-depend.dir/all]
Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
2016-07-12 11:40:00 +02:00
Martin Dobias
c5d8cc7fbc Added missing & in setTitle in SIP 2016-07-11 12:46:17 +02:00
Nyall Dawson
d3582abbf6 [FEATURE] Mouse wheel over sliders in color dialog to change value by
increments
2016-07-11 10:27:16 +10:00
Nyall Dawson
4145e337ab Add missing SIP bindings 2016-07-11 08:42:52 +10:00
Juergen E. Fischer
2eee2e5c9c fix typos and debian/copyright 2016-07-10 14:20:07 +02:00
Juergen E. Fischer
daea10c126 support utf-8 encoded release names
(cherry picked from commit c9838ccea481c8ca87c4e1647099cfe78777e795)
2016-07-10 12:09:29 +02:00
Juergen E. Fischer
e451b9ad6f indentation and spelling fixes 2016-07-08 12:59:38 +02:00
Salvatore Larosa
43334df6d8 [pyqgis-console] APIs file updated 2016-07-08 12:23:51 +02:00
Nathan Woodrow
b1de246e84 const fixes 2016-07-08 10:54:58 +10:00
Nathan
e4080edaa7 Streamline QgsMapLayerConfigWidgetFactory interface 2016-07-08 08:19:15 +10:00
Matthias Kuhn
b83aab7d74 Save attribute table sort order persistently
Fix #15235
2016-07-07 17:35:55 +02:00
Matthias Kuhn
febcabb0da Make using recent expressions API simpler and add doxygen comment 2016-07-07 16:39:13 +02:00
Matthias Kuhn
56a0af5bd8 Sort attribute table by representation value where useful
Fix #15096
And aligns some edge-cases of sort behavior
2016-07-07 16:39:13 +02:00
Martin Dobias
cca79aa2f4 Fix loss of transparency information in style dock (fixes #15229) 2016-07-07 14:01:28 +02:00
Nathan
e097443771 Fix globe plugin 2016-07-07 10:27:04 +10:00
Martin Dobias
1c91ae7733 Show breadcrumb and back button for rule based labeling (fixes #15153)
Following the way how rule based rendering widget was adjusted...
2016-07-06 21:48:39 +02:00
Nathan
fdf16e3c92 Rename QgsLayerStylingPanelFactory to QgsMapLayerConfigWidgetFactory
- Move QgsMapLayerPropertiesFactory into single factory object for
  dock and properties
2016-07-06 23:03:43 +10:00
Martin Dobias
47eae5865a [processing] Fix preconfigured alg creation (fixes #15100) 2016-07-05 19:32:33 +02:00
Nyall Dawson
fd88d91bde Use QgsCRSCache in more places 2016-07-05 15:59:15 +10:00
Nyall Dawson
867dbe53de Make QgsCRSCache thread safe 2016-07-05 13:51:00 +10:00
Nyall Dawson
339d061693 Use QgsCRSCache instead of looking up CRS by srs id (refs #15193) 2016-07-05 13:35:01 +10:00
Nyall Dawson
9139872c9e Fix crash when using add circular string by radius tool 2016-07-05 11:42:59 +10:00
Nyall Dawson
5c270ebeb0 Fix first range when exporting graduated renderer to sld (fix #15212) 2016-07-05 09:56:57 +10:00
Nyall Dawson
a240cd8f8e Replace doxygen MapComposer group with core/gui
Since the MapComposer group doesn't actually exist
2016-07-04 19:57:13 +10:00
Nyall Dawson
1a08f0ab53 Add full test suite for QgsMapLayerRegistry, also don't emit
any layer removed signals when no layers will actually be
removed
2016-07-04 12:26:25 +10:00
Nyall Dawson
6b3cb245a9 Cleanups to QgsMapLayerRegistry
- const correctness
- improve and clarify docs, remove outdated notes
- add some QGIS 3.0 todos
2016-07-04 12:26:25 +10:00
Matthias Kuhn
15c2f0a902 Make QgsMapLayer::name a Q_PROPERTY (#3259)
Make QgsMapLayer::name a Q_PROPERTY

And align setName / name / nameChanged

Deprecates setLayerName / layerNameChanged
2016-07-04 01:10:10 +02:00
Matthias Kuhn
143cfab104 [processing] Difference: don't ignore invalid geometries by default
Fix #9297
2016-07-04 00:43:36 +02:00
Juergen E. Fischer
a6954b2771 [dbmanager] re-enable line number again (followup 5e36de7 and d9f934f) 2016-07-03 20:22:13 +02:00
Matthias Kuhn
f6710b0528 python3 fixes 2016-07-03 14:54:26 +02:00
Matthias Kuhn
5e36de70b0 [dbmanager] Fix error when opening SQL window 2016-07-03 14:48:17 +02:00
Matthias Kuhn
c277e6e55e Fix tests, partially reverts ff1f9cf 2016-07-02 18:55:22 +02:00
Matthias Kuhn
ff1f9cf595 Doxymentation for QgsVectorLayer signals 2016-07-02 18:09:19 +02:00
Martin Dobias
5f6627624e Fix incorrectly loaded sublayers if they had the same name (fixes #15168)
Use "layerid=N" instead of "layername=XYZ" for OGR sublayers
2016-06-30 14:28:06 +02:00
Nyall Dawson
19564672c2 Fix raster load min/max from extent in style dock (fix #15171) 2016-06-30 18:25:20 +10:00
Nyall Dawson
1729531773 Don't transform z coordinates by default
Since z coordinates can represent potentially any height
unit and reference point, it's not safe to assume that they
always represent height in metres relative to the ellipsoid.

Instead, leave z values untouched by default with geometry
transforms, and make transforming z an optional parameter

Refs #14702
2016-06-30 07:38:13 +10:00
Alexander Bruy
a12152c724 Merge pull request #3238 from medspx/processing_g7_raster_tests
[processing] more grass7 unit tests and their fixes
2016-06-29 19:49:58 +03:00
Alexander Bruy
0f6e8da645 Merge pull request #3234 from aharfoot/GDALTools_bugfix
fix bug in GDALTools Assign Projection
2016-06-29 19:17:06 +03:00