10239 Commits

Author SHA1 Message Date
Nyall Dawson
e33647dc5a Move OGR processing provider specific methods to GdalUtils 2017-08-14 04:56:24 +10:00
Nyall Dawson
97a8d1a7a2 Fix failing test 2017-08-14 04:56:24 +10:00
Nyall Dawson
1a5648722a Port GDAL Ogr2OgrPostgis to new API 2017-08-14 04:56:24 +10:00
Nyall Dawson
d45215ebc1 Cleanup conversion of input layers to OGR compatible sources 2017-08-14 04:56:24 +10:00
Nyall Dawson
6301ff6606 Resurrect OGR points along lines algorithm 2017-08-14 04:56:24 +10:00
Nyall Dawson
ab079f9d92 ogrConnectionString reuses existing context 2017-08-14 04:56:24 +10:00
Nyall Dawson
ce8e18da10 Fix overridden function signatures 2017-08-14 04:56:24 +10:00
Nyall Dawson
5c888c5830 Resurrect gdal warp algorithm 2017-08-14 04:56:24 +10:00
Nyall Dawson
014833a6ff Restore gdal algorithm support 2017-08-14 04:56:24 +10:00
Matthias Kuhn
b51a5f7b6f Simplify QgsGeometryEngine code 2017-08-13 20:19:32 +02:00
Matthias Kuhn
e3787effc6 Doxymentation 2017-08-13 20:19:32 +02:00
Matthias Kuhn
581b89e0ec Use pointers and not references to QgsAbstractGeometry
because using this more consistently throughout the codebase makes it
easier to maintain code.
We also do not want to call the copy constructor on them, using pointers
just makes this more obvious. Further, casting is also something
that's commonly done on pointers and not references.

And if you want a value or a reference, just use QgsGeometry, it's meant
to be handled like this.
2017-08-13 20:19:32 +02:00
Nyall Dawson
9be7b27d8c Merge pull request #5001 from nyalldawson/algs
Restore some processing functionality
2017-08-14 02:23:05 +10:00
Nyall Dawson
913bf64e65 Fix some possible exceptions in topocolor alg 2017-08-14 01:42:16 +10:00
Nyall Dawson
a056e24a02 Fix exception in TopoColor algorithm 2017-08-14 01:42:16 +10:00
Nyall Dawson
47fe2a182d Port Points From Lines to new API 2017-08-14 01:42:16 +10:00
Nyall Dawson
c6b3855b41 Port Points From Polygons to new API 2017-08-14 01:42:15 +10:00
Nyall Dawson
c8ac7841f0 Port Points Displacement algorithm to new API
Rework algorithm to use same approach as points displacement
renderer. Also maintain Z/M values, and add tests and docs.
2017-08-14 01:42:15 +10:00
Matthias Kuhn
ee3ab4da1b Merge pull request #4541 Add qgsgeometry_cast
Because it

