1593 Commits

Author SHA1 Message Date
Nyall Dawson
fefd85adef Fix some leaks 2015-09-28 18:42:24 +10:00
Larry Shaffer
dd9b37b4c9 [auth] Skip unit tests if qca-ossl plugin is missing 2015-09-26 02:01:15 -06:00
Nyall Dawson
228d816b3b Merge pull request #2330 from boundlessgeo/master-2_11-auth-system
Authentication configuration system with master password
2015-09-26 05:45:28 +10:00
Nyall Dawson
dd759370bd [FEATURE][composer] Option to restrict image/SVG outputs to content
If selected, then the images output by composer will include only
the area of the composition with content. There's also an option
for margins to add around the item bounds if required.

If the composition includes a single page, then the output will
be sized to include EVERYTHING on the composition. If it's a
multi-page composition, then each page will be cropped to only
include the area of that page with items.

A new image export options dialog has been added to facilitate
this, which also includes handy shortcuts for overriding the
print resolution or exported image dimensions.

Sponsored by NIWA
2015-09-25 18:55:35 +10:00
Nyall Dawson
2f343008c1 [FEATURE][composer] Add fit page to contents option
New option in the composition panel, with optional extra margins
to add

Sponsored by NIWA
2015-09-25 18:55:35 +10:00
Nyall Dawson
2215d48712 [FEATURE][composer] Add option to hide pages from view/export
Sponsored by NIWA
2015-09-25 18:55:35 +10:00
mhugent
8cec2c935f Merge pull request #2302 from manisandro/geometry_plugins
Geometry Checker and Geometry Snapper plugins
2015-09-25 02:39:50 +02:00
Larry Shaffer
264d2ebbdd [auth] Update auth config tests; strip passphrase from QgsPkiBundle 2015-09-24 06:44:05 -06:00
Larry Shaffer
83e0b81afc [auth] Update python tests (keep disabled); add auth config tests
- Add comparison operators to QgsAuthMethodConfig
2015-09-24 05:34:25 -06:00
Martin Dobias
249c87822f One common class for labeling configurations (QgsAbstractVectorLayerLabeling)
This is +/- equivalent of QgsFeatureRendererV2 for vector layer labels

This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-24 15:48:05 +08:00
Martin Dobias
44ae0b8cea Loading and saving of rule-based labeling rules
This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-24 15:48:05 +08:00
Martin Dobias
1782d1a505 [FEATURE] Rule-based labeling
Work in progress

This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-24 15:48:05 +08:00
Nyall Dawson
8a949fa1a6 Fix some leaks 2015-09-24 08:25:23 +10:00
Larry Shaffer
c519e06e29 [auth system] Add PKI test data 2015-09-21 08:51:19 -06:00
Larry Shaffer
e65aa99ae7 [FEATURE] Authentication configuration system with master password
- Main C++ core and gui classes and desktop app integration
- Support for authentication method plugins
- Does not contain any integration with service connections
2015-09-21 08:51:18 -06:00
Radim Blazek
22313dc80d [GRASS] cleanup tmp files after test 2015-09-21 14:48:09 +02:00
Martin Dobias
50d4e720a7 [FEATURE] Mutually exclusive layer tree groups (only one child may be checked at a time)
The feature can be toggled individually for groups - in layer tree view context menu.

This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-21 19:30:15 +08:00
Nyall Dawson
a4d980d055 Port from expressions+ plugin: color_part, set_color_part, day_of_week 2015-09-21 19:57:58 +10:00
Radim Blazek
fae065494a [GRASS] fixed test if current user is not owner of source 2015-09-21 11:54:44 +02:00
Sandro Mani
2ea4ee9a21 Remove fragile centroid of self-intersecting polygon test 2015-09-21 10:03:25 +02:00
Martin Dobias
d43176af60 Fix server labeling tests
This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-21 12:57:11 +08:00
Martin Dobias
7d22536ab0 Update the labeling engine tests
This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-21 12:57:10 +08:00
Martin Dobias
6cc1f4c2cb Fix unit tests and issues with cached layers
This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-21 12:57:09 +08:00
Martin Dobias
d0fcc9557f More labeling engine refactoring
- QgsPalLabeling now internally uses new engine
- label/diagram providers can hook into rendering loop to avoid extra feature loops
- map rendering uses the new engine instead of QgsPalLabeling

This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-21 12:57:09 +08:00
Martin Dobias
8100495df6 Integrate new labeling engine into the map rendering
Now used instead of QgsPalLabeling for labels/diagrams

