2766 Commits

Author SHA1 Message Date
nirvn
455874258c [legend] insure multi-line labels are vertically centered with tall symbols 2016-10-19 10:02:43 +07:00
rldhont
2655ceda30 Merge pull request #3595 from rldhont/fix_server_legend_layertitle
[BUGFIX][QGIS Server] GetLegendGraphic: if LAYERTITLE is false disable layer name in legend
2016-10-18 16:44:11 +02:00
Even Rouault
8c37370310 Fix 70ae301310c7a58134ac699fae70af7fd1176684
70ae301310c7a58134ac699fae70af7fd1176684 requires a recent enough GDAL trunk
or GDAL 2.1.2
2016-10-18 15:59:40 +02:00
Even Rouault
70ae301310 [OGR provider] Update layer extent for GPKG layers
When moving or deleting a geometry that previously touched the layer extent,
the layer extent was never shrinked.

This fix requires GDAL 2.1.2 or above as well.

Fixes #15273
2016-10-18 15:03:21 +02:00
Even Rouault
1b48a7432a test_provider_ogr_gpkg.py: remove stuff that shouldn't have gone in 348af7ed5267f66f5ac2426be303a4ea69edd96f 2016-10-18 14:17:38 +02:00
Even Rouault
348af7ed52 test_provider_ogr_gpkg.py: pyflakes fixes 2016-10-18 14:16:20 +02:00
rldhont
a51ef42924 [BUGFIX][QGIS Server] GetLegendGraphic: if LAYERTITLE is false disable layer name in legend
If the layer has only one legend node, it is embedded in parent.
In QGIS Server the user can specify no layer title, so the layer title has not be displayed.
2016-10-18 12:17:45 +02:00
Nyall Dawson
e8be0ed988 [composer] Allow syncing pictures to true north
Previously pictures could only be synced to grid north, which
can be totally wrong for many CRSes (especially in polar areas)

Users now are given a choice of grid or true north, and can also
enter an optional offset to apply if eg magnetic north is instead
desired.

When synced to true north the bearing is calculated using the
centre point of the linked map item.

Fix #192, #4711

