39457 Commits

Author SHA1 Message Date
Nyall Dawson
efe8bba006 Work on resurrecting modeler 2017-06-20 14:45:13 +10:00
Nyall Dawson
5d8f2d99ab Fix working with inputs in modeler 2017-06-20 14:45:13 +10:00
Nyall Dawson
bdc5e224a3 Small cleanups 2017-06-20 14:45:13 +10:00
Mathieu Pellerin
7fff6cf029 [atlas] move file format for image export to atlas widget
Two big wins:
- remember file format across sessions (no more accidental
.bmp atlas export!)
- use native directory picker
2017-06-20 10:53:31 +07:00
Nyall Dawson
349f6eae6e Merge pull request #4732 from nyalldawson/alg
[FEATURE] Subdivide algorithm for geometries
2017-06-20 13:40:05 +10:00
Nyall Dawson
b3da171040 Swap remaining QSharedPointer uses to std::shared_ptr 2017-06-20 13:38:36 +10:00
nirvn
61a46104ef [ui] harmonize QDialogButtonBox position in provider dialogs
This commit insures that the QDialogButtonBox widget (i.e.
help, add, build query, set filter) is always located at
the very bottom of the dialog. It helps make a better UX out
of the unified add layer dialog.
2017-06-19 15:39:04 +07:00
Sandro Mani
8c012dad28 Merge pull request #4740 from manisandro/afsshareddata
[ArcGIS REST] Introduce QgsAfsSharedData to remove dependency on QgsAfsProvider by QfsAfsFeatureSource
2017-06-19 10:18:01 +02:00
nirvn
cef089a83a [ui] vectorize and align metadata section icon 2017-06-19 14:03:33 +07:00
Nathan Woodrow
22ed48fc87 [MSSQL] Correctly raise errors to UI level 2017-06-19 15:42:35 +10:00
Alexander Bruy
a511ecddcf Merge pull request #4743 from PedroVenancio/master
[processing] change resampling methods to be like SAGA default (fix #16646)
2017-06-19 08:40:56 +03:00
nirvn
89aae4d6c9 [ui] remove background in the add db2 layer icon 2017-06-19 08:55:27 +07:00
Matthias Kuhn
c69c5963d0 New style signal/slot connections 2017-06-17 16:09:29 +02:00
Matthias Kuhn
8bfbe195ae Followup 01b4eeb: Fix crash 2017-06-17 12:39:50 +02:00
PedroVenancio
b49f53bac8 Changes SAGA io_gdal RESAMPLING method to B-Spline Interpolation, as SAGA default, and add the Resampling Method parameter to SAGA Raster Calculator, as explained in https://issues.qgis.org/issues/16646 2017-06-16 20:47:18 +01:00
Matthias Kuhn
cb1f98f020 Replace QString::null with QString()
Deprecated sind Qt 5.9
2017-06-16 16:27:45 +02:00
Matthias Kuhn
a77f791467 The nodetool only needs to consider spatial layers 2017-06-16 15:52:08 +02:00
Sandro Mani
b42bf82081 [ArcGIS REST] Introduce QgsAfsSharedData to remove dependency on QgsAfsProvider by QfsAfsFeatureSource 2017-06-16 14:33:35 +02:00
Rob Jones
f237c6cdbf Fix include for case sensitive HFS+ builds
CocoaInitializer.h != cocoainitializer.h on case sensitive filesystems
2017-06-16 11:04:21 +02:00
Matthias Kuhn
a8415a9dbc Less noise from QgsNetworkAccessManager 2017-06-15 20:28:57 +02:00
Denis Rouzaud
ae6ad5c599 make QgsMapCanvas::updateCanvasItemPositions a protected slot 2017-06-15 15:11:03 +02:00
Denis Rouzaud
40e5ddad30 fix advanced digitizing panel display issue after panning
panning would cause the rubberbands of the adv. digit. panel to be invisible.
update the canvas item is now done after each extent changes
2017-06-15 15:01:45 +02:00
Denis Rouzaud
c25744853a fix indentation 2017-06-15 11:59:10 +02:00
Denis Rouzaud
14b8435f1b fix zoomToSelected with geometry-less layer or features 2017-06-15 11:57:41 +02:00
Denis Rouzaud
7aec4d1a5f follow up 8333b71034a5018642ccfac0d9ddc7bffda508d4 QgsSnappingUtils sipify 2017-06-15 07:45:21 +02:00
Denis Rouzaud
83c440448b [sipify] allow exception to required _EXPORT macros 2017-06-15 07:39:16 +02:00
Nyall Dawson
585e9ed76e Spelling fix 'grometry'->'geometry' 2017-06-15 09:29:49 +10:00
Nyall Dawson
fbd1d00f42 Expand tests for subdivide 2017-06-15 08:18:42 +10:00
Nyall Dawson
4768025130 Update multiparts to singleparts to new processing API 2017-06-14 23:08:13 +10:00
Nyall Dawson
4dcf8d8d10 [FEATURE][processing] New algorithm for subdividing geometries
The returned geometry will be a collection containing subdivided parts
from the original geometry, where no part has more then the specified
maximum number of nodes.

This is useful for dividing a complex geometry into less complex parts,
which are better able to be spatially indexed and faster to perform
further operations such as intersects on. The returned geometry parts may
not be valid and may contain self-intersections.
2017-06-14 23:05:58 +10:00
Nyall Dawson
e74395d95b [FEATURE] Subdivide algorithm for QgsGeometry
Subdivides the geometry. The returned geometry will be a collection
containing subdivided parts from the original geometry, where no
part has more then the specified maximum number of nodes.
2017-06-14 22:57:20 +10:00
Nyall Dawson
bde0c7267e Expose GEOS clip by rect algorithm via QgsGeometry API
Performs a fast, non-robust intersection between the geometry and
a rectangle. The returned geometry may be invalid.
2017-06-14 22:02:01 +10:00
Nyall Dawson
b620b6e00e Add method to QgsGeometryFactory to create a multigeometry
from any wkb type

Eg calling QgsGeometryFactory::createCollectionOfType( QgsWkbTypes::PolygonM )
will return a new QgsMultiPolygonV2 with M values.
2017-06-14 21:15:48 +10:00
Juergen E. Fischer
a2ad980d9b fix windows build 2017-06-14 13:15:47 +02:00
Juergen E. Fischer
8333b71034 Remove unused SnapToMapMode in QgsSnappingUtils 2017-06-14 13:15:47 +02:00
Nyall Dawson
f5f0a299c2 [processing] Port transform alg to c++ 2017-06-14 20:54:30 +10:00
Matthias Kuhn
501081f863 Remove unrequired SIP_SKIP 2017-06-14 07:37:31 +02:00
Matthias Kuhn
37a306e3f2 Fix tests 2017-06-14 07:37:31 +02:00
Matthias Kuhn
21dae496a9 Fix geometry tests for NaN 2017-06-14 07:37:31 +02:00
Matthias Kuhn
7f17498caf Use NaN for missing Z and M coordinates in QgsPoint 2017-06-14 07:37:31 +02:00
Matthias Kuhn
96cf4b7026 Projecting a 2D point with inclination assumes 0 for Z 2017-06-14 07:37:31 +02:00
Matthias Kuhn
41892d3ecf Fix point test 2017-06-14 07:37:31 +02:00
Matthias Kuhn
bd82ca316b Compare Z and M values in QgsPoint::operator== only when required 2017-06-14 07:37:31 +02:00
Matthias Kuhn
1808dc9c95 More intuitive QgsPoint python constructors
In python, the wkb type of a QgsPoint will by default be determined from
the provided parameters, where Z and M will be added as required if the
wkbType is Undefined.

    QgsPoint(x, y, z=nan, m=nan, wkbType=QgsWkbTypes.Undefined)

Thanks to the python API support of named parameters, it's also
straightforward to specify z, m and wkbType in any desired combination.

On the other hand, on C++ side it's often preferable to use

    QgsPoint(QgsWkbTypes::WkbType wkbType, double x, double y, double z, double m);

due to the lack of named parameters which make it harder to specify a
specific type and the advantage of typesafety that makes it possible to
verload the first constructor with this one.
2017-06-14 07:37:31 +02:00
Matthias Kuhn
4db671e83b Fix sip bindings for QgsPoint 2017-06-14 07:37:31 +02:00
Matthias Kuhn
7e487190e8 Add an easy to use Z/M default value constructor to QgsPoint 2017-06-14 07:37:31 +02:00
Matthias Kuhn
4eae0872ab Fix QgsPoint(XY) sip bindings 2017-06-14 07:37:31 +02:00
Denis Rouzaud
e957224c14 fix class declaration 2017-06-13 18:31:00 +02:00
Denis Rouzaud
5a8ed1d4d9 sipify QgsRange as template 2017-06-13 18:31:00 +02:00
Juergen E. Fischer
9a6235dba7 vector file writer fixes:
* don't apply un-overridden default options
* DGN: don't export attributes and fix layername to "elements"

(cherry picked from commit 7634b0b759bc0cedba28f9e9199d6a81a498ec5a)
2017-06-13 16:45:59 +02:00