This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-21 12:57:09 +08:00
Martin Dobias
1d0d0e0662 [FEATURE] New API for labeling engine (QgsLabelingEngineV2)
The idea is to make the engine more flexible compared to QgsPalLabeling implementation:
- abstract dealing with text labels / diagrams from the engine itself
- allow multiple types of labels per layer
- support custom label providers (e.g. implemented by plugins)
- make the labeling engine independent from map rendering engine
- make it easier to auto-test the labeling engine and its components

This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-21 12:57:09 +08:00
Nyall Dawson
e21cc78cc4 Fix failing test 2015-09-18 10:47:09 +10:00
Nyall Dawson
55027e545f Clean up and extend expression geometry functions:
- New expression functions for area(geom), perimeter(geom),
point_n(geom), start_point(geom), end_point(geom), make_point(x,y)
- Add new variant to length() function which takes a geometry object,
allows for length(geom) evaluation.
- Rename x_at, y_at to $x_at, $y_at (alias old names) to reflect that
these only work on current feature geometry
- Add x(geom), y(geom) functions which return x and y coordinate
for point geometries or centroid x/y for non-point geometries
(fix #11008)
2015-09-18 09:09:09 +10:00
Sandro Santilli
55dbc041a8 [FEATURE] Add num_points(geometry) support in expression evaluator
Includes tests and help text.
2015-09-17 14:23:19 +02:00
Nyall Dawson
586d59a432 [FEATURE] Add option to map unit scaling for limiting size in mm
Previously only the option to limit the scale range of the scaling
was available. Now you can also choose to limit the corresponding
rendered size in mm.
2015-09-17 20:35:27 +10:00
Nyall Dawson
b6930204c5 More QgsMapUnitScale tests 2015-09-17 20:35:16 +10:00
Nyall Dawson
f0a2fc1925 QgsMapUnitScale fixes:
- add docs
- add missing SIP bindings
- remove unnecessary cast from double->float->double
- add unit tests
2015-09-17 20:35:00 +10:00
Nyall Dawson
a62c6a917a Give symbol widgets optional access to a map canvas
This allows symbol widgets to fetch properties from the main map
canvas, for instance fetching the current scale from the map.
2015-09-16 21:57:27 +10:00
Nyall Dawson
59c43f194a [composer] Fix data defined map style/layer set, add test
(fallout from expression contexts)
2015-09-15 20:45:22 +10:00
Juergen E. Fischer
481d2c071e remove duplicate semicolons 2015-09-15 12:08:38 +02:00
Matthias Kuhn
b8b760e2bb Write important test output to travis console 2015-09-14 17:55:09 +02:00
Nyall Dawson
d897624704 [composer] Fix generation of world file when map is not on first page
fix #13262
2015-09-14 20:15:12 +10:00
Nyall Dawson
499d0da585 Update acceptable missing doc coverage 2015-09-14 09:24:28 +10:00
Juergen E. Fischer
23ea045d49 indentation update 2015-09-12 15:25:56 +02:00
mhugent
8640c13002 Merge pull request #2298 from nyalldawson/fix_13099
Fix #13099 - removal of geometries using node tool
2015-09-11 16:57:23 +02:00
Matthias Kuhn
efcbbfdaeb Move maptools from app->gui 2015-09-11 12:02:25 +02:00
Nyall Dawson
390ea4e9ba Sort variables in variable editor 2015-09-11 17:11:48 +10:00
Matthias Kuhn
23a9922c06 Sort tests in CMakeLists.txt 2015-09-09 17:40:26 +02:00
Sandro Mani
78a122cc54 Add QgsDataSourceURI test 2015-09-09 17:39:01 +02:00
Nyall Dawson
dbded4d91d Avoid some unnecessary QString construction 2015-09-09 19:17:50 +10:00
Nyall Dawson
f628ebd423 Replace foreach with Q_FOREACH
For:
- consistency
- to make it immediately clear that this is a Qt macro and that it
works slightly differently to c++ for loops
2015-09-09 19:17:29 +10:00
Nyall Dawson
7c10760225 Followup 73ffb83a, finishing changing all Q_FOREACH to references 2015-09-09 19:17:19 +10:00
Nyall Dawson
acd8f26a91 Fix removing whole ring by progressively deleting nodes (fix #13099) 2015-09-09 16:51:00 +10:00
Nyall Dawson
806da2d385 Fix QgsGeometry::insertVertex and deleteVertex compatibility with
<2.10 API and multipoint geometries

Also fix a crash in QgsGeometryCollection::removeGeometry
2015-09-09 16:11:09 +10:00
Nyall Dawson
fe5085e8e1 Fix up missing geometry tests (refs #13099) 2015-09-09 15:17:38 +10:00