35766 Commits

Author SHA1 Message Date
Nyall Dawson
880647e50e Add some tags to algorithm 2016-11-14 15:52:41 +10:00
Nyall Dawson
b44093914b Fix test failure, report distance from pole 2016-11-14 15:52:41 +10:00
Nyall Dawson
d6f09c012e [FEATURE] Add method to calculate pole of inaccessibility for polygons
Implements a method in QgsGeometry and a processing algorithm to
calculate the pole of inaccessibility for a surface, which is the
most distant internal point from the boundary of the surface. This function
uses the 'polylabel' algorithm (Vladimir Agafonkin, 2016), which is an iterative
approach guaranteed to find the true pole of inaccessibility within a specified
tolerance. More precise tolerances require more iterations and will take longer
to calculate.
2016-11-14 15:52:41 +10:00
Nyall Dawson
d5c307eb05 Add method to find distance from a point to a poylgon's boundary 2016-11-14 15:52:41 +10:00
Nyall Dawson
1d3f1f07e8 Fix QgsGeometryUtils::sqrDistToLine returns bad values (eg nan values) 2016-11-14 15:52:41 +10:00
Martin Dobias
514d4439bd Fix oracle provider and remove dead code 2016-11-14 13:36:12 +08:00
Martin Dobias
9872b4848d Remove caching of GEOS representation within QgsGeometry (legacy) 2016-11-14 13:36:12 +08:00
Martin Dobias
d729951dcd Remove caching of WKB from QgsGeometry (was kept just for compatibility)
Also improves the API to export/import WKB as QByteArray
2016-11-14 13:36:12 +08:00
Even Rouault
8b1adc5dcd Merge pull request #3635 from arnaud-morvan/processing_postgis_connect
[processing][db_manager] Fix connection to postgis
2016-11-13 18:15:57 +01:00
Nyall Dawson
dbf6107b14 [processing] Add button for projection selection dialog to
Crs parameters in algorithm settings in modeler

This makes it easier to pick static CRSes for the parameter,
and also makes it obvious to users that they can use a fixed
CRS parameter in their model (as opposed to one taken from
a layer or input)
2016-11-13 20:34:35 +10:00
Nyall Dawson
f24cda4402 [processing] Add unit tests for retrieving param from script code
And fix number param retrieving from script code
2016-11-13 20:34:35 +10:00
Nyall Dawson
3ef7b3b7eb [processing] Use standard QGIS projection selection widget for CRS params 2016-11-13 20:34:35 +10:00
Nyall Dawson
fbc12a8a81 Allow showing 'not set' in QgsProjectionSelectionWidget 2016-11-13 20:34:35 +10:00
Alexander Bruy
d81533e05a fix failing test 2016-11-12 13:31:46 +02:00
Alexander Bruy
0589566e4b [processing] mark buffer lines test as expected failure
This test failed as result and expected WKT geometries differ
only because of 0 vs. -0 in one coordinates pair
2016-11-12 13:31:45 +02:00
Alexander Bruy
af16bbf532 [processing] don't print Processing version 2016-11-12 13:31:45 +02:00
Alexander Bruy
fcc96de8a7 [processing] fix indentation 2016-11-12 13:31:45 +02:00
Alexander Bruy
75bd622ccc [processing] restore and fix extraction of OGR layer names 2016-11-12 13:31:45 +02:00
Alexander Bruy
2287230f0f [processing] fix parameter definition in offset curve algorithm 2016-11-12 13:31:45 +02:00
Alexander Bruy
426c5bef47 [processing] compare only geometry in tests 2016-11-12 13:31:45 +02:00
Alexander Bruy
dff239c241 [processing] improve temp file names generation 2016-11-12 13:31:44 +02:00
Alexander Bruy
b6d5f35be2 [processing] cleanup OGR dissolve algorithm code
Avoid double extensions when creating temp files
2016-11-12 13:31:44 +02:00
Alexander Bruy
85d1fd720b [processing] cleanup test data 2016-11-12 13:31:44 +02:00
Alexander Bruy
652addb507 [processing] don't pass layer name when '-sql' parameter is used 2016-11-12 13:31:44 +02:00
Alexander Bruy
e1ee477c40 [processing] use numeric parameter for buffer distance 2016-11-12 13:31:44 +02:00
Alexander Bruy
256efcc034 [processing] remove unnecessary schemas from test data 2016-11-12 13:31:44 +02:00
Alexander Bruy
a8feec8d3c [processing] friendly names for some QGIS tests 2016-11-12 13:31:43 +02:00
Alexander Bruy
d239a97c41 [processing] test for OGR one-side buffer 2016-11-12 13:31:43 +02:00
Alexander Bruy
32094e93d0 [processing] add test for OGR offset lines 2016-11-12 13:31:43 +02:00
Alexander Bruy
02ed0aa628 [processing] fix OGR offset curve and one-side buffer 2016-11-12 13:31:43 +02:00
Alexander Bruy
397df65908 [processing] add test for points along lines 2016-11-12 13:31:43 +02:00
Alexander Bruy
d08c02dbd0 [processing] disable polygonize test, as it is not stable 2016-11-12 13:31:43 +02:00
Alexander Bruy
52e29b93b8 [processing] fix deprecation warnings in GDAL test 2016-11-12 13:31:42 +02:00
Alexander Bruy
23de13c03f [processing] add test for OGR buffer with dissolve 2016-11-12 13:31:42 +02:00
Alexander Bruy
31a6189a9c [processing] add test for OGR polygon buffering 2016-11-12 13:31:42 +02:00
Alexander Bruy
a6bd9f0207 Revert "Fix extraction of ogr LayerName from multi-layer dataset URIs"
This reverts commit 6c5364186dd8d45ac51e5bd1a72c6a542f032cb1.

