51072 Commits

Author SHA1 Message Date
Nyall Dawson
b6e6b90557 [mssql] Misc browser fixes
- Add 'refresh' action to allow display of displays created outside
of QGIS
- Show empty schemas in browser too, as they can be useful for
drag and dropping new data sets to import into
- Add create schema item
2018-10-09 11:30:57 +10:00
Nyall Dawson
e813fe880f [mssql] Fix browser items only show tables in geometry_columns
table, regardless of connection setting
2018-10-09 11:30:57 +10:00
Loïc Bartoletti
0989e73d72 Use QgsFileWdiget for geopackage database 2018-10-09 10:51:21 +10:00
Loïc Bartoletti
b74292aaae Fixes #19555
Adds a QMessageBox if file exists
Remove lastDatabase setting to lastDirDatabase. It's dangerous to reuse
the last database.
Adds a .gpkg extension to filename if not presents.
2018-10-09 10:51:21 +10:00
Juergen E. Fischer
6ac262f432 configonly.bat: retrieve version from CMakeLists.txt 2018-10-09 02:30:10 +02:00
Denis Rouzaud
711ec1de47 forward declaration of QgsProject 2018-10-08 13:01:16 -08:00
Denis Rouzaud
0901a21e4f Fix include in server 2018-10-08 13:01:16 -08:00
Denis Rouzaud
f404751e5b move definition to source 2018-10-08 13:01:16 -08:00
Denis Rouzaud
775d603f54 forward declarations for QgsMapCanvas 2018-10-08 13:01:16 -08:00
Denis Rouzaud
d000157341 forward declarations for QgsMapLayer 2018-10-08 13:01:16 -08:00
Denis Rouzaud
f86b86bc8c forward declaration for QgsVectorLayer 2018-10-08 13:01:16 -08:00
signedav
f5d2b88dba check if visibilityexpression is enabled (#8141)
before adding the containers to the mContainerVisibilityInformation

fix: #20045
2018-10-08 12:10:52 -08:00
Denis Rouzaud
425fe74908
add missing coordinateTransformContext property to QgsProject (#8145) 2018-10-08 11:26:29 -08:00
Alessandro Pasotti
a176bad0b0 Kill refreshLegend (not used since a long time) 2018-10-08 13:01:28 +02:00
stra2da
c8577c777d Add files via upload 2018-10-08 17:33:07 +07:00
stra2da
a6bfffbfb8 Update qgsoptionsbase.ui 2018-10-08 17:33:07 +07:00
stra2da
4caec08de5 Update images.qrc 2018-10-08 17:33:07 +07:00
stra2da
52055d5588 Add files via upload 2018-10-08 17:33:07 +07:00
Nyall Dawson
06520be7b0 Spelling 2018-10-08 19:16:29 +10:00
Nyall Dawson
302b449451 [mssql] Add browser actions for deleting and truncating tables
Because we can no longer overwrite tables directly using drag
and drop (refs #16805), add some explicit actions which allow
dropping existing tables (after user confirmation, of course!)
2018-10-08 19:16:29 +10:00
Nyall Dawson
745495fe73 [mssql] Prevent overwriting existing tables via drag and drop in browser
Fixes #16805
2018-10-08 19:16:29 +10:00
Nyall Dawson
da21193894 [mssql] Fix handling of geometry column when multiple geometry/geography
columns are present

Fixes #13932
2018-10-08 17:01:03 +10:00
Nyall Dawson
71c5051356 [mssql] Fix incorrect precision detection for double/float fields
Fixes #15124
2018-10-08 17:01:03 +10:00
Alessandro Pasotti
f6b80205e8
Merge pull request #8126 from elpaso/bugfix-18608-raster-legend-embedded-widgets
Force legend update when raster properties changes
2018-10-08 08:33:24 +02:00
Nyall Dawson
8c2afa6b75 Indentation 2018-10-08 16:15:31 +10:00
Nyall Dawson
5503ba48bb [mssql] Forward port more of 62af54e
But avoid the inexact Filter test when we are doing an
exact intersection request

Refs #15752
2018-10-08 16:15:31 +10:00
Nyall Dawson
b79229092e QStringLiteral 2018-10-08 16:15:31 +10:00
Nyall Dawson
84a821915e [mssql] Small fixes to expression compilation
- Use [] to correctly quote field names instead of ""
- Don't invalidate provider side limit when not required

Forward port of 8dec70c, because I'm only human and forgot
2018-10-08 16:15:31 +10:00
Nyall Dawson
794583e62e [mssql] Test data load script 2018-10-08 16:15:31 +10:00
Nyall Dawson
eb439d34ba [mssql] Update test for skipping invalid geometry handling 2018-10-08 16:15:31 +10:00
Nyall Dawson
eb40d911df Add test for MSSQL behavior with invalid polygon geometries
Forward port of 039866d, because I am an idiot and forgot
2018-10-08 16:15:31 +10:00
Nyall Dawson
dafeaf4372 [mssql][needs-docs] Add connection setting to ignore invalid geometry handling
Sets whether the connection should skip all handling of records with
invalid geometry, which are slow and costly.

This speeds up the provider, however, if any invalid geometries
are present in a table then the result is unpredictable and may
include missing records. Only check this option if you are certain
that all geometries present in the database are valid, and any newly
added geometries or tables will also be valid!

Why would we want this? Well, SQL Server invalid geometry handling
is AWEFUL. A seriously lame, data mangling and corrupting
piece of s***. Use Postgres instead. But if you can't, then you
can at least choose to use your layers at full speed, if you
can take the responsibility that a SINGLE invalid geometry
hiding somewhere in the table will result in a whole bunch
of missing (valid) features.

SQL server is at fault here, not us. There's nothing we (or
GDAL, or MapServer, or GeoServer, or anyone else) can do
to fix this.

Suffice to say, this option is off by default, as we're better
to have a slow provider which actually shows all features.

Fixes #15752

Rant over
2018-10-08 16:15:31 +10:00
Nyall Dawson
7464575f2c More refactoring 2018-10-08 16:15:31 +10:00
Nyall Dawson
ad25261708 More minor refactoring 2018-10-08 16:15:31 +10:00
Nyall Dawson
fabc2c1376 [mssql] Minor refactoring 2018-10-08 16:15:31 +10:00
Nathan Woodrow
7c5cc27b8f
Fix #13684 - Update conditional full row style on value change (#8137) 2018-10-08 15:14:48 +10:00
Nathan Woodrow
ca4fcceb8f
Fix - Fix font color in table conditional present selection (#8136) 2018-10-08 13:57:56 +10:00
Nyall Dawson
f630c93816 [mssql] Fix inefficiencies in expression compiler, resulting in
apparent hangs when compiling complex expressions

Fixes #15404
2018-10-08 13:09:26 +10:00
Nathan Woodrow
f928c2e545
[FIX] - Respect selection order in attribute table copy. (#8048)
Only copy fields shown in view for current table.
2018-10-08 12:07:28 +10:00
Nathan Woodrow
556cddd4d9
Fix #19465 - Don't delete expression when pressing enter in combo (#8134) 2018-10-08 12:05:54 +10:00
Nyall Dawson
4da2b80a42 Fix build 2018-10-08 12:01:23 +10:00
Nyall Dawson
1f02b42e04 Fix race condition causing crash on startup
Also flick more static list initializations across to nicer
std::call_once implimentations
2018-10-08 11:20:40 +10:00
Nathan Woodrow
ee7ca0a526 Fix build follow up 2018-10-08 10:40:02 +10:00
Nathan Woodrow
4bcaba8404 Fix build on fedora 26 2018-10-08 09:16:00 +10:00
Blottiere Paul
9ccb1b579b Update doc 2018-10-08 07:24:53 +10:00
Blottiere Paul
6e95586a1c Update python binding 2018-10-08 07:24:53 +10:00
Blottiere Paul
9ed3ee0d4b Add doc 2018-10-08 07:24:53 +10:00
Blottiere Paul
1ecc57d2a2 Adds more explicit error message when auxiliary storage is saved 2018-10-08 07:24:53 +10:00
Even Rouault
119cd8ace9 QgisApp::addVectorLayer(): add |layername= to OGR datasets (fixes #20031)
Do it also in case of datasets that have a single layer, in case they might
later be edited to have more layers
(except for a few drivers known to be always single layer)
2018-10-08 07:23:27 +10:00
Even Rouault
bd6c1115bb [OGR provider] Make createEmptyLayer() work properly on GeoPackage when creating/overwrite a new database (fixes #20040) 2018-10-08 07:23:12 +10:00