146 Commits

Author SHA1 Message Date
Nyall Dawson
c795ddb1e9 Updates 2020-06-11 13:29:59 +10:00
Martin Dobias
68bbf46ebb Add QgsRasterDataProvider::transformCoordinates()
This is useful when client needs to find out image space coordinates of a point
in map layer coordinates or vice versa. For warped VRT rasters this can't be
simply done by using geotransform matrix because the transform may be more complex.

This may be also useful functionality for identify tool to show source raster
image coordinates.
2020-05-18 09:20:32 +10:00
Alessandro Pasotti
f029b1f959 Fix xyx OSM tiles too many downloads
Fixes #34813 by introducing a Prefetch rendering flag
and raster provider capability that can be set by
a provider when prefetching of out-of-viewport tiles
is allowed. For now it is only denied (hardcoded) for
OSM but the implementation allows per-layer setting when
a GUI element to set the flag will been created.
2020-05-13 13:41:40 +02:00
nirvn
ec32e3248e Address flag comment 2020-05-10 14:02:11 +07:00
nirvn
9be36fdbf3 [temporal] Optimize canvas rendering by avoiding needless cache clearing 2020-05-10 14:02:11 +07:00
Nyall Dawson
702675ca64 Forward declare QgsMapLayerTemporalProperty subclasses instead of including in header
Speeds up recompilation time
2020-05-10 17:01:44 +10:00
Alessandro Pasotti
198b797586 PG raster temporal: cleanup after rebase conflicts 2020-04-06 10:51:08 +02:00
Alessandro Pasotti
1231aa03db Added fields accessor to raster data provider 2020-04-06 10:51:08 +02:00
Alessandro Pasotti
7e7cb41b80 Const correct provider temporal capabilities 2020-04-06 10:50:04 +02:00
Samweli
88f039e6ea added two match modes for wmst static temporal range updates 2020-04-01 14:36:32 +10:00
Martin Dobias
a2f86469d3 Fix doxygen, spelling, shared_ptr 2020-03-31 08:51:54 +02:00
Martin Dobias
be98e2f0f6 [FEATURE] Raster layer contour renderer
This new renderer draws contour lines that are calculated on the fly
from the source raster band. It is possible to set interval of contour
lines and symbol used for drawing.

In addition there is support for "index contours" - contour lines
with higher interval, typically drawn with a wider line symbol.

If we generate contour lines on input raster block with the same size as our
output raster block, the generated lines would contain too much detail.
This detail can be reduced by the "downscale" factor - this will request
lower resolution of the source raster.
2020-03-31 08:51:54 +02:00
Samweli
b399e8a60b removed static wmst settings in provider temporal capabilities 2020-03-30 08:01:58 +10:00
Nyall Dawson
f4b260e49d Cleanup unused API 2020-03-30 08:01:58 +10:00
Nyall Dawson
ede9e98d59 Fix broken see also link 2020-03-13 13:39:26 +10:00
Nyall Dawson
ee2b94f23c Minor API tweak 2020-03-13 13:39:26 +10:00
Nyall Dawson
ff325027f7 Add API to determine if a layer should be rendered for a given time range 2020-03-13 13:39:26 +10:00
Nyall Dawson
4b1b4ab2e2 Hide access to setRequestedTemporalRange from QgsRasterDataProviderTemporalCapabilities
Only QgsRasterLayerRenderer should be accessing this, so block access
via friend class
2020-03-13 13:39:26 +10:00
Nyall Dawson
0d49009a81 Dox updates 2020-03-12 20:06:25 +10:00
Nyall Dawson
ca56f2f505 Remove unused enum 2020-03-12 20:06:25 +10:00
Nyall Dawson
f894ca41cc Rename some methods for clarity 2020-03-12 20:06:25 +10:00
Nyall Dawson
6f92b12f3d Cleanup raster temporal capabilities/layer classes 2020-03-12 20:06:25 +10:00
Nyall Dawson
f7e5347a3a Dox, header cleanups 2020-03-12 20:06:25 +10:00
Samweli
dd129c1aef updates on temporal animation logic 2020-03-12 20:06:25 +10:00
Samweli
99129fe4a8 updates on the temporal controller navigation logic 2020-03-12 20:06:25 +10:00
Samweli
d446c0a223 formatted wms provider code 2020-03-12 20:06:25 +10:00
Samweli
9845ffa591 added tests for changed signal in temporal properties 2020-03-10 10:11:54 +10:00
Nyall Dawson
fa6d62f9dd Minor header cleanups and documentation improvements 2020-03-06 11:56:13 +10:00
Alessandro Pasotti
542c183f00
Merge pull request #34871 from elpaso/pgraster-set-subset-string-app-expose
[feature] PG raster expose set filter to app
2020-03-05 15:34:33 +01:00
Samweli
1abbc2a586 saving and restoring temporal properties 2020-03-05 18:41:35 +10:00
Samweli
391f606f78 moved temporal range from provider to layer temporal properties 2020-03-05 18:41:35 +10:00
Samweli
51b475f689 added checks for possible null temporal capabilities 2020-03-05 18:41:35 +10:00
Samweli
2517b566d1 suggested changes from the review 2020-03-05 18:41:35 +10:00
Samweli
b30ccf3289 fixed travis tests 2020-03-05 18:41:35 +10:00
Samweli
872094cf8a removed status label in temporal properties 2020-03-05 18:41:35 +10:00
Samweli
6352d6889c added abstract temporal class
updates on tests and abstract temporal class

