4878 Commits

Author SHA1 Message Date
nirvn
1305cccbd9 Fix new geopackage layer test 2017-12-07 16:55:52 +07:00
nirvn
38c96fe373 [ui] use qgsfilewidget in the create geopackage layer dialog 2017-12-07 16:22:58 +07:00
Nyall Dawson
61c57bc20e Save and restore layouts with project 2017-12-07 08:50:01 +10:00
Nyall Dawson
d69290ea50 Indentation 2017-12-07 08:50:01 +10:00
Nyall Dawson
a9896eac05 Port a bunch of QgsLayoutManager methods to use QgsLayouts 2017-12-07 08:50:01 +10:00
Nyall Dawson
b0dea08bbe Fix pages are incorrectly loaded from templates when adding items 2017-12-07 08:49:53 +10:00
Nyall Dawson
885f0a5602 Handle linking items when adding from templates 2017-12-07 08:49:53 +10:00
Nyall Dawson
a4dea9935f Restore ability to save layouts to templates and add items from template 2017-12-07 08:49:41 +10:00
Nyall Dawson
59b6bf62ab Add a method to clear an existing layout 2017-12-07 08:49:41 +10:00
Nyall Dawson
8feac30f07 Add method to clear page collections for layouts 2017-12-07 08:49:41 +10:00
Nyall Dawson
6a78d489c0 Restore paste in place functionality 2017-12-07 08:49:41 +10:00
Nyall Dawson
b7e338bd2d Add test for pasting items at set position 2017-12-07 08:49:41 +10:00
Nyall Dawson
ef9e013a5a Fix crashes when rapidly deleting/undeleting objects
Also fix some leaks
2017-12-07 08:49:41 +10:00
Nyall Dawson
acb956a5e7 Deduplicate code relating to shifting item positions in layout units 2017-12-07 08:49:41 +10:00
Nyall Dawson
d2fcf11336 [layouts] Add context menu entries for "copy" and "delete" item to
items list panel right click menu

