1
0
mirror of https://github.com/qgis/QGIS.git synced 2025-03-26 00:08:20 -04:00

5709 Commits

Author SHA1 Message Date
Martin Dobias
9a79fc78aa
Merge pull request from PeterPetrik/qgsquick_2_scalebar_messagelog
[feature] Add ScaleBar and MessageLog components to QgsQuick library.
2018-05-16 20:37:40 -04:00
Peter Petrik
3fc99c04c1 code cleanup 2018-05-16 17:02:35 +02:00
Peter Petrik
aea3dccea7 [FEATURE] Rendering of vector data on mesh layers
Rudimentary support of rendering of vector data (e.g. velocity) on mesh map layers.
Rendering can be adjusted by QgsMeshRenderer*Settings. Only in Python
API, no GUI widgets for styling present.
2018-05-16 12:56:35 +02:00
Peter Petrik
3154102aa6 [FEATURE] Scalar/vector data in mesh data providers
Reading and processing scalar (e.g. water depth) and vector (e.g.
velocity) data from mesh data providers (e.g. MDAL)
2018-05-16 12:47:28 +02:00
Alessandro Pasotti
a44eeae441
Merge pull request from elpaso/currentformfeature-expressions-4
[feature][need-docs] Current feature/current value form context expressions
2018-05-16 09:48:06 +02:00
Nyall Dawson
3949802d58 Improved title case conversion, add tests 2018-05-16 14:08:43 +10:00
Alessandro Pasotti
673fac0c88 Added methods to search expression nodes and drop RegExp
- nodes() return the list of all nodes
- findNodes<T> returns a list of the nodes matching the class

Also drops the regexp for finding form attrs in the value-relation
expressions.

Other minor fixes as suggested in the PR review.
2018-05-15 18:32:40 +02:00
Blottiere Paul
1956937793 Update getcapabilities document to fit 1.3.0 version 2018-05-15 09:07:22 +01:00
Blottiere Paul
6ea2cd63ba Add unit tests 2018-05-15 09:07:21 +01:00
Alessandro Pasotti
b4f86147c7 Add referencedFunctions() to expressions 2018-05-15 09:20:10 +02:00
Alessandro Pasotti
edb12b4dbe Removed attribution 2018-05-15 08:34:39 +02:00
Alessandro Pasotti
ba339f2f1c Some more test cases for value relation widget 2018-05-15 08:34:08 +02:00
Alessandro Pasotti
63d2086de4 Rename functions from get_current_form_field_value to current_value
and current_geometry
2018-05-15 08:34:08 +02:00
Alessandro Pasotti
83328ae596 [feature] Form context expressions in value relation widget
The value relation widget filter expression can now use two
new functions/variables that have access to the current
values and geometry of the form being edited.

This allows for dynamic filtering (drill-down) as explained
in the crowdfunding page:
https://north-road.com/drill-down-cascading-forms/

The new functions/variables are:

Function:
get_current_form_field_value( 'FIELD_NAME' )

Variable:
@current_form_geometry
2018-05-15 08:34:08 +02:00
Nyall Dawson
26174ea9ad Copy cached min/max value to provider test suite 2018-05-15 09:23:48 +10:00
Denis Rouzaud
90bbe69aad
fix QVariant / QString compare 2018-05-14 14:08:57 -04:00
Denis Rouzaud
a66836225f add assert on metaEnum and convert existing settings to strings 2018-05-14 11:49:29 -04:00
Denis Rouzaud
847f0e1829 adapt sipify scripts and test to place auto generated sip files in dedicated folder 2018-05-14 10:44:11 -04:00
Denis Rouzaud
dce235d62e create dedicated function for flags
there is a small redundancy in code, but it makes it much nicer to read the calls:
flagValue( key, default) instead of enumValue( key, default, NoSection, false )
2018-05-14 08:47:27 -04:00
Denis Rouzaud
d156e1fb76 save enum settings as string for a better inspection 2018-05-14 08:47:27 -04:00
arnaud.morvan@camptocamp.com
81dabd185c [processing] Finish default values in model for destination parameters 2018-05-14 22:12:32 +10:00
Peter Petrik
0cd9e19abc [Feature] Add ScaleBar and MessageLog components to QgsQuick library. 2018-05-14 11:39:17 +02:00
Nyall Dawson
6b742687ab [memory] Fix memory provider does not return correct min/max
values after adding or editing features

The cache was not cleared correctly in this case

Fix sponsored by LINZ
2018-05-14 15:43:22 +10:00
Denis Rouzaud
272f9ef874
Merge pull request from 3nids/locator_prefix
allow customizing prefix of locator filters
2018-05-13 17:56:22 -08:00
Guilhem
42bedc4f72 Update qgsrasterfilewriter.cpp
Bad geo-referencing bug fix

