577 Commits

Author SHA1 Message Date
Nyall Dawson
b4f88c5396 Update test masks for arrow symbol layer 2016-06-04 19:16:47 +10:00
Hugo Mercier
efd32ff2a8 Arrow symbol layer: option to repeat or not the arrow on the line 2016-06-02 09:52:03 +02:00
Hugo Mercier
6c9b588906 Arrow symbol layer: halved arrows and head width/height
The head size can now be configured by its width and its height
Arrows can also be rendered as "half arrows"
2016-06-02 09:52:03 +02:00
Nyall Dawson
ccc67ef7a5 Rename attributes support for postgres provider 2016-06-02 17:09:45 +10:00
Even Rouault
86f6e7eb0d Merge pull request #3142 from rouault/identify_result_float_precision
Do not print excessive decimals when identifying value on a Float32 raster
2016-05-30 17:46:08 +02:00
Even Rouault
4b130cbf42 Merge pull request #3134 from rouault/do_not_write_nodata_if_not_existing
Nodata related fixes
2016-05-30 17:45:48 +02:00
Nyall Dawson
ddd37ad8bd Merge pull request #3138 from sbrunner/limit
Add and fix WFS server MAXFEATURES test
2016-05-30 12:15:32 +02:00
Stéphane Brunner
47cf9240b3 Add and fix WFS server MAXFEATURES test
It was not working when we do a POST with an XML
2016-05-30 07:33:51 +02:00
Even Rouault
f3b635dcbb [GDAL provider] Ignore nodata value that are not representable in the data type.
This is related to commit e0d38ba3f912b7ae6b34e66a44e529ec37394458. In case
we have to deal with an inconsitent raster where the nodata value is set to
a value not representable in the data type, ignore it. Otherwise, a NaN value
in a Byte raster would be cast as 0.
2016-05-29 12:55:23 +02:00
Patrick Valsecchi
e79a327ab7 WMS GetCapabilities: override parent's style if they have the same name
When there is a layer group with several sub-layers, the group has a
"default" style and the sub-layers each have a "default" layer. QGIS
was showing two "default" styles for the sub-layers, which would be
confusing to the user and could pick the wrong legend for the
sub-layer if the user picked the wrong entry (the first one).

Had to create a static lib for wmsprovider in order to unittest it.
2016-05-29 12:47:57 +02:00
Even Rouault
147a68c0a0 Do not print excessive decimals when identifying value on a Float32 raster
Was reported in https://lists.osgeo.org/pipermail/qgis-user/2016-April/036045.html
2016-05-29 12:43:20 +02:00
Even Rouault
e0d38ba3f9 QgsRasterFileWriter::writeDataRaster(): do not set nodata on output when unneeded
Currently if the source raster has no nodata value, the writer will still write
nan as the output nodata value, ignoring the flag that specifies if there is a
nodata value or not. On a raster with byte data type, this will cause
confusion on reading since the nodata value will be somehow cast as 0.

Make QgsRasterChecker check for nodata consistency between source and target, and
add a test file that shows the issue.
2016-05-28 10:52:36 +02:00
Alvaro Huarte
6969a1a401 Fix travis errors 2016-05-25 22:53:01 +02:00
Alessandro Pasotti
92874025aa [server] WFS-T server and provider integration tests
Integration tests for WFS-T provider and WFS-T server.
The tests perform WFS-T CRUD operations on a QGIS Server
instance through WFS-T data provider.

Funded by Boundless
2016-05-25 16:55:49 +02:00
Alessandro Pasotti
10e8807655 [server] Added regression test for #8656
Ref. commit b956874f02a9379
2016-05-20 09:57:17 +02:00
Nyall Dawson
d73210a5f8 Update test mask image 2016-05-19 21:04:50 +10:00
Denis Rouzaud
1602c02df7 Merge pull request #3009 from pblottiere/magnifier
[FEATURE] add a map canvas magnifier
2016-05-19 06:30:07 +02:00
Nyall Dawson
57d114e2e2 Update test masks for Qt5, enable labeling tests 2016-05-15 20:38:38 +10:00
Blottiere Paul
b930a4b5e2 fix extent 2016-05-12 17:42:55 +02:00
Blottiere Paul
9a62613b6b [FEATURE] add a map canvas magnifier 2016-05-12 09:42:51 +02:00
Nyall Dawson
81e72b782f Merge pull request #3060 from nyalldawson/filled_marker
New "Filled marker" symbol layer type
2016-05-09 21:23:59 +10:00
Nyall Dawson
794ab065dc [FEATURE] Embed atlas feature into composer HTML source as GeoJSON
This change makes the current atlas feature (and additionally all
attributes of related child features) available to the source of
a composer HTML item, allowing the item to dynamically adjust
its rendered HTML in response to the feature's properties. An
example use case is dynamically populating a HTML table with
all the attributes of related child features for the atlas
feature.

To use this, the HTML source must implement a "setFeature(feature)"
JavaScript function. This function is called whenever the atlas
feature changes, and is passed the atlas feature (+related attributes)
as a GeoJSON Feature.

Sponsored by Kanton of Zug, Switzerland
2016-05-09 21:19:29 +10:00
Nyall Dawson
ea20149239 [FEATURE] New "Filled marker" symbol layer type
A "filled marker" is similar to the simple marker symbol layer, except
that it uses a fill sub symbol to render the marker. This allows use
of all the existing QGIS fill (and outline) styles for rendering
markers, eg gradient or shapeburst fills.