* is faster than dynamic_cast
* doesn't rely on RTTI
* encapsulates type checking in one place
2017-08-13 16:14:43 +02:00
Sebastian Dietrich
479e3cb736
Reset digitizing tools when new project is loaded/created
Refs #4237 https://issues.qgis.org/issues/4237
2017-08-13 14:21:39 +02:00
Matthias Kuhn
d0f33d6d05
Expose makeValid() errors to QgsGeometry::error() 2017-08-13 12:18:55 +02:00
Matthias Kuhn
d9ad859a81
Fix misplaced SIP_TRANSFER 2017-08-13 10:28:42 +02:00
Nyall Dawson
69c991ed87 Restore ability to create processing tests from history panel 2017-08-13 16:56:58 +10:00
Matthias Kuhn
639d0640a9
NULL to nullptr 2017-08-12 19:26:20 +02:00
Matthias Kuhn
a6800d6a5a
Add qgsgeometry_cast
Because it
- is faster than dynamic_cast
- doesn't rely on RTTI
- encapsulates type checking in one place
2017-08-12 19:26:20 +02:00
arnaud.morvan@camptocamp.com
e34a593c65 [FEATURE] Add expression function array_agg 2017-08-12 10:18:21 +02:00
Juergen E. Fischer
c8876f2c23 fix fix !"@$% 2017-08-11 17:27:59 +02:00
Juergen E. Fischer
025a23451b fix utf8 python translation string 2017-08-11 17:26:38 +02:00
Harrissou Sant-anna
24adf77e5d more typo fixes 2017-08-11 13:17:15 +02:00
Mathieu Pellerin
1053823369 [processing] improve rasterize dialog UI, add help (#5008) 2017-08-11 13:29:58 +07:00
Nyall Dawson
13431ca123 Bump minimum tile size to 64 for rasterise alg 2017-08-11 04:46:15 +10:00
Nyall Dawson
ab21f3e26b Small cleanups to rasterise alg 2017-08-11 04:33:18 +10:00
Nyall Dawson
7d7c06cd85 Implement widget wrapper for QgsProcessingParameterMapLayer 2017-08-11 04:33:18 +10:00
Nyall Dawson
e0fbe3409a Use ellipsis for isolated strings in plugins too 2017-08-11 04:33:18 +10:00
nirvn
dc58c1ad15 [processing] fix non-normal blending composition for the rasterzie alg 2017-08-10 15:39:55 +02:00
Matthias Kuhn
abf768141b More verbose python testing output 2017-08-10 08:03:50 +02:00
Juergen E. Fischer
03e0298f49 msvc warning fixes:
* use AUTORCC to avoid locked qrc_images.cpp during build of gui tests
* bump minimum version of cmake to 3.0.0 for AUTORCC
* suppress some warnings in sip bindings
* suppress unreachable warnings and some more
* split sip files in more parts to suppress warning BK4504
* also remove old WITH_INTERNAL_YAML from travis
2017-08-10 00:09:14 +02:00
Alessandro Pasotti
d9a2492fc2 Merge pull request #4953 from boundlessgeo/gpkg-enhancements
Expose GeoPackage to the browser tree
2017-08-09 22:46:24 +02:00
Alessandro Pasotti
bcb48f2bdc Fixes two issues with the browser refresh
1. endless loop when a sqlite-based layer is opened, and
   wal+shm files are created. This triggers a loop because
   the directoryChanged signal is emitted again and again ...
   This was the real blocker.

2. when a new files appears in a directory
   the directoryChanged is emitted and OGR/GDAL may fail
   to open the file because the file copy was not yet
   finished.

This commit fixes 1 but the fix for 2 is only a best effort using
a 100 ms timer: I could not find a definitive solution to this issue,
a file could be legitimately opened in streaming mode and it will
always triggers an error, there is apparently no way to get
the QFileSystemWatcher emit a signal when new files are closed
flusehd and not when they are just created.
2017-08-09 08:59:17 +02:00
Alessandro Pasotti
1c3fadebbb Sip update for qgsproject 2017-08-09 08:59:17 +02:00
Alessandro Pasotti
61504e7073 Expose GeoPackage to the browser tree 2017-08-09 08:59:17 +02:00
Mario Baranzini
d9f71deb30 Remove osgeo.gdal.UseExceptions() 2017-08-08 21:49:05 +02:00
Mario Baranzini
f792661c1c Refactoring of rasterize algorithm 2017-08-08 20:59:58 +02:00
Mario Baranzini
baede356bb Refactoring 2017-08-08 17:16:17 +02:00
Mario Baranzini
bbfdcf3615 Fix header comment 2017-08-08 09:45:59 +02:00
Mario Baranzini
0533cfd708 Refactoring and added better comments 2017-08-08 09:45:59 +02:00
Mario Baranzini
525aeaba1a Added processing algorithm to convert map to raster 2017-08-08 09:45:59 +02:00
Nyall Dawson
3fd2e0921d Fix ownership issue with layout guides 2017-08-07 22:31:44 +10:00
Nyall Dawson
94362fe218 Add signal when page is about to be deleted 2017-08-07 21:43:31 +10:00
Nyall Dawson
e453116101 [needs-docs] Refine snapping logic for layouts
Previously grids would always take precedence when both a grid
and guide were within tolerance of a point.

Now, guides will always take precedence - since they have been
manually set by users we make the assumption that they have
been explicitly placed at highly desirable snapping locations,
and should be selected over the general grid.

Additionally, grid snapping was previously only done if BOTH
x and y could be snapped to the grid. We now snap to the nearest
grid line for x/y separately. This means if a point is close
to a vertical grid line but not a horizontal one it will still
snap to that nearby vertical grid line.
2017-08-07 19:34:28 +10:00