63087 Commits

Author SHA1 Message Date
Benjamin Trigona-Harany
3103538736 Add seperate mimetype for qgz 2020-05-22 12:33:28 +10:00
Alexander Bruy
255113ee09 init member variable 2020-05-22 09:28:10 +10:00
Alexander Bruy
0a6312da82 restore last used attribute table view when exiting multi-edit mode
(fix #25099)
2020-05-22 09:28:10 +10:00
uclaros
621d607362 Cleanup leftover rubberband 2020-05-22 09:27:44 +10:00
Nyall Dawson
d4a6ef0740 Don't try to update raster layer data source's if they haven't changed 2020-05-22 09:26:40 +10:00
uclaros
f3ae6c119d
Vertex tool, fix escape to stop dragging edge
and make keypress handling cleaner
2020-05-22 09:22:34 +10:00
Nyall Dawson
ef01c3c29d Dox 2020-05-22 08:40:51 +10:00
Nyall Dawson
0521c2ef16 [gps] If a GPS devices is connected and set to follow the GPS location,
block the single click navigation mode to avoid accidental map canvas
pans away from the GPS location.

(for now, we don't block click-and-drag pans, as they are less likely
to be accidentally triggered)
2020-05-22 08:40:51 +10:00
Nyall Dawson
3ebd09724b Add framework to allow for flexible interaction blocking with map canvas 2020-05-22 08:40:51 +10:00
Nyall Dawson
baec06ce4f Correctly hide GPS bearing line when unchecking the option 2020-05-22 08:40:51 +10:00
Nyall Dawson
38c82187a6 Workaround odd upstream Qt issue where a painter with a semi-transparent
brush with no solid pattern incorrectly applies the brush opacity to
the pen when exporting to printer devices

Fixes #36580
2020-05-22 07:15:17 +10:00
Nyall Dawson
150b373c7a Improve plugin watchdog message and UX
- Reword the message to clarify that it previously crashed QGIS, not
necessarily on the last session. Also make the message shorter to fit
into normal messagebar width
- Add "Enable Plugin" button to the message, which clears the watchdog
status for the plugin and immediately reloads it
- Add "Ignore" button, which stops the message showing on subsequent
startups. Otherwise the only way to clear this message is to manually
go to plugin manager and enable/disable the plugin
2020-05-22 07:14:56 +10:00
Nyall Dawson
5cc0f0964b Fix resetting fields in Refactor Fields algorithm dialog 2020-05-22 07:14:14 +10:00
Nyall Dawson
169ca650fe [processing] Fix exception when changing layer in Refactor Fields algorithm
Fixes #36582
2020-05-22 07:14:14 +10:00
nirvn
011168f93d Fix missing navigation disabled label when opening temporal controller panel after launch 2020-05-21 17:31:24 +07:00
nirvn
00ff55caff [ui] Improve spacing and margin of temporal controller panel 2020-05-21 17:31:24 +07:00
nirvn
7ee0fce60f [ui] Improve temporal controller toolbar icon 2020-05-21 15:48:00 +07:00
Nyall Dawson
6ce84d2c34 [layouts] Warn when previewing an atlas and a feature with no geometry
is encountered, when one or more maps are set to be driven by atlas feature

This situation is definetly not what the user is expecting -- so we
show a warning to them to advise them that the feature has no geometry.

Fixes #36556
2020-05-21 16:18:47 +10:00
nirvn
cf0467a373 [themes] Fix slider 'fill' missing in themes and improve looks of night mapping theme slider 2020-05-21 12:18:20 +07:00
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