4537 Commits

Author SHA1 Message Date
volaya
e5dd93663e [processing] fixed I/O of models 2017-04-20 14:03:09 +02:00
volaya
54e30b93f3 improvements for extracts within subsets 2017-04-20 14:03:08 +02:00
Denis Rouzaud
be9a51c42d sipify QgsMapLayerModel, QgsMapLayerProxyModel 2017-04-19 16:44:36 +02:00
Denis Rouzaud
0b0e8a6a89 move QgsFieldModel and QgsFieldProxyModel to core and sipify 2017-04-19 16:44:36 +02:00
Alexander Bruy
737906c55c [processing] add information message when feature skipped 2017-04-19 14:06:16 +03:00
Alexander Bruy
1016119468 [processing] prevent division by zero in random points in polygons fixed 2017-04-19 14:01:41 +03:00
Alexander Bruy
3b5b191730 [processing] fix parsing selection parameter in translate algorithm 2017-04-19 12:23:35 +03:00
Nyall Dawson
cc5b9bfe17 More QgsDistanceArea API cleanups and simplification
- setEllipsoidalMode() was removed. Ellipsoidal calculations are
now enabled whenever a valid ellipsoid() has been set. Set the
ellipsoid to 'NONE' to disable ellipsoidal calculations.

- ellipsoidalEnabled() was removed. Ellipsoidal calculations
are now enabled whenever a valid ellipsoid() is set. Check
willUseEllipsoid() to determine whether ellipsoidal
calculations will be performed.

- sourceCrs() and setSourceCrs() now always take and return
QgsCoordinateReferenceSystem objects. All string/ID based CRS
methods were removed.

- geographic() was removed. This was only used internally
in one place, so was replaced with sourceCrs().isGeographic() instead.

