5539 Commits

Author SHA1 Message Date
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
arnaud.morvan@camptocamp.com
81dabd185c [processing] Finish default values in model for destination parameters 2018-05-14 22:12:32 +10: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 #6951 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 (#6976) 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 #6865 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 #6764 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
Nyall Dawson
ea38c7322b [afs] Fix handling of custom projections
Don't treat all unknown projections as WGS84

Fixes #18881
2018-05-08 05:38:27 +10:00
Denis Rouzaud
0d6dcb231e do not return a const file and add localFile helper 2018-05-07 08:20:59 -04:00
Denis Rouzaud
648562d2b7 do not expose task and make it thread safe 2018-05-07 08:20:59 -04:00
Nyall Dawson
3791bac432 [processing][modeler] Fix some child algorithm vector results
are not shown as input choices for other child algorithms
2018-05-07 18:50:19 +10:00
Nyall Dawson
787dd3413e [processing] More helpful errors when raster inputs are not valid 2018-05-06 19:19:45 +10:00
rldhont
280018dc5f [Oracle][Tests] Enhance Geometry creation SQL script 2018-05-05 12:24:16 +10:00
rldhont
a11db8bbe1 [Oracle][Tests] Enhance Point convertion test
Instead of using 'SDO_UTIL.FROM_WKTGEOMETRY' to generate `SDO_GEOMETRY` object
for Point, the `testdata` generate Point and MultiPoint with `SDO_POINT_TYPE`
or `SDO_ELEM_INFO_ARRAY` and `SDO_ORDINATE_ARRAY`.

With this way of creating Point and MultiPoint, we can test the way Point and
MultiPoint are converting to WKB.
2018-05-05 12:24:16 +10:00
Peter Petrik
aed3939cbd rename qml library to QgsQuick 2018-05-04 14:20:43 +02:00
Matthias Kuhn
69de345784
Merge pull request #6922 from m-kuhn/relrefconditionalvaluechanged
Relation reference widget value changed signals
2018-05-04 09:39:15 +02:00
MieWinstrup
a36f6aa2e6 Added test of the action 'Move Out of Group' in the layer panel 2018-05-04 11:02:17 +10:00
Matthias Kuhn
6de0e4b301 Adjust tests 2018-05-03 16:14:07 +02:00
Peter Petrik
12183e98db Fix reading/writing of mesh layer to a qgis project (fixes #18801) (PR #6869)
* fix guard header

* [bugfix] Fix reading/writing of mesh layer to a qgis project #18801

* fix copy-paste error

* fix copy-paste error

* extract decode source to derived classes

* remove raster providers from vector decode source

* reset testdata to master
2018-05-03 12:10:54 +02:00
Matthias Kuhn
2c415e8fa5
Unit tests for setting and getting relation reference widget values 2018-05-03 12:09:12 +02:00
Matthias Kuhn
da93520c1f
Setter and getter tests for relation reference widget 2018-05-03 12:08:18 +02:00
rldhont
956d669304
Merge pull request #6867 from pblottiere/bugfix_nobbox
[server] CRS position in GetCapabilities document
2018-05-02 22:22:36 +02:00
arnaud.morvan@camptocamp.com
f019bc0699 [server] Avoid %2B to be interpreted as space in querystring
If '+' is replaced by ' ' after percent decoding, '%2B' is interpreted as ' '.

Fix this by replacing '+' by '%20' before percent decoding.
2018-05-02 22:21:39 +02:00
arnaud.morvan@camptocamp.com
8553e809d4 Fix BBOX CRS in WFS GetFeature 2018-05-02 22:16:23 +02:00
Nyall Dawson
9809f9394b [memory] Fix provider cannot handle fields with complex characters in name
Fixes #18885
2018-05-03 05:49:07 +10:00
Nyall Dawson
f4d38d4f09 Properly discard edit commands when calling QgsVectorLayer::destroyEditCommand()
Since it's not directly possible to pop the last command off
an QUndoStack (the command which is destroyed/discard by calling
this method), we add a dummy obsolete command to force this to occur.
Pushing the new command deletes the destroyed one, and since the new
command is obsolete it's automatically deleted by the undo stack.
2018-05-03 05:48:51 +10:00
Nyall Dawson
8f9a378d76 Seriously, I thought I told ya ta shuddup already, right? 2018-05-02 08:47:16 +10:00