63068 Commits

Author SHA1 Message Date
nirvn
e5f79fd5b0 [ui] Update temporal controller icons to be dark theme friendly 2020-05-21 12:10:07 +07:00
Nyall Dawson
24b1851801 Fix localized data test on windows 2020-05-21 11:04:52 +10:00
lbartoletti
600f93aa56
[GPS] Fix error when vector layer has Z
add elevation from GPS to point3D. Fixes #32016
2020-05-21 09:07:00 +10:00
nirvn
de799721aa Map decoration cleanup:
- code simplification (moving displayName() to the core class
prevents us having to create lists of DecorationItem alongside
lists of MapDecoration
- Proper translation support for decoration names
2020-05-21 09:05:28 +10:00
Nyall Dawson
6baa209285 Avoid proj 'object is not a concatenated operation' warnings 2020-05-21 05:57:54 +10:00
Nyall Dawson
e23a49a6b8 Fix memory layers lose CRS definition if it does not have an authority
associated with it

Fixes #36241
2020-05-21 05:57:25 +10:00
Nyall Dawson
f20801a8bb Implement spatial index detection for OGR provider
Provides warnings in Processing algorithms when running on layers
which don't have a spatial index present (e.g. geojson files) and
where performance will be severely hurt as a result

Fixes #30530
2020-05-21 05:56:56 +10:00
Nyall Dawson
2099261230 Fix incorrect dialog title for raster layer properties
Fixes #35510
2020-05-21 05:56:28 +10:00
vcloarec
24ee3583a2 fix typo and doc 2020-05-21 05:54:24 +10:00
vcloarec
267af1e7fb temporal match methods 2020-05-21 05:54:24 +10:00
vcloarec
daab0eace4 fix #36463 2020-05-21 05:54:24 +10:00
Martin Dobias
d48c17816f
Fix misalignment of rasters with RPC (fixes #35796) (#36385)
* Fix misalignment of rasters with RPC (fixes #35796)

By default GDAL would assume that the imagery has zero elevation - if that is not the case,
the image would not be shown in the correct location. Fortunately we can pass RPC_HEIGHT
to GDAL to use given value as the fixed elevation for the whole image.

We try to use HEIGHT_OFF coefficient ("Geodetic Height Offset") as an estimate for elevation
(it seems that ENVI software does that as well). In the future we may want to use also
RPC_DEM for an even more precise georeferencing.

https://gdal.org/development/rfc/rfc22_rpc.html

* Update code to use the new fuction GDALAutoCreateWarpedVRTEx()

This function will be available in GDAL >= 3.2 so we have a local
copy for the time being for older versions of GDAL.
2020-05-20 17:38:01 +02:00
Alexander Bruy
7053b78ac6
Merge pull request #36554 from alexbruy/copy-variable
use value from context when copying variables from the editor widget (fix #30641)
2020-05-20 11:22:44 +03:00
Nyall Dawson
9a0a1297c2 Fix capitalization for many combo box items 2020-05-20 18:21:57 +10:00
Nyall Dawson
92ebf7bc8d [processing] Fix running script algorithm from editor dialog
We have to keep a local reference to the dialog, otherwise sip suddenly
"forgets" about the python subclass and treats the dialog as just
the parent c++ class. Really weird, thanks sip.

Fixes #36436
2020-05-20 18:21:02 +10:00
Denis Rouzaud
b48c70f759
compile custom widgets on Docker image (#36571)
* compile custom widgets on Docker image 

fixes #36544

* Update qgis.dockerfile
2020-05-20 10:18:43 +02:00
Nyall Dawson
af1e058267 Update test results
The forced conversion to multigeometries was a mistake -- the new
test results with single geometries is correct.
2020-05-20 17:09:48 +10:00
Nyall Dawson
aa175e3863 Fix tests 2020-05-20 17:09:48 +10:00
Nyall Dawson
a28c8edba9 Ensure bounds are always rendered over features 2020-05-20 17:09:48 +10:00
Nyall Dawson
1d33ddfdc9 Add unit test 2020-05-20 17:09:48 +10:00
Nyall Dawson
ef97e8c6fc [symbology] When rendering features, split the geometry fetching
and preparation stage from the symbol layer rendering stage, and
ensure that QgsSymbolLayer::startFeatureRender and ::stopFeatureRender
is correctly called in the right sequence when rendering multi-layer
symbols

This fixes issues with symbol layers which rely on startFeatureRender
and stopFeatureRender to correctly render, e.g. the Random Marker Fill
symbol layer.

Before this fix, the logic looked like:

- for every symbol layer in the symbol, call startFeatureRender
- for each part in polygon, prepare the part geometry and then render each symbol layer
- for every symbol layer in the symbol, call stopFeatureRender

The issue with this approach is that symbol layers which defer
rendering to the stopFeatureRender stage are always rendered
after ALL other symbol layers in the symbol, regardless of the actual
order of the symbol layers. Ultimately this causes Random Marker Fill
layers to always render on the top of symbols.

The new logic is:
- for each part in polygon, prepare the geometry and store the result
- for each symbol layer in the symbol:
   - call startFeatureRender
   - render the layer using each of the previously prepared parts
   - call stopFeatureRender

This results in correct stacking of the random marker fill in multi
layer symbols, because the stopFeatureRender call is correctly called
before the next layer's startFeatureRender and renderPolygon calls

Also, use QVector instead of QList for rings for improved efficiency
2020-05-20 17:09:48 +10:00
Harrissou Sant-anna
ea4f2bbfb9 Making lists in PyQGIS doc look better
and fix some wording
2020-05-20 16:39:42 +10:00
Etienne Trimaille
4587cc1484 review help about maptip and display_expression 2020-05-20 13:53:43 +10:00
Nyall Dawson
180ec5389b Sipify 2020-05-20 12:40:40 +10:00
Nyall Dawson
62268e2b89 Use unique_ptr for owned object, and cleanup include in header
which was causing of cascade of unnecessary includes
2020-05-20 12:40:40 +10:00
Nyall Dawson
f49067cf27 Documentation improvements 2020-05-20 12:40:19 +10:00
Jan Caha
c13c416e71 [feature][expression] add ByteArray case to run_evaluation_test function 2020-05-20 12:40:19 +10:00
Jan Caha
f7562f83f9 [feature][expression] tests for from_base64 and to_base64 2020-05-20 12:40:19 +10:00
Jan Caha
8b55e996f9 [feature][expression] fix base64 expression according to suggestions by @nyalldawson 2020-05-20 12:40:19 +10:00
Jan Caha
0b260248dc remove variableLenArguments from help 2020-05-20 12:40:19 +10:00
Jan Caha
988ac20647 [feature][expression] base64 to and from helps 2020-05-20 12:40:19 +10:00
Jan Caha
357bc1d1d7 [feature][expression] base64 to and from 2020-05-20 12:40:19 +10:00
lbartoletti
c6773a4fea Fix build 2020-05-20 10:31:27 +10:00
Even Rouault
7762168e77 QgsArcGisRestUtils::parseCompoundCurve(): fix crash on CircularString / "c"
Spotted by cppcheck

Independently of this fix, it looks like the geometry building when
mixing linestrings and circularstrings would need some more love...
2020-05-20 08:24:39 +10:00
Even Rouault
996d812fee QgsColorRampButton::setColorRamp(): fix null pointer dereference
when colorramp argument was nullptr, which could occur when called from
QgsColorRampButton::setToNull()
The logic to detect if the colorramp was changed was convoluted and
wrong too.

Spotted by cppcheck
2020-05-20 08:24:39 +10:00
Even Rouault
146e1e2241 QgsProcessingModelComponent: avoid cppcheck warnings about nullptr comment()
As base comment() implementation returns nullptr, and is virtual, it could
be possible in theory that subclasses return during the first call a non-nullptr
and then a nullptr...
2020-05-20 08:24:39 +10:00
Even Rouault
18a95c2c2f QgsRasterLayerZonalStatsAlgorithm::processAlgorithm(): fix (likely false positive) nullPointer cppcheck warning
cppcheck warned about potential null pointer dereference of rasterBlock and
zonesRasterBlock at line 242
```
if ( !rasterBlock->isValid() || rasterBlock->isEmpty() || !zonesRasterBlock->isValid() || zonesRasterBlock->isEmpty() )
```

It is likely that the logic about correctly prevented those null pointer from
arising, but this wasn't immediately obvious. Make it so
2020-05-20 08:24:39 +10:00
Nyall Dawson
b292f38306 Fix ui build warning 2020-05-20 08:13:40 +10:00
Juergen E. Fischer
facceb6931 debian packaging: verify absence of Qt3DExtras system headers before
falling back to internal copy
2020-05-19 23:44:05 +02:00
Nyall Dawson
882b6855f2 Fix edit button shows incorrectly 2020-05-20 06:32:16 +10:00
Denis Rouzaud
cc19fa1d13
Merge pull request #36421 from 3nids/basemap_path
Registry for localized data paths
2020-05-19 21:27:51 +02:00
lbartoletti
8249dccfdd
Fix rectangle from 3 points
Fixes #35043, fixes #35671

The initial version of this class presupposed the possibility of constructing a rectangle by 3 points where each point had a  Z. Very useful to make 3D plans, but this is not always what we want...
2020-05-20 05:03:40 +10:00
uclaros
e6fef7af63 also fix return for empty parameter point 2020-05-20 05:01:20 +10:00
uclaros
0f3a6f030c test added 2020-05-20 05:01:20 +10:00
uclaros
24cda403da why u no sipify? 2020-05-20 05:01:20 +10:00
uclaros
0beee90f09 Return empty point instead of point( 0, 0 ) 2020-05-20 05:01:20 +10:00
Nyall Dawson
d03d190cb3 Fix runtime profiler handling of profile names with '/' characters 2020-05-20 04:55:46 +10:00
Nyall Dawson
15b318b50d Don't try to identify CRSes created just for ellipsoid definitions
These don't correspond to standard CRSes, and by avoiding the identification
we shave a considerable time off QGIS startup (about 1/3rd on my machine!)
2020-05-20 04:55:46 +10:00
Nyall Dawson
0acb7fcc29 Add API to skip identification of CRS created from proj strings
The identification can be time consuming, so in the rare cases that
we are SURE that the definition doesn't correspond to a known or
user CRS, we can optionally skip it to save some time.
2020-05-20 04:55:46 +10:00
Nyall Dawson
a2e8cdedf1 More startup profile hooks 2020-05-20 04:55:46 +10:00