- some largely overlapping measurement functions were consolidated
2017-04-18 08:14:16 +10:00
matteo
16c8dac2ac travis fix 2017-04-12 21:07:30 +02:00
matteo
bca0ca25ee 2 new plots added 2017-04-12 21:07:30 +02:00
matteo
0c5b667986 fix category error and remove np dependency 2017-04-12 21:07:30 +02:00
Alexander Bruy
a82aba9cd6 Merge pull request #4338 from timlinux/processing-fixes
[processing] Added more error handling for cases when processing help causes an error
2017-04-07 08:46:20 +03:00
Alexander Bruy
2308b07671 fix indentation 2017-04-07 08:25:02 +03:00
Nyall Dawson
837ee29488 Indentation 2017-04-07 13:38:24 +10:00
Nyall Dawson
11d71d98bc Attempt to fix failing GDAL test 2017-04-07 13:34:06 +10:00
Nyall Dawson
5a6f11d52e Some cleanups 2017-04-07 13:21:28 +10:00
Nyall Dawson
1bc3b28f94 Fix processing error when grass7 not available 2017-04-07 13:21:28 +10:00
Nyall Dawson
ebd851993a Remove processing specific methods for adding/removing providers
QgsProcessingRegistry methods should always be used instead
2017-04-07 13:21:28 +10:00
Nyall Dawson
fdcf04f9f3 Remove AlgorithmProvider
Totally ported to QgsProcessingProvider
2017-04-07 13:21:28 +10:00
Nyall Dawson
42a614154c Also refactor provider context menu actions and remove from AlgorithmProvider 2017-04-07 13:21:28 +10:00
Nyall Dawson
651355d569 Refactor provider actions and remove from AlgorithmProvider 2017-04-07 13:21:28 +10:00
Nyall Dawson
117260dcf3 Remove activation control from AlgorithmProvider
Split between QgsProcessingProvider and subclasses
2017-04-07 13:21:28 +10:00
Nyall Dawson
ff32054da6 Fix some breakage 2017-04-07 13:21:28 +10:00
Nyall Dawson
3739c3aa51 Move tr out of AlgorithmProvider to subclasses 2017-04-07 13:21:28 +10:00
Nyall Dawson
9a97a87b4d Use display name in algorithm help 2017-04-07 13:21:28 +10:00
Nyall Dawson
fb1cf1e185 Remove processing algList
All functionality has been moved to QgsProcessingRegistry
2017-04-07 13:21:28 +10:00
Nyall Dawson
4970bb4cd5 Move more algList functionality to QgsProcessingRegistry 2017-04-07 13:21:28 +10:00
Nyall Dawson
2a1a71574a Move algorithm id (previously commandLineName) to QgsProcessingAlgorithm 2017-04-07 13:21:28 +10:00
Nyall Dawson
b3142a0baf Move provider algorithm handling to QgsProcessingProvider 2017-04-07 13:21:28 +10:00
Nyall Dawson
0e72fe0591 Fix error when trying to run processing algs
Caused by trying to deepcopy a c++ object. This is a temporary
fix - when the next part of the processing/c++ work lands algorithm
copies will no longer be required
2017-04-07 09:36:45 +10:00
Etienne Trimaille
9c832adc51 disable export button if we try to export a raster layer (#4319) 2017-04-07 09:14:36 +10:00
Tim Sutton
2bdef02bfa Added more error handling for cases when processing help causes an error 2017-04-06 12:13:50 +02:00
Borys Jurgiel
e5d10b6946 Fix Refactor Fields error if layer has no features 2017-04-06 10:14:01 +02:00
Richard Duivenvoorde
a30cf2923c Fix dutch service url
English 'eng' is now a poorly implemented redirect to 'dut', which fails. So fixing this already here while the redirect is fixed at the Kadaster
2017-04-05 13:58:03 +02:00
Nyall Dawson
377b181c4e Port more processing dataobjects methods to c++
Also
- simplify and add tests
- remove large memory leak (persistant store of all non-project layers)
- remove broken support for direct loading postgres/virtual layers
by string (Python version was very broken and would never match
a postgres/virtual layer)
2017-04-05 19:50:46 +10:00
Nyall Dawson
ee29fa66f9 Use QgsMapLayerComboBox in processing field calculator 2017-04-05 18:39:12 +10:00
Nyall Dawson
8ffdb362cc Port some processing dataobjects routines to c++ 2017-04-05 15:27:17 +10:00
Nyall Dawson
51517fd77e Merge pull request #4311 from nyalldawson/proc_c4
Simple c++ base class for processing algorithms
2017-04-05 06:17:11 +10:00
volaya
85e83e1470 [Processing] prevent error when running escapeAndJoin with empty param string
fixes #16200
2017-04-04 15:10:58 +02:00
volaya
7a12d5fa32 Revert "[Processing] prevent error when running escapeAndJoin with empty param string"
This reverts commit c2a566a3a7bfe369832e5361a0c582bfe2ea5a98.
2017-04-04 15:09:45 +02:00
volaya
c2a566a3a7 [Processing] prevent error when running escapeAndJoin with empty param string
fixes #16200
2017-04-04 13:02:31 +02:00
volaya
84897e3d14 [processing] cast setting size value to int
fixes #16347
2017-04-04 12:09:36 +02:00
volaya
439b9de98d fixed saga algorithm to adapt it to 2.3 syntax 2017-04-04 11:04:22 +02:00
Nyall Dawson
d2a242aa95 Move format handling flags to QgsAlgorithmProvider 2017-04-04 08:15:54 +10:00
Tom Kralidis
c403994d02 [FEATURE] [needs-docs] MetaSearch: add support for ESRI MapServer/FeatureServer layer integration (fixes #16320) 2017-04-03 12:22:59 -04:00
Tom Kralidis
d6433c5b4c MetaSearch: set 4326 as default CRS, use WKT to feed polygon geometry 2017-04-03 08:01:18 -04:00
Nyall Dawson
6e8a696ef4 Update PreconfiguredAlgorithm for new API 2017-04-03 21:20:56 +10:00
Nyall Dawson
2be4c6a15e Fix failing test 2017-04-03 21:17:45 +10:00
Nyall Dawson
a0bd464232 Use formatted name for algorithm names
Avoids conversion of names later and gives clearer separation
between visible names and internal names
2017-04-03 21:17:45 +10:00
Nyall Dawson
e506ceb1f8 Move flags (hide from toolbox, etc) to QgsProcessingAlgorithm 2017-04-03 21:17:45 +10:00