20942 Commits

Author SHA1 Message Date
Loïc Bartoletti
4a3c6c9bc0
Merge pull request #48166 from nicogodet/fix-48139
Remove `*` from filename when saving a non previously saved script
2022-04-12 13:59:13 +02:00
Martin Dobias
74687cdabd
Merge pull request #48179 from nyalldawson/profile_feature
Add a tool to profile dock to generate an elevation profile for an existing line feature
2022-04-12 04:22:40 -07:00
Nyall Dawson
9001d8eccb Show a marker on the canvas corresponding to the hovered profile plot point 2022-04-12 02:29:11 -07:00
Nyall Dawson
4c31c81f13 Show a crosshairs over the profile plot as the mouse is moved around 2022-04-12 02:29:11 -07:00
Nyall Dawson
ad80958798 Make vector layer profile chart results default to respecting layer
symbology, and add checkbox to disable this in their elevation
properties page

This means that vector results in elevation profile charts will default
to showing features using their corresponding 2d renderer, allowing
eg categorized classes to be visible on the profile chart. (In the
case that a profile symbol type doesn't match the layer's renderer
symbol types, we just take the symbol color from the renderer)
2022-04-12 02:17:02 -07:00
Martin Dobias
3765629919
Merge branch 'master' into profile_feature 2022-04-12 02:09:49 -07:00
Nyall Dawson
904a312f40 Add method to sort a list of layers by layer type 2022-04-12 02:08:39 -07:00
Nyall Dawson
a4585e355e Move duplicated code for finding features from all layers on canvas to a common static function 2022-04-12 11:07:34 +10:00
nicogodet
c7207f58f1 Remove asterisk from file name when using Save 2022-04-11 08:22:33 +02:00
nicogodet
b8b2ceed95 Remove asterisk from file name when using Save As... 2022-04-11 08:22:20 +02:00
Juergen E. Fischer
30e6901931 fix msvc build 2022-04-11 09:54:00 +10:00
Juergen E. Fischer
4fb5e0a11d processing: fix scripts directory reset on windows 2022-04-11 09:50:16 +10:00
Nyall Dawson
4eede35d55 Allow any symbol to be an animated symbol
Users can now indicate that a symbol should be treated as a animated
symbol, through the new "Animation Settings" option in the symbol
widget's Advanced menu.

This settings panel allows users to enable animation for the symbol
and set a specific frame rate at which the symbol should be redrawn.
When enabled, the @symbol_frame variable can be used in any
symbol data defined property in order to animate that property.

For instance, setting the symbol's rotation to the data defined
expression

    @symbol_frame % 360

will cause the symbol to rotate over time. (with rotation speed
dictated by the symbol's refresh rate)
2022-04-09 18:14:44 +10:00
Even Rouault
34f057261d
Merge pull request #47724 from tomkralidis/metasearch-offset
MetaSearch: update startindex to items
2022-04-08 14:27:26 +02:00
Nyall Dawson
19c2c3d3e2 Add a dedicated x-axis zoom tool for elevation profile widget 2022-04-07 19:22:19 +10:00
Nyall Dawson
f4f514dd86 Add choice of band to use for elevation profiles 2022-04-07 19:22:19 +10:00
Nyall Dawson
06087eebee Fix casting 2022-04-07 19:22:19 +10:00
Nyall Dawson
2ee10c1327 Rename QgsPlotToolPan file 2022-04-07 19:22:19 +10:00
Nyall Dawson
b779bfc44a Spelling 2022-04-07 19:22:19 +10:00
Nyall Dawson
d2e5186d56 Add action to export profile graph to PDF 2022-04-07 19:22:19 +10:00
Nyall Dawson
62450ec373 Move files to elevation directory 2022-04-07 19:22:19 +10:00
Nyall Dawson
60e8f87f93 Identation and sip 2022-04-07 19:22:19 +10:00
Nyall Dawson
cf5c82c400 Implement zooming actions and tools for plots 2022-04-07 19:22:19 +10:00
Nyall Dawson
6480b974d7 Implement plot panning and zoom
With all the usual interaction, e.g.

- middle mouse button + drag = pan
- hold space + drag = pan
- wheel = zoom
- ctrl + wheel = smooth zoom
2022-04-07 19:22:19 +10:00
Nyall Dawson
2653f5146f Implement plot panning by drag 2022-04-07 19:22:19 +10:00
Nyall Dawson
882cf7e58d Avoid initially clipped plot render 2022-04-07 19:22:19 +10:00
Nyall Dawson
8ee20464a0 Ensure that elevation properties are copied whenever a layer is cloned 2022-04-07 19:22:19 +10:00
Nyall Dawson
52509be814 Condense excessive class heirarchy, fix unit test 2022-04-07 19:22:19 +10:00
Nyall Dawson
3d0fd967af Add profile chart symbology settings for vector layers 2022-04-07 19:22:19 +10:00
Nyall Dawson
4c4293d9e5 Fix progress bar 2022-04-07 19:22:19 +10:00
Nyall Dawson
3efdad00ff Cleanup canvas destruction and job handling 2022-04-07 19:22:19 +10:00
Nyall Dawson
f886a4b947 Try to fix sip build 2022-04-07 19:22:19 +10:00
Nyall Dawson
0d88a6f834 Documentation 2022-04-07 19:22:19 +10:00
Nyall Dawson
915f5d30fc Show rubber band for profile curve 2022-04-07 19:22:19 +10:00
Nyall Dawson
9970782045 Use actual ranges of plot when rendering, use correct raster/mesh profile symbols 2022-04-07 19:22:19 +10:00
Nyall Dawson
305f0790cc Add range of z to QgsAbstractProfileResults 2022-04-07 19:22:19 +10:00
Nyall Dawson
77b9066e92 Add QgsMeshLayerElevationProperties subclass of
QgsMapLayerElevationProperties
2022-04-07 19:22:19 +10:00
Nyall Dawson
9ff504f614 Add profile line symbol setting for raster layer elevation properties 2022-04-07 19:22:19 +10:00
Nyall Dawson
6d4c2803f6 Start on profile renderer class 2022-04-07 19:22:19 +10:00
Nyall Dawson
cea1215bee Add cancelation support for profile generators 2022-04-07 19:22:19 +10:00
Nyall Dawson
9a6aad8de5 Stupid solution to sip build errors 2022-04-07 19:22:19 +10:00
Nyall Dawson
e98a52a017 Reintroduce sip casting 2022-04-07 19:22:19 +10:00
Nyall Dawson
141f7bf9f2 Plot wip 2022-04-07 19:22:19 +10:00
Mathieu Pellerin
5d5b1492fb [map canvas] Right-click copy coordinates should respect CRS axis ordering 2022-04-06 13:25:41 +07:00
Nyall Dawson
bac45b308a Add coordinate order argument to QgsCoordinateFormatter functions 2022-04-06 16:05:08 +10:00
Nyall Dawson
0b8e6abb22 Add QgsCoordinateReferenceSystemUtils class, with function to determine
most appropriate x/y or y/x coordinate order for a crs
2022-04-06 16:05:08 +10:00
Alessandro Pasotti
f6b99b2b4a Address Nyall's comments 2022-04-06 11:47:21 +10:00
Alessandro Pasotti
66322f4c7f Curved offset first attempt 2022-04-06 11:47:21 +10:00
Nyall Dawson
28bb05b0d5 Add method to retrieve axis order for a QgsCoordinateReferenceSystem 2022-04-06 11:45:32 +10:00
uclaros
df740b4d0b address review 2022-04-04 02:57:00 -07:00