This fix was sponsored by the Norwegian Polar Institute's
Quantarctica project (http://quantarctica.npolar.no) and
coordinated by Faunalia.
2016-10-18 13:45:52 +10:00
Nyall Dawson
fb860fb618 New class QgsBearingUtils with method to calculate true north 2016-10-18 13:45:52 +10:00
Nyall Dawson
a6148deb30 [FEATURE] Data defined symbol layer visibility
Adds a data defined override to control a symbol layer's
visibility. Allows users to disable drawing certain symbol layers
for matching features.
2016-10-18 13:22:22 +10:00
Nyall Dawson
b8c2e68fc5 [FEATURE] Allow symbol layers to be temporarily disabled
Adds a new checkbox at the bottom of each symbol layer's
properties which allows you to control whether the layer is
enabled or not.

Disabled layers are not drawn, but are saved and can be
enabled at a later stage.

This makes it easier to tweak symbol appearance without
having to totally delete a symbol layer.
2016-10-18 13:22:22 +10:00
Nyall Dawson
4589a807d0 Followup ecee438 2016-10-18 12:38:31 +10:00
Nyall Dawson
ecee43814a Fix changing project CRS from legend doesn't correctly set CRS
Also avoid fragile duplicated code for setting/retrieving
common project properties

Fixes #15717
2016-10-18 09:55:56 +10:00
Even Rouault
da0ee8b007 Merge pull request #3597 from rouault/saveas_overwrite_append
[FEATURE] Vector layer save as: offer file/layer overwriting, new layer creation, feature and field appending
2016-10-17 11:22:28 +02:00
Sandro Santilli
ada9348e2b Fix PostgreSQL import of layers with multi-column or quoted-column keys
Fixes #15226 (drag & drop of postgresql views)
Includes test
2016-10-14 10:43:41 +02:00
Nyall Dawson
47c1f6e635 Merge pull request #3602 from nirvn/composer_table_custom_grid
[FEATURE] control over drawing of composer table grid horizontal & vertical lines
2016-10-14 16:42:25 +10:00
Nyall Dawson
721d3c5bfb Fix color widget opens in wrong panel (fix #15705) 2016-10-14 16:30:55 +10:00
nirvn
ec2d7fea0c [FEATURE] control over drawing of composer table grid horizontal & vertical lines 2016-10-14 13:20:59 +07:00
Sandro Santilli
d30a8c1fc2 Add hint about running specific test methods in python unit tests 2016-10-13 20:32:53 +02:00
Even Rouault
34894c6f5a [FEATURE] Vector layer save as: offer file/layer overwriting, new layer creation, feature and field appending
When saving a vector layer into an existing file, depending on the capabilities
of the output driver, the user can now decide whether:
- to overwrite the whole file
- to overwrite only the target layer (layer name is now configurable)
- to append features to the existing target layer
- to append features, add new fields if there are any.

All above is available for drivers like GPKG, SpatiaLite, FileGDB, ...
For drivers like Shapefile, MapInfo .tab, feature append is also available.
2016-10-13 11:38:41 +02:00
Sandro Santilli
0f4cba5c2d Fix bogus precision/scale in PostgreSQL for double values
This reverts commit 92f71b696ca93c792ae5602ed82863fcef0e5006,
which broke import of legit shapefiles by assuming wrong
semantic for the non-constraining QgsField length/precision
attributes.

Closes #15188

Includes test
2016-10-12 20:48:35 +02:00
Nyall Dawson
2665eb50a6 Correctly handle edit buffer when using request with limit (fix #15505) 2016-10-12 16:31:49 +10:00
Nyall Dawson
ddfe91f763 Fix @geometry_point_num and @geometry_point_count for marker lines
Fixes #15673
2016-10-10 19:53:15 +10:00
Nyall Dawson
748d8acddb Fix first marker is drawn twice for marker line interval mode 2016-10-10 19:53:15 +10:00
Nyall Dawson
c1cf896c1a Fix invalid values for @map_extent_width/height (fix #15672) 2016-10-10 19:53:15 +10:00
Nyall Dawson
3a76708bcb Fix renaming a virtual field leads to crash (fix #15669) 2016-10-09 09:03:52 +10:00
Even Rouault
a5a18c2eb1 [OGR provider] Make feature iterator work on GeometryCollection sublayers
When trying to reproduce http://hub.qgis.org/issues/10485, I noticed a regression.
Now attribute table no longer shows features with OGR GeometryCollection.

Fixes also issues where sublayer geometry type is too strict regarding 2D vs 2.5D
geometry types.

Fixes #15675
2016-10-07 13:42:05 +02:00
Even Rouault
3a906a188c [OGR provider] Force REPACK at the first edit action.
In the case where we deal with a shapefile, it is possible that it has
pre-existing holes in the DBF (see #15407), so if using a GDAL version
recent enough (>=2.1.2) to have reliable packing, do a packing at the
first edit action.

Fixes #15407
2016-10-07 12:14:52 +02:00
Even Rouault
e5f7cdcba4 [WFS provider] Be robust to field names ending with spaces in DescribeFeatureType
Fixes #3426
2016-10-06 23:18:22 +02:00
Even Rouault
1ebd5a454d [WFS provider] Do not append crs at end of BBOX in WFS 1.0
Fixes #15464
2016-10-06 19:09:24 +02:00
Even Rouault
5b6e4b80b1 [OGR provider] Check if REPACK has emitted errors
Refs #15393 and #15570
Real fix for the REPACK issues has been committed per
GDAL ticket https://trac.osgeo.org/gdal/ticket/6672 (GDAL 2.1.2 or above)

Add test to simulate the situations that caused problems.
2016-10-06 16:14:45 +02:00
Juergen E. Fischer
daf8f7a244 fix PyQgsAppStartup (followup d9349e5) 2016-10-06 15:54:27 +02:00
Juergen E. Fischer
d9349e5bbb update configuration settings to qgis3 2016-10-06 11:40:42 +02:00
Alexander Bruy
dcdf91b09a Merge pull request #3507 from alexbruy/memory-provider-25d
Add support for 2.5D geometries to memory provider
2016-10-06 11:37:19 +03:00
rldhont
5d64a8b55c Merge pull request #3551 from rldhont/ogcutils_propertyIsLike_attributs
[BUGFIX] Support OGC PropertyIsLike attributs
2016-10-06 10:27:47 +02:00
Even Rouault
702eace76c Merge pull request #3532 from pvalsecc/discover_relations
Add auto-discovery of relations for PostgresQL and SpatiaLite
2016-10-06 10:26:06 +02:00
Nyall Dawson
37e3dd76c4 When taking main widget from QgsPanelWidgetStack, auto accept
all open child panel widgets

Avoids the stack state becoming inconsistent because child
panel widgets from a different main panel are still present

And add unit tests for QgsPanelWidgetStack
2016-10-06 17:36:23 +10:00
Matthias Kuhn
722fdefe43 referencedColumns returns QSet<QString> instead of QStringList
The order of the elements is irrelevant and duplicate elements are unwanted. It
is therefore a perfect candidate for a set instead of a list. This prevents
filtering for duplicates manually be replacing some filer codes with (more
performant) builtin methods of QSet.
2016-10-05 14:33:38 +02:00
Alexander Bruy
2f66e1d6e2 add new geometry types to memory layer tests 2016-10-05 09:42:57 +03:00
Nyall Dawson
bc32b1fe5a Fix crash when validating geometry (fix #15660)
Also fix python bindings for QgsGeometryValidator
2016-10-05 13:17:55 +10:00
rldhont
52a78def7f Reactivate ogcutils tests and update its 2016-10-04 15:22:23 +02:00
rldhont
1d6e5d28e6 [BUGFIX] Support OGC PropertyIsLike attributs
The OGC PropertyIsLike element can have 4 attributs:
* matchCase to specify LIKE or ILIKE
* wildCard to specify a wildcard char symbol
* signleChar to specify a single char symbol
* escape to specify an escape char symbol
2016-10-04 15:22:02 +02:00
rldhont
b47f03db33 Fix testqgsogcutils 2016-10-04 15:22:02 +02:00
Nyall Dawson
19f6b62cd8 Fix layers with layer wide opacity "flashing" by rendering
intermediate states without opacity
2016-10-04 09:22:40 +10:00
Alessandro Pasotti
9761a86e4f Renamed constants for consistency 2016-10-03 20:47:32 +02:00
Alessandro Pasotti
d950e3b637 Yet another strategy to get a free port from the server 2016-10-03 19:43:25 +02:00
Alessandro Pasotti
28f547ea81 Wait for server ready (and times out) before starting the tests 2016-10-03 14:19:49 +02:00
Nyall Dawson
230417c7a8 Add method to create QgsMapToPixel from scale/dpi/mapunits 2016-10-03 11:19:04 +10:00
Juergen E. Fischer
ffaffadbfa fix typos 2016-10-01 17:58:12 +02:00
Matthias Kuhn
ff52a9f29b setAttributeAlias is now setFieldAlias 2016-10-01 15:39:03 +02:00