As it breaks all OGR geoprocessing algoroithms.
2016-11-12 13:31:42 +02:00
Alexander Bruy
5991eccb47 [processing] simple test for ogr buffering 2016-11-12 13:31:42 +02:00
Alexander Bruy
159fda68f2 [processing] add test for gdal_polygonize 2016-11-12 13:31:41 +02:00
Nyall Dawson
08231b8b14 Merge pull request #3742 from nirvn/processing_fix_hasdependencies
[processing] check for parent alg dependencies in hasDependencies()
2016-11-12 15:09:26 +10:00
Werner Macho
c180cf3208 Merge pull request #3753 from DelazJ/patch-17
typo fix
2016-11-11 18:33:56 +01:00
Harrissou Sant-anna
b069e955ae typo fix 2016-11-11 18:14:15 +01:00
Alessandro Pasotti
fb124baaf6 Merge pull request #3751 from elpaso/downloader_master
[bugfix][forwardport] File downloader for identify dialog hyperlinks
2016-11-11 17:42:56 +01:00
Alessandro Pasotti
4e96912c91 [bugfix][forwardport] File downloader for identify dialog hyperlinks
fixes #14703

Include C++ and Python tests

Travis won: ported all test cases to Python
and disabled C++ companion test (still useful locally and
for debugging)

For the curious: QTemporaryFile is not working as expected

Moved to Qt5 new style signals

Disabled C++ test and connected cancel to progress

Make string comparison on SSL errors more robust
2016-11-11 17:26:33 +01:00
Matthias Kuhn
4981bfcf18 Fix memory leak 2016-11-11 16:55:57 +01:00
Matthias Kuhn
45617fb292 Fix more Qt5.7 warnings 2016-11-11 15:43:21 +01:00
Matthias Kuhn
054d430859 [spatialite] Don't skip default values
When inserting multiple features in a single prepared statement, the spatialite
provider would skip any default for individual features, even though they have
been specified in the field list, resulting in missing fields.
2016-11-11 13:15:24 +01:00
Nyall Dawson
28d7ceaef5 Some fixes to processing expression parameters 2016-11-11 20:13:12 +10:00
Alexander Bruy
a4cc5726c3 Merge pull request #3748 from nirvn/processing_harmony
[processing] harmonize modeler UI/UX behavior with QGIS
2016-11-11 11:09:16 +02:00
nirvn
f3d7e39abb [processing] harmonize modeler UI behavior with QGIS
- use [close without saving][cancel][save] option when closing
a modeler with unsaved changes
- invert mouse wheel zoom in/out to match that of QGIS' main
canvas window
- holding the mouse middle click and dragging will pan the
modeler view
2016-11-11 15:47:42 +07:00
Matthias Kuhn
35d106bf64 Fix Qt 5.7 build warnings 2016-11-11 08:56:12 +01:00