2055 Commits

Author SHA1 Message Date
Nyall Dawson
30fcaed634 [FEATURE][processing] New algorithm for merging connected lines
This algorithm joins all connected parts of MultiLineString
geometries into single LineString geometries.

If any parts of the input MultiLineString geometries are not
connected, the resultant geometry will be a MultiLineString
containing any lines which could be merged and any non-connected
line parts.
2016-08-02 11:51:44 +10:00
Nyall Dawson
e259e62941 Merge pull request #3349 from nyalldawson/feature_geom
Mega API break - fix QgsFeature geometry getters/setters
2016-08-02 09:21:25 +10:00
Nyall Dawson
b7ca001c9c Add __nonzero__ and __bool__ methods to QgsGeometry 2016-08-02 08:39:58 +10:00
Alexander Bruy
1d2b0b4ca7 [processing] don't apply additional parameter if offset curve operation is used (fix #15342) 2016-08-01 15:26:58 +03:00
Alexander Bruy
98a5527406 [processing] add missed import (fix #15359) 2016-08-01 15:04:21 +03:00
Nyall Dawson
bd7d913379 Refine QgsFeature geometry getters/setters
All pointer based methods have been removed.

Now we have only:

  void setGeometry( const QgsGeometry& geom )

and

  QgsGeometry geometry() const

Benefits include avoiding a whole lot of tricky pointer lifetime
issues, potential memory leaks, and finally closing #777, which
has survived for over 9 years!...

Impacts on PyQGIS code:
- no more need for the messy
  g = QgsGeometry( feature.geometry() )
  workaround, just use g = feature.geometry() instead
- IMPORTANT: you can no longer test whether a feature has geometry
 using `if f.geometry():`, since QgsFeature::geometry() will
 *always* return an object. Instead, use
 `if not f.geometry().isEmpty():`, or preferably the new method
 `if not f.hasGeometry():`

Fix #777
2016-08-01 16:25:46 +10:00
radosuav
1da60c530d [Processing] Fix exception on right click ToolboxAction (#3347) 2016-08-01 00:09:23 +02:00
Alexander Bruy
7f6bae1f5e [processing] use '-te_crs' parameter only if supported by GDAL 2016-07-28 13:39:22 +03:00
Alexander Bruy
b3a38f4018 [processing] fix issues with exported layers in GDAL provider 2016-07-26 15:00:26 +03:00
Alexander Bruy
6ccf7264a6 [processing] fix condition in warp alg 2016-07-26 15:00:26 +03:00
Alexander Bruy
01dd338677 [processing] fix dialog title 2016-07-25 16:24:44 +03:00
Alexander Bruy
48cca3bc12 [processing] always use user-defined default folder for scripts/models 2016-07-25 16:22:21 +03:00
Alexander Bruy
b167c09e44 [processing] use default models folder when adding model from file (fix #15335) 2016-07-25 14:17:46 +03:00
Alexander Bruy
4e94963af5 [processing] different shortcut for commander (fix #15334) 2016-07-25 14:13:48 +03:00
Alexander Bruy
2fbb617d61 [processing] also fix case without dissolving 2016-07-22 15:43:04 +03:00
Alexander Bruy
9976c30c9a [processing] fix buffer tool 2016-07-22 15:37:16 +03:00
Nyall Dawson
1a2231f10c Rename QGis class to Qgis, for capitalisation consistency 2016-07-21 22:01:38 +10:00
volaya
df2ca2e607 [processing] use SilentProgress by default if no progress object is passed 2016-07-21 07:01:17 +02:00
volaya
6c486758c2 [processing] changed saga decorated group name 2016-07-21 07:01:16 +02:00
Akbar Gumbira
20a2a20025 [processing] Fix add script from file. 2016-07-18 13:11:54 +02:00
volaya
a0bfc4c99e [processing] do not remove menus when exiting config dialog 2016-07-18 09:07:05 +02:00
Nyall Dawson
6c6f3c1e34 Remove deprecated members from QgsMapLayer 2016-07-15 06:02:45 +10:00
Nyall Dawson
2db7fca7a6 [processing] Add tests for clip algorithm 2016-07-14 08:05:59 +10:00
Nyall Dawson
9e1ddcb54d [processing] Allow modification of feature request when using
vector.features

Allows for optimising the request through subsets of attributes
or no geometry fetching
2016-07-13 12:06:41 +10:00
Juergen E. Fischer
e451b9ad6f indentation and spelling fixes 2016-07-08 12:59:38 +02:00
Martin Dobias
47eae5865a [processing] Fix preconfigured alg creation (fixes #15100) 2016-07-05 19:32:33 +02:00
Matthias Kuhn
143cfab104 [processing] Difference: don't ignore invalid geometries by default
Fix #9297
2016-07-04 00:43:36 +02:00
Matthias Kuhn
f6710b0528 python3 fixes 2016-07-03 14:54:26 +02:00
Alexander Bruy
a12152c724 Merge pull request #3238 from medspx/processing_g7_raster_tests
[processing] more grass7 unit tests and their fixes
2016-06-29 19:49:58 +03:00
Alexander Bruy
1b60b088a2 [processing] support more field types 2016-06-27 14:18:31 +03:00
Médéric RIBREUX
ef4a0d8d08 Move problematics tests at the end of tests... 2016-06-26 21:20:19 +02:00
Médéric RIBREUX
4140655f20 Remove 3 unit tests that don't perform well in osgeo4travis 2016-06-26 17:29:53 +02:00
Médéric RIBREUX
a1c541ee6d Add another bunch of tests for rasters 2016-06-26 16:13:39 +02:00
Médéric RIBREUX
2a98098c13 Fix r.li interfaces 2016-06-26 16:12:03 +02:00
Médéric RIBREUX
758f917ecb Fix r.his 2016-06-26 12:48:31 +02:00
Médéric RIBREUX
b68800e188 Fix r.fillnulls 2016-06-26 12:36:27 +02:00
Médéric RIBREUX
25411c733c Fix r.composite 2016-06-26 11:58:19 +02:00
Alexander Bruy
87fea73647 [processing] add support for longlong fields in spatial join alg (fix #15072) 2016-06-24 15:10:49 +03:00
Alexander Bruy
67493514be Merge pull request #3231 from arnaud-morvan/processing_menu_translation
[processing] translate alg names in vector menu and options dialog
2016-06-24 08:49:42 +03:00
arnaud.morvan@camptocamp.com
9edab1e0a8 [Processing] Translate alg names in menu and options dialog 2016-06-23 17:38:46 +02:00
Alexander Bruy
c81b14d59e [processing] replace original layer name with exported in the final OGR command (fix #15099) 2016-06-22 15:16:32 +03:00
Alexander Bruy
b9b8d37cc0 [processing] add "-te_srs" option to gdal_warp (fix #15033) 2016-06-22 12:45:33 +03:00
Alexander Bruy
acc8274c87 remove debug output 2016-06-22 11:07:14 +03:00
Alexander Bruy
e4c1d896e9 [processing] fix gdal_contour algorithm 2016-06-22 11:05:05 +03:00
Alexander Bruy
e0c9733f64 [processing] speedup Hub distance algorithm (fix #15012) 2016-06-21 16:56:21 +03:00
Alexander Bruy
2d9b2a354b [processing] use bulk features loading to speedup spatial index creation 2016-06-21 16:56:21 +03:00
Matteo
f3bbf897d2 Small fix in write.csv option (#3225) 2016-06-20 21:23:05 +02:00
Sandro Santilli
57ff59aa2d Ignore files generated during "make check" 2016-06-16 18:38:36 +02:00
Sandro Santilli
e241ab9b01 Remove generated test files from repository
Fixes #14976
2016-06-16 18:27:33 +02:00
Juergen E. Fischer
3a91d92d56 translation string fixes 2016-06-15 11:43:57 +02:00