A new abstract class QgsSimpleMarkerSymbolLayerBase has been created
from which both QgsSimpleMarkerSymbolLayerV2 and
QgsFilledMarkerSymbolLayer derive. All common code has been moved to
this base class, allowing for easy addition of new shapes or features
to both simple markers and filled markers without duplication.

Also, adds a lot of missing docs to marker symbol layers.
2016-05-07 22:06:10 +10:00
Marco Hugentobler
e9d3a3aca4 Slightly more precise numbers for circular string centroids 2016-05-06 14:07:13 +02:00
Nyall Dawson
a67853f825 Fix calculation of point symbol bounds using data defined rotation or offset 2016-04-29 20:16:38 +10:00
Webmaster
fef8c1fef2 [FEATURE] add setting to control centroid fill point rendering
on all parts or a single part of multi-features (fixes #9199)
2016-04-27 21:10:41 +07:00
Matthias Kuhn
da0682d730 Add difference image 2016-04-23 21:09:21 +02:00
Nyall Dawson
fdd68963c7 [postgres] Improved handling of DOMAIN type fields
- show correct domain type as field type name
- correctly determine length and precision of domain types
- expose bpchar field type as 'character' to users, as postgres only
uses 'bpchar' internally and refers to bpchar as character in the
front end
2016-04-22 17:37:51 +10:00
nirvn
9735c13e33 [FEATURE] add outline settings to font markers 2016-04-22 09:09:00 +07:00
Nyall Dawson
90613ca5d3 One more xenial test mask update 2016-04-22 07:07:08 +10:00
Nyall Dawson
011bde8873 More xenial, Windows test mask updates 2016-04-22 06:39:00 +10:00
Nyall Dawson
eacca44c6f Test mask updates (qt5 and xenial) 2016-04-22 05:46:58 +10:00
Hugo Mercier
8f0f9ccbb2 Add mask images for arrow symbol layer test 2016-04-19 18:21:51 +02:00
Hugo Mercier
e849cad11d Merge pull request #2955 from mhugo/arrows
[Feature] Arrow symbol layer
2016-04-19 09:23:33 +02:00
Nyall Dawson
efb84ea2fa [FEATURE][diagrams] Add optional legend entries for diagram sizes
A new "legend" tab has been added to diagram properties, allowing
both the existing attribute legend and a new size legend to be
enabled/disabled. The size legend has a configurable marker
symbol.

Also includes unit tests for both diagram attribute and size
legends.

Sponsored by ADUGA
2016-04-19 08:16:05 +10:00
Hugo Mercier
1ee0bc5704 Add @geometry_point_count and @geometry_point_num 2016-04-18 11:36:18 +02:00
Hugo Mercier
34b7ebc2b5 Add a new "arrow" symbol layer
The "arrow" symbol layer is a symbol layer allowing to draw straight
or curved arrows from a line layer.
2016-04-18 11:36:12 +02:00
Nyall Dawson
81744ecf90 Another missing Qt5 test mask 2016-04-18 17:10:39 +10:00
Nyall Dawson
a44d0c1fac Add a missing qt 5 mask image 2016-04-18 16:20:34 +10:00
Nyall Dawson
c24938e3e4 Update test masks for Qt5, enable more tests on Travis Qt5 builds 2016-04-18 15:23:02 +10:00
Nyall Dawson
02e0e3f959 Fix other feature's geometries are shown instead of null geometry
in delimited text provider (fix #14666)

Add tests, also fix virtual layer, mssql and db2 providers which
suffered the same bug
2016-04-13 15:42:24 +10:00
Nyall Dawson
4bbe318c20 [symbology] Remove distorted star symbol 2016-04-12 12:12:57 +10:00
Nyall Dawson
ce2891b10e Fix missing map settings expression variables in composer maps
Missing map extent related variables were causing stacking order
issues with the 25d renderer (fix #14604)
2016-04-12 09:14:03 +10:00
Nyall Dawson
0c5fa81126 Fix huge legend item size when symbol uses map unit sizes (fix #13979)
Add unit test
2016-04-11 15:34:49 +10:00
Matthias Kuhn
a6a77ee46b Remove remainders of buggy pg test 2016-04-07 22:51:43 +02:00
Matthias Kuhn
5cd2319c3f Also retrieve generated values for pktInt 2016-04-07 21:26:43 +02:00
Matthias Kuhn
eecd77a324 Fix postgres unit test 2016-04-07 21:24:01 +02:00
Matthias Kuhn
e98e16f1b2 Unit test for 4ec97c33 2016-04-07 15:59:22 +02:00
Nyall Dawson
d464f86290 [FEATURE] Null ("No symbol") renderer
Using this renderer no symbol will be drawn for features, but labeling,
diagrams and other non-symbol parts will still be shown.

Selections can still be made on the layer in the canvas and selected
features will be rendered with a default symbol. Features being edited
will also be shown.

This is intended as a handy shortcut for layers which you only want
to show labels or diagrams for, and avoids the need to render
symbols with totally transparent fill/border to achieve this.

(fix #12131)
2016-04-06 20:55:26 +10:00
Nyall Dawson
86ec27e08e Use real values when interpolating color components in gradients 2016-04-06 20:55:26 +10:00