34845 Commits

Author SHA1 Message Date
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
Juergen E. Fischer
6db9a37172 osgeo4w: use package name in build directory
(cherry picked from commit 706431e31d6f0a288856ceeff39d7ce432c20633)
2016-10-07 11:26:52 +02:00
Even Rouault
b567fd0ac8 Merge pull request #3583 from rouault/fix_15419
QgsSymbol::renderFeature(): render larger parts of multipolygon first
2016-10-07 10:54:14 +02:00
Juergen E. Fischer
2c92152c7d debian packaging: run tests with ninja too (followup b4f3126) 2016-10-07 09:48:35 +02:00
Nyall Dawson
a9e9a6e497 Merge pull request #3579 from nyalldawson/composer_dock
Port composer item configuration widgets to inline dock
2016-10-07 07:39:43 +10: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
893263952d QgsSymbol::renderFeature(): render larger parts of multipolygon first
When drawing an invalid multipolygon, that has a part inside another one,
there is a chance we draw first the smaller part and then the larger part,
making it invisible.
Change the drawing order to start with larger parts.

Fixes #15419
2016-10-06 20:45:46 +02:00
Even Rouault
7182b1b871 Properly deal with empty cache/directory in WFS provider, server and globe plugin
Fixes #15111
2016-10-06 19:43:00 +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
b8ff71af46 [WFS provider] Force refresh of GetCapabilities when pressing Connect
The cached response to GetCapabilities was always used, even when
pressing Connect. Now a new request is sent over the network.

Fixes #15647
2016-10-06 18:44:35 +02:00
Even Rouault
fffbf784b0 Fix exception in GDALTools.doRasterize.loadFields due to Python 3 conversion 2016-10-06 18:01:03 +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
Alexander Bruy
45a84419ff [processing] show error message instead of Python error if output raster is temp output and test can not be created 2016-10-06 15:57:13 +03:00
Mathieu Pellerin
17010acf55 [travis] fix grass7 plugin build by adding GRASS_PREFIX7 (#3578)
* [travis] fix grass7 plugin build by adding GRASS_PREFIX7

* Followup 3n0486c: fix grass plugin build, take 2
2016-10-06 13:40:24 +02:00
Juergen E. Fischer
d2c20495d9 osgeo4w: switch to ninja 2016-10-06 13:36:23 +02:00
Juergen E. Fischer
b4f3126be0 debian packages
* remove outdated conditionals
* switch to ninja
2016-10-06 13:31:17 +02:00
Juergen E. Fischer
98c0da9cf5 grass plugin fix (followup 3b0486c) 2016-10-06 13:31:17 +02:00
Juergen E. Fischer
d9349e5bbb update configuration settings to qgis3 2016-10-06 11:40:42 +02:00
Nyall Dawson
521cc3becd [composer] Merge color change undo commands
Avoids color modifications spamming the undo stack
2016-10-06 19:04:22 +10:00
Nyall Dawson
028db7e541 [FEATURE] Port composer config widgets to QgsPanelWidgets
Brings the inline (ie, no modal dialogs!) color modification
and symbol editing from the layer styling panel to
composer item configuration.
2016-10-06 19:04:15 +10:00
Nyall Dawson
c6436f8971 Make modifications through the style dock much faster
Before any change in the style dock would invalidate the cache
for ALL map layers, resulting in every layer being redrawn.

Now only the affected layer is redrawn and all others just use
the cached render.
2016-10-06 19:03:47 +10:00
Alexander Bruy
9a9df32cca Merge pull request #3574 from mbernasocchi/master
[processing] fix save to postgis table
2016-10-06 11:58:13 +03: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
Nyall Dawson
fbdc414957 Rename methods in QgsPanelWidgetStack for consistency 2016-10-06 17:36:23 +10:00
Matthias Kuhn
3b0486cc6e Followup 722fdef: fix grass plugin build 2016-10-05 22:15:15 +02:00
Marco Bernasocchi
7c59e41177 fix save to postgis table in processing 2016-10-05 20:35:28 +02:00
Matthias Kuhn
9242d225e5 Remove fields from default value configuration widget 2016-10-05 20:02:51 +02:00
Matthias Kuhn
d0ec367044 Fix crash in QgsEncodingFileDialog 2016-10-05 16:18:29 +02:00
Matthias Kuhn
5179a3a55d [processing] Fix extent selection widget 2016-10-05 15:51:43 +02: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
Matthias Kuhn
3767cd4819 Debloat QgsExpression header
it's used throughout the project and keeping it slick should keep compile time a
little lower.
These methods are also normally used while building the request or preparing, so
inlining them shouldn't make much difference.
2016-10-05 14:33:38 +02:00
Matthias Kuhn
b642c3ff5e Show fields in "default value" expression editor 2016-10-05 13:41:03 +02:00
Sandro Santilli
0348dd5ce7 Force use of estimated metadata upon loading topologies 2016-10-05 12:17:57 +02:00
Alexander Bruy
eeb8269464 [processing] drop GEOM_TYPE_MAP in favour of QgsWkbTypes.displayString() 2016-10-05 09:45:55 +03:00
Alexander Bruy
7a49612a60 fix handling of layers without geometry 2016-10-05 09:42:57 +03:00
Alexander Bruy
2f66e1d6e2 add new geometry types to memory layer tests 2016-10-05 09:42:57 +03:00
Alexander Bruy
33644efeba use QgsWkbTypes methods to simplify code 2016-10-05 09:42:57 +03:00
Alexander Bruy
5b67d2a327 remove extra QString wrapper 2016-10-05 09:42:56 +03:00
Alexander Bruy
a4bdfb76c0 [processing] support more geometry types in memory layers (fix #15508) 2016-10-05 09:42:56 +03:00
Alexander Bruy
2b115449ab don't flatten geometries when pasting them as new memory layer 2016-10-05 09:42:56 +03:00
Alexander Bruy
b9ca91a55a [FEATURE] support for 2.5D geometries in memory provider 2016-10-05 09:42:56 +03:00
Nyall Dawson
b95a5e98c8 Fix missing live updates when raster colorize color changes 2016-10-05 14:27:04 +10:00
Nyall Dawson
79fd6fa0ac Fix raster style dock widgets not opened with dock mode flag
Makes the color picker and ramp editors open inline for
the raster properties pages
2016-10-05 14:27:04 +10:00
Nyall Dawson
3e1536f1da Fix crash in raster transparency widget on close
mPixelSelectorTool is owned by canvas, which may be deleted
before the QgsRasterTransparencyWidget on QGIS exit
2016-10-05 14:27:04 +10:00
nirvn
1e0e9c2e95 [pseudocolor renderer] fix invert check box in continous mode
(fixes #15209)
2016-10-05 14:04:52 +10:00