Using VRT with large coordinate system (like RGF93/CCxx) and high
resolution raster, highest resolution tiles were shifted regardingi
original raster.
It seemed that when creating the VRT file, georeferencing is
truncated while converted to text, leading to loss of precision.
2018-05-12 06:20:29 +10:00
Denis Rouzaud
d36d4f8c65
fix warning for release build () 2018-05-11 07:41:10 -08:00
Denis Rouzaud
2bb6149e6c add test for (active) prefixes and fix bad prefix for plugins 2018-05-11 10:17:27 -04:00
Nyall Dawson
3d03cfba8c Update test masks 2018-05-11 17:48:45 +10:00
Nyall Dawson
06d7725cca Fix api break, unit test 2018-05-11 17:48:45 +10:00
Nyall Dawson
9ce19af552 Fix failing test 2018-05-11 17:48:45 +10:00
Nyall Dawson
9d2c4fca19 [FEATURE][layouts] Use text renderer for drawing scalebar text
Allows the full range of formatting options exposed through
text renderer - e.g. scalebar text with buffers, shadows,
background shapes, letter spacing, etc.

Say goodbye to unreadable scale bar text!
2018-05-11 17:48:45 +10:00
Nyall Dawson
a06000e0e7 Add method to QgsTextRenderer to retreive scaled QFontMetricsF
from a text format in a specified render context
2018-05-11 17:48:45 +10:00
Nyall Dawson
e53adc154b Add methods to convert QgsTextFormat to and from QFonts 2018-05-11 17:48:45 +10:00
Nyall Dawson
c738bcf7af [processing] Don't skip null parameter values when converting
parameters to pythong strings

We need to include these, in order to differentiate unspecified
parameters from parameters set to null values
2018-05-10 15:48:20 +10:00
Nyall Dawson
d05f95f7d5 [processing] Ensure unset parameters are translated to Python
None values when representing parameters as pythong strings
2018-05-10 15:48:20 +10:00
Denis Rouzaud
16497ee42c fix edit form test with local HTTP server 2018-05-09 11:04:29 -04:00
Denis Rouzaud
8e20996ddc simplify netwotk content fetcher registry
kudos @wonder-sk
2018-05-09 11:04:29 -04:00
Denis Rouzaud
d413c8829a add UI form for testing 2018-05-09 11:01:59 -04:00
Matthias Kuhn
29489e1056
Merge pull request from PeterPetrik/qgsquick_1_canvas_merge
[FEATURE] Introduction of QGIS Quick library
2018-05-09 07:40:01 +02:00
Martin Dobias
819ae6f31a Fix test that checked an exception from QgsSpatialIndex constructor 2018-05-08 20:28:27 -04:00
Martin Dobias
914cefff95 Fix crash when creating spatial index from empty layer
libspatialindex library throws an exception when trying to bulk load spatial index
and it is given an empty input data stream
2018-05-08 20:28:27 -04:00
Alessandro Pasotti
f2304c1b15
Merge pull request from tudorbarascu/featureinfo_values
server tests for GetFeatureinfo different widget values
2018-05-08 15:24:40 +02:00
Tudor Bărăscu
90355f0e2d address comments and add @unittest.expectedFailure to test 2018-05-08 13:44:16 +03:00
Nyall Dawson
10475a6adf Really accept strings for arrow data defined properties 2018-05-08 20:38:08 +10:00
Tudor Bărăscu
cdca7084c4 add GetMap DPI mask image, fixes local test 2018-05-08 16:07:53 +10:00
Nyall Dawson
500af5e49d Spelling 2018-05-08 16:06:59 +10:00
Nyall Dawson
f9be605537 [FEATURE] Also show cartesian areas/perimeters in identify results
Because users are still getting confused with the difference
between the cartesian areas and ellipsoidal areas, show both
in the identify results dock.

The reasoning here is:

- if a user understands this concept, they will know the correct
one to use, and its good for us to inform them of the difference
here. Plus, it means they immediately see if the ellipsoid
setting is correct and the difference it is making for the
area/length calculation.

- if a user has no idea what the difference is, then we should
make them aware that there's (at least!) two different possible
measurement values. They can then either research what these mean and make
the right choice (and become better informed GIS practitioners),
OR pick a random one - which really is no different then the
previous situation, because an uniformed user is just as likely
to be working in an unsuitable projection with a poor ellipsoid
choice.

In short, we don't try to guess the right choice for users
and instead give them all the information and let them make the
call which value to use.
2018-05-08 16:06:59 +10:00
Martin Dobias
875da3f56c [FEATURE] Optionally add back faces of polygons in tessellator
Often the polygonZ/multipatch data do not have consistent ordering of vertices
(e.g. all clock-wise or counter clock-wise). Disabling culling helps to avoid
seemingly missing surfaces, but the shading is still not correct due to reversed
normals. This new option to add back faces fixes the problem: for each triangle
we create both front and back face with correct normals - at the expense of increased
number of vertex data.
2018-05-08 03:47:49 +02:00
Sandro Santilli
bd1f9b5233 Switch test to reentrant GEOS API 2018-05-08 08:22:33 +10:00
Martin Dobias
28d7c8c469 Fix a crash in tessellator with self-intersecting rings
Self-intersecting polygon rings may crash poly2tri so we skip them (for now)
2018-05-07 22:11:27 +02:00