40688 Commits

Author SHA1 Message Date
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
92da308466 Delete gpkg connections 2017-08-09 22:21:55 +02:00
Andreas Neumann
267286ee61 Correct an error in array_slice function description
There was a copy/paste error in the "name"
2017-08-09 16:34:20 +02:00
Alessandro Pasotti
bc921b4a56 Updated file header for geopackage data items
also added "db" to multiple layers extensions
2017-08-09 09:32:11 +02:00
Alessandro Pasotti
2752510937 Removed PNG version of GPKG icon 2017-08-09 09:04:52 +02:00
Alessandro Pasotti
7704901e23 Added mGeoPackage svg icon 2017-08-09 09:01:51 +02:00
Alessandro Pasotti
2741be0c0c Added file path to debug msg output on errors 2017-08-09 08:59:17 +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
a2d4e822a2 Changed geopackage icon to svg 2017-08-09 08:59:17 +02:00
Alessandro Pasotti
e14e6482d7 Remove initial : from the sublayers name in the browser tree 2017-08-09 08:59:17 +02:00
Alessandro Pasotti
9430a90610 Added raster support to browser geopackage data items 2017-08-09 08:59:17 +02:00
Alessandro Pasotti
030b234c1b Initial support for extension-based scan on multiple layers 2017-08-09 08:59:17 +02:00
Alessandro Pasotti
e19c60beae Small typo 2017-08-09 08:59:17 +02:00
Alessandro Pasotti
399aba8bb4 Added a comment to this fertility line :) 2017-08-09 08:59:17 +02:00
Alessandro Pasotti
2b401459b8 Typo 2017-08-09 08:59:17 +02:00
Alessandro Pasotti
471b44724b Fix sublayers disappear when refreshing GDAL layers 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
f96513d7fe Fixes raster sublayer not apperaring in the browser tree 2017-08-09 08:59:17 +02:00
Alessandro Pasotti
64201f1b9b Move the default CRS for new layers function to QgsProject
The reason is that it needs to access to project's crs
and it's not only needed by app but also by the providers
(will be)
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
Matthias Kuhn
a12346cca4 Merge pull request #4998 from marioba/rasterize_provider
[FEATURE] Added processing algorithm to convert map to raster
2017-08-08 22:24:24 +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
425aa30fe9 Fix valgrind jump on uninitialised values warnings 2017-08-08 16:41:42 +10:00
Nyall Dawson
34e6a6126c Fix crash when editing feature after opening a form with relation reference widget
Also fixes a leak/performance issue - the attribute table model
for the relation reference widget is not parented to the widget,
so it is never cleaned up when the widget is deleted.

(forward port from f976e8b6)
2017-08-08 16:40:02 +10:00
Juergen E. Fischer
47ab1a74ae fix typos 2017-08-08 01:47:27 +02:00
Matthias Kuhn
132d7f2a1e Fix postgres server imposed NOT NULL constraint 2017-08-07 19:46:13 +02:00
Nyall Dawson
5a64f586a6 Merge pull request #4928 from nyalldawson/layout_next
Layout chapter IV: snapping and guides
2017-08-08 00:25:23 +10:00
Nyall Dawson
14546ec935 Fix unit test 2017-08-08 00:02:47 +10: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
04e6529efd Fix crash when creating guide and no pages in layout 2017-08-07 19:34:28 +10:00
Nyall Dawson
2f49329634 Use +/- icons instead of text 2017-08-07 19:34:28 +10:00
Nyall Dawson
419bdde558 Fix incorrect dialog title 2017-08-07 19:34:28 +10:00
Nyall Dawson
d3c2bf0f9c Fix locked widgets when switching to custom page size 2017-08-07 19:34:28 +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
Nyall Dawson
6d93411660 Add layout properties menu entry 2017-08-07 19:34:28 +10:00
Nyall Dawson
89f0ecd369 Add some other guide/ruler related actions to ruler right click menu 2017-08-07 19:34:28 +10:00
Nyall Dawson
66875641a3 Hook up snap to guides menu option 2017-08-07 19:34:28 +10:00
Nyall Dawson
9267f8676c Readd menu option to show/hide guides 2017-08-07 19:34:28 +10:00
Nyall Dawson
98ff702491 [FEATURE] Add a button in guide manager to apply current page's guides
to all other pages

This allows resetting all other pages to use the guide configuration
for the current page. Since guides are now single page only (required
to handle mixed page size/orientation layouts), this is a shortcut
to allow guide configuration to be setup on a single page and then
easily transferred to all other pages in the layout.
2017-08-07 19:34:28 +10:00
Nyall Dawson
c43a173ef8 Add a clear all guides button to guide manager 2017-08-07 19:34:28 +10:00
Nyall Dawson
33aa3525a3 Show different cursor and paint guide markers darker when hovering them in rulers 2017-08-07 19:34:28 +10:00
Nyall Dawson
4565d8d656 Add missing files 2017-08-07 19:34:28 +10:00
Nyall Dawson
df3bcddab7 Hook up clearing guides 2017-08-07 19:34:28 +10:00