2842 Commits

Author SHA1 Message Date
nirvn
8b74201470 [FEATURE] array support for the replace() expression function 2016-10-26 17:01:56 +07:00
Even Rouault
2d2ce00341 Merge pull request #3665 from rouault/save_style_gpkg
[FEATURE] [OGR provider] Load/save style in database for GPKG and Spatialite
2016-10-26 11:04:25 +02:00
Nyall Dawson
6f82740670 [expressions] Allow non-greedy regex by switching to QRegularExpression 2016-10-26 16:04:38 +10:00
Even Rouault
3b77e4b395 [FEATURE] [OGR provider] Load/save style in database for GPKG and Spatialite 2016-10-25 10:28:54 +02:00
Nyall Dawson
1367fd09fc Prepare commit converts single line doxygen block format
Flips single line doxygen comments to use the proper single line
format:

/*!< comment */   to   //!< Comment

and

/** comment */    to   //! Comment
2016-10-25 09:17:39 +10:00
Matthias Kuhn
cc0ada9f11 Add a hyperlink to the processing tests readme 2016-10-24 14:37:28 +02:00
Harrissou Sant-anna
8f13d4e242 typo fix 2016-10-24 14:33:22 +02:00
Sandro Santilli
96e7883b13 Add more links to test-relted README files 2016-10-24 11:43:36 +02:00
Sandro Santilli
31cd7a81a3 Add link to processing test document 2016-10-24 11:20:22 +02:00
Even Rouault
af236c4ef8 Merge pull request #3628 from rouault/dbmanager_gpkg
[DBManager] Add dedicated GeoPackage plugin
2016-10-24 10:33:03 +02:00
Nyall Dawson
4166a3ea62 Fix most clazy qstring-unneeded-heap-allocations warnings
By flipping string literals to QStringLiteral/QLatin1String

see

https://woboq.com/blog/qstringliteral.html
2016-10-24 15:26:24 +10:00
Nyall Dawson
8fa8167d7b Add a simple dialog for configuring text formatting 2016-10-24 12:02:00 +10:00
Nyall Dawson
76c12ba94c Split QgsLabelingGui off into QgsTextFormatWidget
New widget allows for setting just the formatting properties
of text
2016-10-24 12:02:00 +10:00
Nyall Dawson
a5356011fc Test masks 2016-10-24 12:02:00 +10:00
Nyall Dawson
08143475ed [FEATURE] QgsTextRenderer class for rich text rendering
Moves all the drawing code out of labeling into a new class
which just handles rendering text. This allows other parts
of the code to utilise all the advanced formatting options
that labeling supports, eg rendering text with shadows,
buffers and backgrounds.
2016-10-24 12:02:00 +10:00
Nyall Dawson
4d5e7536d9 Flip QgsPalLayerSettings to use QgsTextRenderer classes 2016-10-24 12:02:00 +10:00
Nyall Dawson
5f241d6288 Implicitly shared text settings classes 2016-10-24 12:02:00 +10:00
Nyall Dawson
687c66f5d6 Add Points as valid render unit (for font sizes) 2016-10-24 12:02:00 +10:00
Matthias Kuhn
54b953f433 Cleanup and modernize QgsProject code 2016-10-23 20:54:41 +02:00
Nyall Dawson
fae8071a1e Fix clazy qstring-arg warnings
Avoid chained QString::arg() calls and instead use the multi-arg
overload to save memory allocations
2016-10-22 22:46:15 +10:00
Nyall Dawson
f2672151c2 Fix clazy qfileinfo-exists warnings
From the clazy docs:

Finds places using QFileInfo("foo").exists() instead of the faster
version QFileInfo::exists("foo"). According to Qt's docs: "Using
this function is faster than using QFileInfo(file).exists() for
file system access."
2016-10-22 22:46:14 +10:00
Nyall Dawson
ef5110732b Fix clazy "qstring-ref" warnings
From the clazy docs:

Finds places where QString::fooRef() should be used instead of
QString::foo(), to avoid temporary heap allocations

eg

str.mid(5).toInt(ok) // BAD

str.midRef(5).toInt(ok) // GOOD
2016-10-22 22:46:14 +10:00
Denis Rouzaud
64d3c788f1 Use toolbar or status bar for snapping config 2016-10-20 12:56:35 +02:00
Matthias Kuhn
f3482d2ce2 Rename visibility presets to map themes part 2 (#3641) 2016-10-20 12:55:48 +02:00
nirvn
455874258c [legend] insure multi-line labels are vertically centered with tall symbols 2016-10-19 10:02:43 +07:00
Even Rouault
d10e564b57 [DBManager] Add tests for GPKG plugin 2016-10-18 20:08:27 +02:00
Even Rouault
68cb04a549 [OGR provider] Support full SELECT subset string
This will be useful for DBManager SQL request layer.
2016-10-18 20:08:27 +02: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