Refs #11581
2017-12-07 08:49:33 +10:00
Nyall Dawson
feec186fbf [layout] Add context menu entries for cutting/copying, and pasting items
Fixes #1830
2017-12-07 08:49:33 +10:00
Nyall Dawson
b03ce047db Start restoring copy/paste functionality 2017-12-07 08:49:33 +10:00
Nyall Dawson
f60da58256 Add some unit tests 2017-12-07 08:49:33 +10:00
Nyall Dawson
b74a0efa34 Work on layout and layout item serialization and restoration 2017-12-07 08:49:33 +10:00
Denis Rouzaud
b72c569cf3 [doxygen] replace @see by \see 2017-12-06 08:31:12 -04:00
Blottiere Paul
b7fe407f55 Update tests 2017-12-06 07:56:11 +00:00
Blottiere Paul
cc660b186b Add some tests 2017-12-06 07:25:12 +00:00
Martin Dobias
ba9e19954b
Merge pull request #5798 from wonder-sk/polygon-3d-fixes
[3d] Tessellator fixes + culling mode configuration for 3D polygons
2017-12-05 10:54:48 +01:00
Nyall Dawson
fa5a8311d1 Fix coverity null pointer dereference warnings 2017-12-05 10:56:07 +10:00
Nyall Dawson
75c99800d0 Fix coverity ignored return value warnings 2017-12-05 10:34:33 +10:00
Nyall Dawson
b26c14ef04
Merge pull request #5799 from nyalldawson/mingw
Mingw build fixes and windows build warning fixes
2017-12-05 10:51:21 +11:00
Nyall Dawson
4689537842 Fix build warning 2017-12-05 08:30:52 +11:00
Martin Dobias
b773d617b1 [3d] Tessellator fixes + culling mode configuration for 3D polygons
- missing vertical walls since a recent tessellator crash fix (fixes #17604)
- choice of the culling mode - no culling / back face / front face (fixes #17619)
- more unit tests for tessellator
2017-12-04 22:28:14 +01:00
Nyall Dawson
113c21e8bf [geometry snapper] Don't create invalid geometries with duplicate nodes
Fixes #15247
2017-12-03 15:10:53 +10:00
Nyall Dawson
e12621ce2a Add API method to remove duplicate nodes from geometries
Removes duplicate nodes from the geometry, wherever removing the
nodes does not result in a degenerate geometry.

By default, z values are not considered when detecting duplicate
nodes. E.g. two nodes with the same x and y coordinate but
different z values will still be considered duplicate and one
will be removed. If useZValues is true, then the z values are
also tested and nodes with the same x and y but different z
will be maintained.

Note that duplicate nodes are not tested between different
parts of a multipart geometry. E.g. a multipoint geometry
with overlapping points will not be changed by this method.

The function will return true if nodes were removed, or false
if no duplicate nodes were found.

Includes unit tests and a processing algorithm which exposes
this functionality.
2017-12-03 14:58:21 +10:00
Nyall Dawson
0b452cabbb Spelling 2017-12-03 08:03:30 +10:00
Nyall Dawson
928afdd8c5 Fix geometry snapper sometimes creates unwanted overlapping segments
when snapping line layers

Because the default behavior of the snapper is to insert extra
vertices into the snapped geometry in order to make it 'follow'
the reference geometries exactly, this can result in unwanted
results for line layers where the resultant snapped layer
has overlapping line segments.

Since we can't always know what the desired result is that the
user wants (maybe they do want overlapping lines), instead
give them control over the result by exposing extra enum
options which never insert extra vertices.
2017-12-03 07:10:42 +10:00
Mathieu Pellerin
bec099ea33
Fix displayed extent for US National Atlas CRS (and others) on projection map (#5738) 2017-12-02 14:36:33 +07:00
Nyall Dawson
389435e1a0
Merge pull request #5729 from nyalldawson/proc_dyanmic
[processing] Expose dynamic ("data defined") numeric parameters to gui
2017-12-02 14:32:45 +11:00
Nyall Dawson
ecbc4718d4 [processing] Some more framework for dynamic (data defined) parameters 2017-12-02 11:16:26 +10:00
Nyall Dawson
9e4518fe42 [FEATURE] More output format choices in raster save as dialog
Previously only geotiff format was available, even though the
underlying QgsRasterFileWriter/GDAL libraries support other
formats.

This commit exposes those other formats to the dialog so that
users can directly save rasters to them (including everyone's
new BFF, geopackage).
2017-12-02 11:11:45 +10:00
Nyall Dawson
aaa18e0b89 Address review comments 2017-12-02 09:01:25 +10:00
Nyall Dawson
791eb91b9b Fix OGR provider cannot create attribute or spatial indexes for
GeoPackage/SQLite layers

Previously this capability was only exposed for shapefiles,
but was available in the spatialite provider. We don't use that
for GeoPackages, so I've ported the functionality across to
the OGR provider for these data sources.

Includes unit tests
2017-12-02 08:27:49 +10:00
Nyall Dawson
bcc1b91b74
Merge pull request #5717 from nyalldawson/layout_next4
[layouts] Port/adapt all remaining item types
2017-12-01 13:43:58 +11:00
Nyall Dawson
c12770d041 Indentation 2017-12-01 10:00:42 +11:00
Martin Dobias
8aa05735de
Merge pull request #5768 from wonder-sk/fix-17514-crs-change
Fix 3D view if terrain DEM is in different CRS
2017-11-30 17:30:30 +01:00
Nyall Dawson
ded892eaee [needs-docs] Add some shortcuts for opening the attribute table
Adds:
- shift + f6: show table filtered to selected features
- ctrl + f6: show table filtered to visible features

(These are alongside the existing 'f6' shortcut which opens the
table using the default mode set via the options dialog)
2017-11-30 20:23:40 +11:00
Martin Dobias
62543eb421 [3d] Cleaned up code for camera translation + tests 2017-11-29 11:45:30 +01:00
Nyall Dawson
e4ce62342c
Merge pull request #5758 from nyalldawson/leftof
Geometry "leftOf" improvements
2017-11-29 15:51:22 +11:00
Nyall Dawson
a3a79b9a1e Fix network analysis routing fails in some cases (refs #11687) 2017-11-29 15:50:58 +11:00
Nyall Dawson
3341a3e91e Unify behavior of various geometry API leftOf tests
Now instead of mixing bools/numeric returns, we always use
ints, where:
-1 = left
0 = test failed, e.g. point on line
1 = right

Also fix a bunch of extra issues identified with left of tests
as a result of these changes
2017-11-29 10:04:20 +10:00
Radim Blazek
2f43deb9da closestSegmentWithContext() doc and test fix 2017-11-29 09:14:11 +10:00
Nyall Dawson
e34d7fb636 Fix left of test for linestrings
The test was returning invalid results for certain geometries
2017-11-29 06:45:33 +11:00
Blottiere Paul
a316530b86
Merge pull request #5744 from pblottiere/refrel_crash
[bugfix]  Fixes a crash in QgsRelationReferenceWidgetWrapper
2017-11-28 13:59:05 +00:00
Nyall Dawson
7a09f0890e
Merge pull request #5727 from nyalldawson/sublayer
Fix ogr sublayer handling of names containing ":"
2017-11-28 14:47:34 +11:00