3883 Commits

Author SHA1 Message Date
Denis Rouzaud
b98c1df904 use default args for Z/M values in QgsGeometry::coerceToType 2022-01-28 06:21:18 +01:00
Nyall Dawson
6bd1a7eb7d Document new behaviour 2022-01-24 17:26:05 +10:00
Nyall Dawson
1be383a301 [api] Add QgsProviderMetadata method to test whether a style with
a specified ID already exists
2022-01-24 17:26:05 +10:00
uclaros
d1d148f0c6 Address more comments 2022-01-19 06:24:20 +10:00
uclaros
a28cd2ce11 Address review 2022-01-19 06:24:20 +10:00
Stefanos Natsis
be99a166d9 Added pointcloud ordered by Z rendering for 2d views 2022-01-19 06:24:20 +10:00
Nyall Dawson
72116925ad Sip_skip some private api 2022-01-14 16:06:41 +10:00
Nyall Dawson
479d37def0 Add missing TransferThis annotation 2022-01-14 16:06:41 +10:00
Nyall Dawson
216b9d2a2a Fix getter name should not include 'get' prefix 2022-01-14 16:06:41 +10:00
Vincent Cloarec
9965eccdce
Template parameter {usage} for XYZ raster and vector tiles (#46731) 2022-01-13 15:11:31 +01:00
Nyall Dawson
370bdfd84d Add api to allow the native format for a crs definition (i.e. wkt
or proj) to be saved when the crs is saved to xml

Allows us a way to present a custom crs in the same format as it was
originally defined using
2022-01-13 13:58:00 +10:00
NEDJIMAbelgacem
ff5bde77a4 rename stuff 2022-01-12 13:46:49 +10:00
NEDJIMAbelgacem
f54136e616 address Nyall reviews 2022-01-12 13:46:49 +10:00
NEDJIMAbelgacem
33ee137c32 various fixes 2022-01-12 13:46:49 +10:00
NEDJIMAbelgacem
05824dc1c8 fix sip 2022-01-12 13:46:49 +10:00
NEDJIMAbelgacem
0381373df9 fix ci build 2022-01-12 13:46:49 +10:00
NEDJIMAbelgacem
fb9084f93f fix docs 2022-01-12 13:46:49 +10:00
NEDJIMAbelgacem
89c661b35d split 3dviewsmanager into 3dviews manager and dialog class 2022-01-12 13:46:49 +10:00
Nyall Dawson
24a498b57c Rename to 'toGeographicCrs' 2022-01-11 19:50:46 +10:00
Nyall Dawson
1f240c0196 Add method to convert QgsCoordinateReferenceSystem to geodetic crs 2022-01-11 19:50:46 +10:00
Nyall Dawson
6e7e8d3d7d Promote CRS format enum to enum class, move to Qgis 2022-01-11 19:50:46 +10:00
Damiano Lombardi
028eaf839d Rebase to master 2022-01-10 09:32:19 +01:00
Damiano Lombardi
2f703f9c14 Simplified configuration gui 2022-01-10 08:35:14 +01:00
Damiano Lombardi
4310b3f472 Removed ewkt conversion test 2022-01-10 08:34:48 +01:00
Damiano Lombardi
d7a58c6cc3 Removed ewkt conversion functions 2022-01-10 08:34:44 +01:00
Damiano Lombardi
ff04cbbe09 Add possibility do data define label position by point instead of X/Y 2022-01-10 08:18:03 +01:00
Damiano Lombardi
6d2c4245ce remove unneeded SIP_CONVERT_TO_SUBCLASS_CODE 2022-01-10 08:09:32 +01:00
Damiano Lombardi
9f7353b91c switch to XY coordinate types when using label move tool 2022-01-10 08:09:28 +01:00
Nyall Dawson
40ba7b0041 Add more granular feedback to Extract Labels algorithm 2022-01-10 15:42:49 +10:00
Mathieu Pellerin
f3c5b6ec9b
Merge pull request #46725 from nirvn/label_alg_extra
A couple of additional details and an important fix to the extract labels alg.
2022-01-07 12:54:07 +07:00
Benjamin Jakimow
dc1866f0af sipified files 2022-01-07 11:30:49 +10:00
Benjamin Jakimow
bb773d0a18 run sipify
Signed-off-by: Benjamin Jakimow <benjamin.jakimow@geo.hu-berlin.de>
2022-01-07 11:30:49 +10:00
Benjamin Jakimow
9b3e437ae3 addresses #46673 (QgsProcessingMapLayerComboBox shows layers out of
QgsProcessingParameterWidgetContext)

