55144 Commits

Author SHA1 Message Date
Alessandro Pasotti
6372295df1 Don't use deprecated fileWriter.writeRaster 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
56a6df4d71 Fix doxy deprecated 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
be374104ea Unit tests for transform context project<->layer sync 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
3d687e5558 Add transform context to raster file writer task 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
6e0bd822f3 Get transform context from project instance in app 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
9afa5bbba6 Set transform context from layer options 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
27696e8629 Update layer transform context when adding them to a project 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
87998f7f7d Pass transformContext to raster writer 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
400e1c76ee doxy 2019-04-17 10:06:41 +10:00
Alessandro Pasotti
cd9fe8cdec Use new QgsRasterCalculator ctor with transform context 2019-04-17 10:06:41 +10:00
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