updates on qgsabstracttemporal sip and tests

update qgsabstracttemporal test

updated docs

moved qgsabstracttemporal class to qgstemporalrangeobject class as per review suggestions

edits per review on qgs map canvas

remove access of private members from qgstemporalrangeobject

updated render context test and fix travis tests

added new temporal property class

added tests for temporal property

added tests for temporal property

added temporal widget ui

temporal support in raster layers, from wms provider

temporal properties in raster layer properties

added abstract temporal class

updates on tests and abstract temporal class

updates on qgsabstracttemporal sip and tests

update qgsabstracttemporal test

updated docs

temporal support in raster layers, from wms provider

update qgsabstracttemporal test

updated docs

moved qgsabstracttemporal class to qgstemporalrangeobject class as per review suggestions

edits per review on qgs map canvas

updated render context test and fix travis tests

added new temporal property class

added new map layer temporal properties sub classes with tests

updates on map layers temporal properties classes

fix travis tests

add read and write xml tests

added abstract temporal class

updates on tests and abstract temporal class

updates on qgsabstracttemporal sip and tests

update qgsabstracttemporal test

updated docs

edits per review on qgs map canvas

temporal properties in raster layer properties

temporal support in raster layers, from wms provider

moved qgsabstracttemporal class to qgstemporalrangeobject class as per review suggestions

edits per review on qgs map canvas

remove access of private members from qgstemporalrangeobject

updated render context test and fix travis tests

added new temporal property class

added new map layer temporal properties sub classes with tests

updated layer times ui

added advanced options in layer time constrains ui

fix for refreshing wms layer after temporal properties update

update on wms-t temporal properties

added support for bi-temporal WMS-T
2020-03-05 18:41:35 +10:00
Alessandro Pasotti
41f6d729a7 PG raster: update since in dox 2020-03-04 16:42:32 +01:00
Alessandro Pasotti
385acae48c PG raster: reset renderer when filter changes 2020-03-04 16:25:50 +01:00
Alessandro Pasotti
71b9b76788 PG raster set subset signals and app 2020-03-04 11:29:30 +01:00
Nyall Dawson
183706ef0a Purge totally completely horribly outdated QgsRasterLayer docs 2020-02-24 20:35:25 +10:00
Nyall Dawson
313b000147 Minor temporal properties cleanups and dox improvements 2020-02-24 20:35:25 +10:00
Samweli
d03716072b add read and write xml tests 2020-02-08 10:19:48 +03:00
Samweli
d9926a9f91 fix travis tests 2020-02-08 08:26:21 +03:00
Samweli
c4355ab8b7 updates on map layers temporal properties classes 2020-02-08 08:26:21 +03:00
Harrissou Sant-anna
27da26bf17 Update qgsrasterlayer.sip.in 2020-01-21 11:40:42 +10:00
Nyall Dawson
41fa4b19fd Fix rendering artifacts on the edges of resampled raster tiles
We now buffer the request for the input to a resample filter by
a variable number of pixels (depending on the resampling type)
in order to fetch the neighbouring pixels to the edges of individual
raster blocks. This allows the resampling to utilise these
neighbouring pixels when resampling the edges of tiles, avoiding
discrepancies and rendering artifacts over the borders of
raster tiles.

Fixes #30152
2019-11-15 13:48:38 +10:00
Matthias Kuhn
b08a7d711c Fix sip file for sip and automoc 2019-11-03 21:20:08 +01:00
Matthias Kuhn
4294dda083 Resipify 2019-11-03 21:05:34 +01:00
Nyall Dawson
5e84033193 Sipify 2019-11-01 14:03:01 +10:00
Nyall Dawson
8c8d76387c Doxy 2019-10-31 12:19:59 +10:00