55184 Commits

Author SHA1 Message Date
Alessandro Pasotti
8bdfc7cd80 Drop comment 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
86b7345ce5 Use transform context from rw context 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
ac04339434 Pass transform context to raster calculator 2019-04-17 10:06:41 +10:00
Nyall Dawson
4e747d2c52 Update src/core/qgsmaplayer.h
Co-Authored-By: elpaso <elpaso@itopen.it>
2019-04-17 10:06:41 +10:00
Nyall Dawson
a5d3b93a45 Update src/core/mesh/qgsmeshlayer.h
Co-Authored-By: elpaso <elpaso@itopen.it>
2019-04-17 10:06:41 +10:00
Nyall Dawson
4e244521b3 Update src/core/layout/qgslayoutitemmapoverview.cpp
Co-Authored-By: elpaso <elpaso@itopen.it>
2019-04-17 10:06:41 +10:00
Alessandro Pasotti
23d6ef6246 Remove test case (API is not public anymore) 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
0d7841a0d8 Fix grass alg combineLayerExtents 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
bdd7a1cc77 Remove build warnings 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
6d55e72648 More doxy 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
39bb361dea Missing doc in an unrelated class :( 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
394a189682 Fix class documentation 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
654a78d6ff Raster transform context 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
b3a448a2b2 Do not store context in layer (but in provider) ...
... also use transform context in raster projector
and deprecate setCrs without context
2019-04-17 10:06:41 +10:00
Alessandro Pasotti
7f52e2938a doxy 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
7b6f9c0dbc Restore default ctor for options and layer 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
0d7cceab0c Fix test build 2019-04-17 10:06:41 +10:00
Nyall Dawson
8ae914387a Some build fixes 2019-04-17 10:06:41 +10:00
Nyall Dawson
bfe92c4632 Fix use of deprecated/removed coordinate transform constructor 2019-04-17 10:06:41 +10:00
Nyall Dawson
b6bc1ee2d4 Tweak QgsProcessingUtils::combineLayerExtents for future proofing, remove deprecated usage 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
82f2cb18b2 Deprecate default ctor for mesh layer options 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
f8dfdc4aa0 Deprecate method without transformContext 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
e930bee9e2 Add mandatory options to QgsVectorLayer ctor
... and deprecate the rest.

In QGIS 4 we'll have to get rid of the deprecated default ctor and
create a new one which takes no arguments.
2019-04-17 10:06:41 +10:00
Alessandro Pasotti
6813a55fce Deprecate vector layer ctor with default constructed options
replaced by QgsVectorLayer( const QgsVectorLayer::LayerOptions &options,
...
2019-04-17 10:06:41 +10:00
Alessandro Pasotti
f5bc1c7196 Use options from provider ctor 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
bad0fe42d8 Removed leftover 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
4614c3e0bd Dox typos 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
5f3dc50ccc Remove deprecated QgsCoordinateTransform ctor ...
... and add a getter for coordinateTransform to QgsMapLayer

The reason is that I think we should reduce the dataProvider API
usage and rely on the higher level QgsMapLayer API whenever it
is possible, QgsMapLayer checks for data provider validity
and returns a default constructed QgsCoordinateTransform instead
of crashing.
2019-04-17 10:06:41 +10:00
Alessandro Pasotti
7f271d1ebd More coordinateTranformContext -> tranformContext 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
470759833e coordinateTransformContext -> transformContext for consistency
I like "coordinateTransformContext" more btw.
2019-04-17 10:06:41 +10:00
Alessandro Pasotti
df2bdf9c1a Handle the coordinate tranform context in the layer ctor
Also use the context when read/write XML by passing it
in the R/W context
2019-04-17 10:06:41 +10:00
Alessandro Pasotti
696264927f Remove unused fwd declaration 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
71698bf707 Remove all deprecated usages of QgsCoordinateTransform without context 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
cb430c143e Fix deprecated PUSH/POP 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
3d5e67e72c Fix SIP (sipify does not like inline initializers) 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
dcf206232c Step2 of coordinate traform context passing: SIP broken 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
c21cd35fe0 Add coordinate transform context to data provider options
First step to pass the context down into the rabbit hole.
2019-04-17 10:06:41 +10:00
Nyall Dawson
f947ffb5b1 Fix loss of renderer style after fixing a layer with a bad path 2019-04-17 05:18:22 +10:00
vcloarec
bed3da4308 fix QgsLayerTreeModel::refreshLayerLegend (#9785)
* fix QgsLayerTreeModel::refreshLayerLegend

Guard if the QModelIndex (idx) has no children.

* Update qgslayertreemodel.cpp

* Update qgslayertreemodel.cpp

* Update qgslayertreemodel.cpp

* Apply suggestions from code review

Co-Authored-By: vcloarec <vcloarec@gmail.com>
2019-04-16 17:37:26 +02:00
Alessandro Pasotti
e8a7d0e979 Guard vector file writer against invalid layers
instead of crashing.

Fixes #21856

Funded by: QCooperative.net
2019-04-16 13:27:47 +02:00
Matthias Kuhn
b90a01847f
Prefer parameterAsBoolean over parameterAsBool 2019-04-16 08:30:00 +02:00
Juergen E. Fischer
891ea18bab debian packaging: add ubuntu disco 2019-04-15 23:38:20 +02:00
Alessandro Pasotti
0e9428b652
Merge pull request #9787 from elpaso/request-21787-identify-links
Clickable links in identify results from GetFeatureInfo
2019-04-15 16:46:36 +02:00
Alessandro Pasotti
2895a64036 Const storage on list of formats 2019-04-15 14:46:59 +02:00
Alessandro Pasotti
0acc0565e4 Open identify links in external browser
Fixes #21787
2019-04-15 14:46:59 +02:00
Alessandro Pasotti
d24e6fd53b Use logical DPI instead of physical 2019-04-15 14:43:00 +02:00
Matthias Kuhn
4771f802fc
Add QgsProcessingParameters::parameterAsBoolean for consistency 2019-04-15 14:08:41 +02:00
Matthias Kuhn
04409ac725
Merge pull request #9786 from m-kuhn/app_no_qforeach
No more Q_FOREACH in app
2019-04-15 10:24:51 +02:00
Matthias Kuhn
2f3646a142
Remaining Q_FOREACH to for changes 2019-04-15 09:27:17 +02:00
vcloarec
f86d8de4e8 fix the QgsMeshLayerProperties constructor
In constructor, if HAVE_3D is defined, the "mVector3DWidget is constructed with the mapCanvas instance of the QgisApp instance instead with the QgsMapCanvas instance which is an argument of the constructor.
2019-04-15 09:02:28 +02:00