36687 Commits

Author SHA1 Message Date
Denis Rouzaud
3d3856580f Qt 5.2 has QComboBox::currentData 2017-01-16 12:06:01 +01:00
Alessandro Pasotti
39a5f6a4f9 Merge pull request #3999 from elpaso/wfst-fixes-15597-16043
[bugfix] WFS-T Fixes #15597 #16043
2017-01-16 11:55:10 +01:00
Alessandro Pasotti
9324bdac1f [bugfix] WFS-T Fixes #15597 #16043
This commit fixes a few bugs on WFS-T with
servers that support WFS-T > 1.0.0 when user
configure version != 1.0.0 ("auto" is the default).

It also fixes WFS-T multiple operations on GeoServer
when an insert operation is among them and the feature
store does not return generated feature ids for the
inserted features (i.e. shapefiles).

Tested on GeoServer and QGIS Server

 (cherry-picked from 502a8da40380)
2017-01-16 11:38:14 +01:00
Alexandre Neto
0fdd168de3 Replace mActionCheckQgisVersion.PNG by SVG 2017-01-16 10:26:00 +00:00
Denis Rouzaud
bf22cbfa9d [spellcheck] fix case detection + some fixes 2017-01-16 10:56:42 +01:00
Denis Rouzaud
5679fb0417 [spell check] allow global replace
also fix matching case
2017-01-16 10:30:15 +01:00
rldhont
474252a6f3 Merge pull request #3985 from dmarteau/revisit_server_exceptions
Server: revisit server exceptions
2017-01-16 10:05:20 +01:00
Martin Dobias
b340d7bdb6 Add willBeDeleted() signal to QgsMapLayer (#3998)
This allows pieces of code that depend on map layers to listen directly
to the layer's notification rather than having to listen to project's
layersWillBeRemoved signal (and cycle through the whole list)
2017-01-16 16:51:44 +08:00
Nyall Dawson
6d23b0450c Merge pull request #3992 from nyalldawson/distance_otf
Don't disable project ellipsoid choice when canvas OTF reprojection is disabled
2017-01-16 17:08:56 +10:00
Nyall Dawson
5e459d7b25 Merge pull request #3995 from nyalldawson/render_context
Remove rasterScaleFactor/setRasterScaleFactor from QgsRenderContext
2017-01-16 17:08:26 +10:00
Nyall Dawson
3274e1926f Remove more unused raster scale factor handling 2017-01-16 16:50:54 +10:00
Nyall Dawson
48797fa9b7 Remove unused (and not useful) QgsRenderContext::constPainter getter
Since const QPainters cannot be painted to, there's no value in
leaving this in the API
2017-01-16 16:19:00 +10:00
Nyall Dawson
cc56c80b5b Small cleanups and documentation improvements for QgsRenderContext 2017-01-16 16:18:59 +10:00
Nyall Dawson
430af90cfa Remove rasterScaleFactor/setRasterScaleFactor from QgsRenderContext
These were not being used by QGIS code (always left at default 1.0
value), and removing them from the api allows us to simplify lots
of code. It also makes QgsRenderContext scaling much less confusing.
2017-01-16 16:18:58 +10:00
Nyall Dawson
49411210b0 [composer] Remove QgsComposerMap::storeCurrentLayerSet
This method was used to sync the canvas layers to a composer map.
The logic has been moved to app to avoid a dependancy between
compositions and the main map canvas
2017-01-16 15:52:19 +10:00
Nyall Dawson
f96364e8dc [composer] Cleanup handling of wms layer/advanced effect detection 2017-01-16 15:52:19 +10:00
Nyall Dawson
8a9cee0fb6 [composer] Use reference map when creating render context for
draw shape/arrow/nodes/paper symbols

This commit removes some more instances where changes in the
canvas affect compositions. Previously the symbols drawn
in shape/arrow/etc items were using the scale from the canvas.
This meant that the appearance of these items in composer
would change depending on canvas zoom if they used symbols
with map unit sizes.

Now they take their map scale from the composition's reference
map. While this has the nice side effect that now map units
can be used in the appearance of these items and they're
guaranteed to match up with the reference map item, the main
intention here is to remove more of the forced links between
compositions (core) and the main canvas (app).
2017-01-16 15:52:19 +10:00
Nyall Dawson
8a722d2981 Move QgsSymbolLayerUtils::createRenderContext to QgsRenderContext::fromQPainter
This method is useful in many contexts outside of symbology
2017-01-16 15:52:19 +10:00
Nyall Dawson
f32d11b508 [composer] Use largest map in composition as reference map if no
reference map is explicitly set
2017-01-16 15:52:19 +10:00
Nyall Dawson
e0934d7766 [composer][needs-docs] Rename "world file map" option to "reference map"
This option will be used for more than just world file generation,
and instead will indicate which map should be considered the master
map for the composition from which any composer properties
calculating map units will derive the scale from.
2017-01-16 15:52:19 +10:00
Jorge Gustavo Rocha
2de18c92fc SLD parsing: handling ogc:Literal within CssParameter 2017-01-15 23:41:32 +00:00
Jorge Gustavo Rocha
6ba303e3ad SLD parsing: handling ogc:Literal within CssParameter 2017-01-15 19:47:01 +00:00
Even Rouault
5abe66b4c7 GML parser: do not use layer extent as feature geometry if the feature has no geometry 2017-01-15 12:24:59 +01:00
David Marteau
8b0526d678 Revisit server exceptions
- Add server exception base class
    - Enable per service exception definition
    - Handle QgsException gracefully (error 500)
    - Handle OGC exception versioning
2017-01-14 22:17:45 +01:00
David Marteau
c128d13ddf Remove dead code 2017-01-14 18:48:30 +01:00
Even Rouault
283d45a443 Merge pull request #3993 from rouault/fix_16009
GML parser: fix parsing of typenames and geometry names with non-ASCII character (#16009)
2017-01-14 16:28:49 +01:00
Even Rouault
6de4fceec2 GML parser: fix parsing of typenames and geometry names with non-ASCII character (#16009) 2017-01-14 16:09:54 +01:00
Denis Rouzaud
b412ceb109 Split (#3988)
* add coreutils to travis

* ppa for coreutils backport
2017-01-14 12:36:02 +01:00
Nyall Dawson
e399ce36b7 Reword ellipsoid string to clarify that it also applies to area calculation 2017-01-14 19:52:50 +10:00
Nyall Dawson
797abbd718 [needs-docs] Rename 'Parameters:' ellipsoid option to 'Custom'
To better respect UI standards
2017-01-14 19:50:27 +10:00
Nyall Dawson
24c990f15f [needs-docs] Don't restrict project ellipsoid choice when
canvas OTF reprojection is disabled

These two settings aren't necessarily related - you may want
to disable OTF canvas reprojection while still wanting accurate
distance/area measurements using an ellipsoid.

This change should make distance/area calculation in QGIS more
reliable and predictable for users. Calculations are now
based entirely on the ellipsoid choice in project properties, so
it only takes checking a single setting to verify how
measurements are calculated.
2017-01-14 19:45:22 +10:00
Nyall Dawson
7d2cd371d8 [composer] Avoid some use of composition map settings 2017-01-14 19:14:48 +10:00
Nyall Dawson
6ffe50704f [composer] Remove support for upgrading pre 2.2 project atlas map
settings

Open the project in a recent 2.x release and resave to upgrade
the project
2017-01-14 19:14:48 +10:00
Nyall Dawson
b5480633e4 Standardise names for static variables
All non-const variables are prefixed with "s", all const
statics are ALL_CAPS
2017-01-14 16:40:24 +10:00
Nyall Dawson
231f6af0e1 Don't return const references to implicitly shared Qt classes
Instead return the inexpensive copies. Should provide extra safety
against issues like #14822

(refs #14822)
2017-01-14 15:53:45 +10:00
Alexandre Neto
776c22f815 replace PNG files by SVG
mIconProjectionDisabled.svg
mIconProjectionEnabled.svg
transformed.svg
copyright_label.svg
2017-01-14 00:27:43 +00:00
Hugo Mercier
ef8a135f1b Merge pull request #3987 from mhugo/servermultithread
[server] parallel map rendering
2017-01-13 16:16:14 +01:00
Alexander Bruy
49b6c5f342 [processing] more fixes to "selection" type settings handling 2017-01-13 16:43:16 +02:00
Alexander Bruy
3605d4fce3 Revert "[processing] handle string settings from previous install (followup 03eaad5bfd)"
This reverts commit daf65d8fdf3f8eb238c07f682c4d9a508e613f7a.
2017-01-13 16:38:30 +02:00
Alexander Bruy
daf65d8fdf [processing] handle string settings from previous install (followup 03eaad5bfd) 2017-01-13 15:50:38 +02:00
Alexander Bruy
f01b2f0597 [processing] extent is mandatory parameter for interpolation algorithms 2017-01-13 15:50:38 +02:00
Alexander Bruy
ce88da6eb9 [processing] raise error if cellsize is not defined in interpolation
algorithm
2017-01-13 15:50:38 +02:00
matteo
8994877717 processing zonal statistics 2017-01-13 12:37:51 +01:00
matteo
c259070102 processing single to multi test 2017-01-13 12:37:51 +01:00
matteo
7958db29d1 processing mean coordinates test 2017-01-13 12:37:50 +01:00
matteo
2c6649358a processing points along lines test 2017-01-13 12:37:50 +01:00
matteo
94856b59b1 processing qgis count points weighted 2017-01-13 12:37:39 +01:00
matteo
590abf0a44 processing qgis countsuniquepoints test 2017-01-13 12:37:39 +01:00
Alessandro Pasotti
1a6b977386 [server] C++ 11 style default virtual destructor 2017-01-13 09:32:21 +01:00
Alessandro Pasotti
0f7dfc9285 [server] QsgServerInterface available without python 2017-01-13 09:29:33 +01:00