added a `setProject(QgsProject *project)` to QgsMapLayerModel,
QgsMapLayerProxyModel and QgsMapLayerComboBox

QgsProcessingMapLayerComboBox::setWidgetContext(...) now uses the
context project
2022-01-07 11:30:49 +10:00
Matthias Kuhn
3cfdd2d8d7 Only show spatial layers in extent widget 2022-01-06 18:40:50 +01:00
Nyall Dawson
ce7d4220c5 Apply suggestions from code review 2022-01-06 13:01:08 +10:00
Tobias Schmetzer
4a32f0d344 Correct parameter name and version description for doxygen 2022-01-06 13:01:08 +10:00
Tobias Schmetzer
f0c7727467 Make segmentLength argument optional with default as 0 instead of the nullptr option 2022-01-06 13:01:08 +10:00
Tobias Schmetzer
7640026100 Adapt function to comply with default behavior at segmentLength value 0, adapt and improve test cases, include .sip.in files, corrected segmentLength calculation 2022-01-06 13:01:08 +10:00
Tobias Schmetzer
9cbcae58b5 Add QgsGeometryUtils::perpendicularCenterSegment() with description in header file, test case and sip.in for Docx 2022-01-06 13:01:08 +10:00
Nedjima Belgacem
b88b080777
Camera navigation improvements (#45979)
Fixes two issues in camera navigation:
- Unintuitive camera rotation
- Wrong center point when zooming in/out and rotating

See https://github.com/qgis/QGIS-Enhancement-Proposals/issues/215

This PR employs the following changes:
- The zoom in functionality will zoom in towards the real 3D position of an object in the scene instead the camera view center point used previously.
- The rotation will use the real clicked 3D position of a pixel as well instead of the camera view center point.
- The press and drag behaviour is improved to shift the map in real 3D coordinates instead of some arbitrary measurement (you can see the clicked pixel following the cursor instead of drifting away).
2022-01-05 12:13:25 +01:00
Nyall Dawson
dbff1e16cc Also add signal for when layer rendering starts 2021-12-31 16:26:50 +10:00
Nyall Dawson
79d50657c7 Add layerRendered signal to QgsMapRendererJob
Can be used to provide progress feedback on map render jobs
2021-12-31 16:26:50 +10:00
nirvn
83b5183ac2 [feature] Add a QgsScaleCalculator function to calculate canvas width from a given extent, scale, and dpi 2021-12-30 11:17:58 +07:00
nirvn
6e607313bd [feature] Handy null painter device class to use with map renderer custom painter jobs 2021-12-30 11:06:41 +07:00
nirvn
4131714907 [feature][api] Add a map settings / render context flag to skip symbol rendering 2021-12-28 20:04:49 +07:00
nirvn
4dbcd389fc [feature][api] Allow a custom label sink to be used with map renderer jobs 2021-12-28 20:04:49 +07:00
Marco Hugentobler
7fbabb6744 Re-add accidentally removed white-space 2021-12-23 13:25:57 +10:00
Marco Hugentobler
be6d9b5f61 Add bracket (in case %2 is an arithmetic expression) and add unit test 2021-12-23 13:25:57 +10:00
Nyall Dawson
6783347896 Implement framework for history providers
As per https://github.com/qgis/QGIS-Enhancement-Proposals/issues/130
2021-12-21 15:32:57 +10:00
Nyall Dawson
5fd9b209ac [feature] Allow input parameter values for qgis_process to be
specified as a JSON object passed via stdin to qgis_process

This provides a mechanism to support complex input parameters
for algorithms, and a way for qgis_process to gain support
for parameter types which are themselves specified as a dictionary
type object.

To indicate that parameters will be specified via stdin then
the qgis_process command must follow the format

    qgis_process run algid -

(with a trailing - in place of the usual arguments list).

The JSON object must contain an "inputs" key, which is a map
of the input parameter values.

E.g.

    echo "{"inputs": {\"INPUT\": \"my_shape.shp\", DISTANCE: 5}}" | qgis_process run native:buffer -

Specifying input parameters via stdin implies automatically
the --json output format for results.

One big motivation behind this enhancement is to provide a way for
the qgisprocess R libraries to support parameter types such as
aggregates.

Refs https://github.com/paleolimbot/qgisprocess/issues/56
Refs https://github.com/paleolimbot/qgisprocess/issues/44

Sponsored by the Research Institute for Nature and Forest, Flemish Govt
2021-12-20 11:33:50 +10:00