52855 Commits

Author SHA1 Message Date
Matthias Kuhn
0c71e720a3
JSON Support for GeoPackage [FEATURE]
Merge pull request #8707 from signedav/json-for-gpkg
Integration of JSON type of GeoPackage
2019-01-07 10:35:30 +01:00
Marco Hugentobler
f1d2239d5f 'returns' before 'since' 2019-01-07 08:55:20 +01:00
signedav
a6f8db15c5 use general json conversion because it works for the different types
like QVariantMap, QVariantHash, QVariantList or QStringList
as fallback still the QString conversion is available
2019-01-07 08:19:51 +01:00
Marco Hugentobler
ab4ca6f61b Try to make travis happy 2019-01-07 07:52:35 +01:00
Alex
69f6ea521b [mssql] Fix inserting features into tables with an after insert trigger attached
Fixes #20592
2019-01-07 11:48:41 +10:00
Nyall Dawson
efd54f862f [processing][SAGA] Resync Fill Sinks descriptions, add tests
Refs #20051
2019-01-07 09:55:46 +10:00
Nyall Dawson
45f8b863db [processing][SAGA] Resync parameters for resample tool
And add tests

Fixes #20882
2019-01-07 09:55:46 +10:00
Alessandro Pasotti
f6c7cdb4c8 Better check for QString::isEmpty() than for length() == 0
Not that it really makes any difference ...
2019-01-06 17:54:03 +01:00
Alessandro Pasotti
c6b0ae0aaf
Merge pull request #8795 from ismailsunni/clean_shortcut_list
Remove empty action in shortcut configuration list.
2019-01-06 15:58:43 +01:00
Ismail Sunni
48e4525abf Remove empty action in shortcut configuration list. 2019-01-06 12:59:01 +01:00
Denis Rouzaud
48db864836
add missing bits to API documentation (#8709)
* add missing bits to API documentation

* API docs

* mark function as deprecated

* Deprecate for Python

* Fix docstrings

* Fix see also link
2019-01-05 20:31:10 -05:00
Alessandro Pasotti
f075109d6a
Merge pull request #8793 from elpaso/bugfix-20693-server-LAYERTITLESPACE
[server] Respect layer title space when rendering legends
2019-01-05 21:40:07 +01:00
Alessandro Pasotti
7d592a01ba Add control image masks
Add more mask images (when image size does not match, generate_test_mask_image.py fails to update the mask)
2019-01-05 20:48:49 +01:00
Marco Hugentobler
fbe70f1467 Set spinbox maximum higher than 99 2019-01-05 15:19:56 +01:00
Marco Hugentobler
4e29558808 Add doc for new function 2019-01-05 15:19:56 +01:00
Marco Hugentobler
492ee5fe06 Allow to request all atlas features with 'ATLAS_PK=*' if the number is lower than the feature limit 2019-01-05 15:19:56 +01:00
Marco Hugentobler
2e7bf12ee1 Possibility to restrict number of atlas features (default: 1) 2019-01-05 15:19:55 +01:00
Marco Hugentobler
9ed7b0df42 Consider case where id is layer name 2019-01-05 15:16:39 +01:00
Marco Hugentobler
e7c0f361a8 Small tweaks 2019-01-05 15:16:39 +01:00
Marco Hugentobler
14935745f6 Spelling, doc and indentation 2019-01-05 15:16:39 +01:00
Marco Hugentobler
a145847ca7 Re-enable QgsProjectProperties::checkPageWidgetNameMap 2019-01-05 15:16:39 +01:00
Marco Hugentobler
583674bbb5 Remove diagrams from atlas print test as it shows different behaviour in different environments 2019-01-05 15:16:38 +01:00
Marco Hugentobler
df8940c6bf Add control image for atlas GetPrint test and fix some python stuff 2019-01-05 15:16:38 +01:00
Marco Hugentobler
23669b6891 Add unit tests 2019-01-05 15:16:38 +01:00
Marco Hugentobler
fedb1d87dd Fix atlas print for png and svg format (just give back first page) 2019-01-05 15:16:38 +01:00
Marco Hugentobler
22e54ba1ae Fix check if ATLAS_PK parameter is there 2019-01-05 15:16:38 +01:00
Marco Hugentobler
179be5af3b Add atlas to test project 2019-01-05 15:16:38 +01:00
Marco Hugentobler
10cbad7769 Get pk attributes from layer instead of provider 2019-01-05 15:16:38 +01:00
Marco Hugentobler
69de8f9a36 Show atlas layers, atlas coverage layers and primary key attributes in getProjectSettings response 2019-01-05 15:16:38 +01:00
Marco Hugentobler
21e3adfbca [FEATURE]: Possibility to set ATLAS_PK in GetPrint request to print atlas sheet(s) 2019-01-05 15:16:38 +01:00
Corentin Falcone
ed9c9b33af Add comment option on db_manager pluging postgis tables (#8734) [FEATURE]
Add possibility to create a comment on a postgres table when import or using the alter table button from db_manager.
2019-01-05 12:02:02 +01:00
Matthias Kuhn
be451d98c9
Merge pull request #8752 from anitagraser/patch-1
Refer to layers panel instead of legend
2019-01-05 12:00:52 +01:00
Nyall Dawson
e3c1d18f3a [layouts] Fix inefficient filtering in attribute tables
Set the expression filter on the request itself, rather than looping
through all features and testing on the filter. This allows providers
to hand off the filtering to the underlying datasource, and utilise
indices/etc where available.

Fixes #20908
2019-01-05 07:31:27 +10:00
Alessandro Pasotti
3c2392808d Update control images 2019-01-04 19:30:28 +01:00
Alessandro Pasotti
d49994005c [server] Respect layer title space when rendering legends
Fixes #20693 - LAYERTITLESPACE in GetLegendGraphic is not taken into account
2019-01-04 14:32:43 +01:00
nirvn
899dcbfff3 Fix assert crash for non-English UI locale (fixes #20834) 2019-01-04 13:56:39 +07:00
nirvn
b7a607c625 [themes] Move tab widget's pane up 1 pixel to improve border look 2019-01-04 10:11:07 +07:00
nirvn
b921378964 [themes] Adjust Night Mapping and Blend of Gray to improve display on windows
Fixes the combo box drop down list clipping text, as well as
the spinbox's up and down arrow.

Turns out having a single theme QSS that looks great across platforms
isn't straightforward.
2019-01-04 10:00:33 +07:00
Nyall Dawson
d59a346560 [processing][needs-docs] Standardize names of z/m value algorithms
Ensures consistent capitalization and (non)hyphenation of algorithm names
2019-01-04 05:01:40 +10:00
Nyall Dawson
cef9c4eaec [FEATURE][processing] New algorithms "Extract Z values" and "Extract m values"
These algorithms allow users to convert z or m values present in feature
geometries to attributes in the layer. By default the z/m value from the
first vertex in the feature is extracted, but optionally statistics
can be calculated on ALL the z/m values from the geometry (e.g. calculating
mean/min/max/sum/etc of z values).
2019-01-04 05:01:40 +10:00
Nyall Dawson
e99072b161 Add method to QgsStatisticalSummary to get a short name corresponding to a stat
Returns a short name, suitable for use in a field name
2019-01-04 05:01:40 +10:00
Nyall Dawson
5f817b4db3 Allow QgsStatisticalSummary to calculate first/last value
Trivial, but simplifies other code which desires to expose
a choice between first/last/min/max/mean/etc...
2019-01-04 05:01:40 +10:00
Nyall Dawson
5586352a13 [FEATURE][processing] New raster zonal stats algorithm
Like the vector zonal stats algorithm, but this one works with
the zones defined in another raster.

Iterates over the input rasters in blocks to be nice and
memory efficient.

From the algorithm help:

"This algorithm calculates statistics for a raster layer's
values, categorized by zones defined in another raster layer.

If the reference layer parameter is set to "Input layer",
then zones are determined by sampling the zone raster layer
value at the centroid of each pixel from the source raster
layer.

If the reference layer parameter is set to "Zones layer",
then the input raster layer will be sampled at the centroid
of each pixel from the zones raster layer.

If either the source raster layer or the zone raster layer
value is NODATA for a pixel, that pixel's value will be
skipped and not including in the calculated statistics."
2019-01-04 05:01:16 +10:00
signedav
666f95998d
Merge branch 'master' into basicfix 2019-01-03 12:43:20 +01:00
signedav
0373fe73a2 autogenerated sip in file 2019-01-03 12:00:53 +01:00
signedav
5a751950f8 fix - removes layers from project if they exist there 2019-01-03 11:53:39 +01:00
signedav
81faf95135 use uri to get layeritem to delete 2019-01-03 11:51:39 +01:00
signedav
d453006fe0 find index of layeritem with the passed uri 2019-01-03 11:50:24 +01:00
Alessandro Pasotti
a7c3aadf3d
Merge pull request #8785 from elpaso/bugfix-20601-processing-side
Pick up all layer entries references from the project context
2019-01-03 09:59:27 +01:00
Tudor Bărăscu
f4aa9a493b respect attribute table behavior settings
Fixes undocumented bug of attribute table settings (Show features Visible on Map etc.)
not being respected. The settings were saved correctly but QGIS didn't make use of them.
2019-01-03 11:48:07 +10:00