5816 Commits

Author SHA1 Message Date
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
Nyall Dawson
386495bc76 [processing] Also warn on non-matching point and extent CRS
if algorithm cannot handle automatic reprojection
2018-05-02 04:55:01 +10:00
Martin Dobias
3b36cdd170
Merge pull request #6750 from lbartoletti/visibleSnapPerf
[BUGFIX][FEATURE][NEEDS-DOCS] Disable snapping on invisible features. Second version
2018-05-01 09:46:59 +02:00
Nyall Dawson
cec59c0c39 Shutup more annoying Qt warnings 2018-05-01 17:39:21 +10:00
Nyall Dawson
6ca327072a [FEATURE] Add expression functions for tapered and variable
width buffers

Adds:
- tapered_buffer
- buffer_by_m

expression functions. These expose the same functionality as the
equivalent processing algorithms but for use in expressions
such as geometry generators.
2018-05-01 06:16:01 +10:00
Nyall Dawson
9ffae600f4 [FEATURE] Variable width buffers
Adds geometry methods to create variable width buffers, including
tapered buffers (with a specified start and end diameter) and
variable width buffers from line string m values.

Also adds processing algorithms which expose these methods
to processing.
2018-05-01 06:16:01 +10:00
Nyall Dawson
2d3d6a8b83 [afs] Fix handling of date/datetime field values 2018-05-01 06:15:22 +10:00
Loïc Bartoletti
9f3d571155 clean tests and add a new test for snapping on inivisble feature 2018-04-30 17:02:47 +02:00
Nyall Dawson
c314639e00 [processing] More stringent testing of parameter validity
- Check static QgsProperty parameter values
- Properly check QgsProcessingFeatureSourceDefinition and
QgsProcessingOutputLayerDefinition values
2018-04-28 05:50:47 +10:00
Nyall Dawson
249dca7830 [processing] Consist helpful error messages when sinks cannot be created
And throw exceptions always when sinks are not created to avoid
generic errors
2018-04-28 05:50:47 +10:00
Nyall Dawson
5339d62715 [processing] More helpful errors when sources cannot be loaded
Include descriptive text with the specified parameter value
in error, and always check that sources were loaded to avoid
raw Python exceptions when they are not
2018-04-28 05:50:47 +10:00
Martin Dobias
16a6a90dd7
Merge pull request #6859 from wonder-sk/overlay-alg-fixes-3
Port Union algorithm to C++ and fix it
2018-04-26 22:56:22 +02:00
Blottiere Paul
1afe0d1bb8 Add unit tests 2018-04-26 16:18:29 +01:00
Peter Petrik
b1bf9b2809 [FEATURE] Introduction of QGIS Quick library
This pull request is a subset of #6490

This adds a new library for creation of applications based on Qt Quick
framework.
It contains reusable QML / Qt Quick components based on QGIS core
library.
The initial work introduces MapCanvas

To enable compilation of the library, use WITH_QUICK=TRUE

Further documentation of the library is located in doc/qgsquick.dox

For background information see the associated QEP:
qgis/QGIS-Enhancement-Proposals#109

The initial implementation is largely based on the work of Matthias Kuhn
and Marco Bernasocchi on QField probject - kudos to them for the great
job!
2018-04-26 13:33:48 +02:00
Blottiere Paul
ba02a5e258
Merge pull request #6851 from pblottiere/bugfix_segfault_z
[bugfix]  Fixes Add Feature map tool when snapped layer has ZM support
2018-04-26 11:59:07 +01:00
Nyall Dawson
c3b69900f7 Followups 2018-04-26 19:01:50 +10:00
Nyall Dawson
c78bdaebca [oracle] Some updates to Oracle provider test suite
Now the Oracle provider passes the data provider edit stress/
conformance tests without issue!
2018-04-26 19:01:50 +10:00
Nyall Dawson
3a3b0fe56d [oracle] Fix handling of NULL values when add features to provider
Fixes NULL attribute values are incorrectly converted to empty
strings or 0 numeric values instead of NULL.
2018-04-26 19:01:50 +10:00
Martin Dobias
5e7719c38f Tests for fieldNamesToIndices() and indicesToFields() 2018-04-26 10:51:34 +02:00
Nyall Dawson
d8c36233e8 Remove some more redundant include directories 2018-04-26 17:28:59 +12:00
Nyall Dawson
3f6e411edb Remove some redundant geos includes 2018-04-26 17:28:59 +12:00
Nyall Dawson
d5626d9236 Remove geos include from qgsgeometry.h
Avoids the need to include geos from some build targets
2018-04-26 17:28:59 +12:00
Martin Dobias
ade216d02d
Merge pull request #6820 from PeterPetrik/QgsMeshLayer_1_mesh
[FEATURE] QgsMeshLayer part 1: Reading raw mesh
2018-04-25 09:02:24 +02:00
Blottiere Paul
f8e72ad3bd Add unit tests 2018-04-24 17:38:46 +01:00