Sebastian Dietrich
a4124da2a9
When loading a query as a postgis layer the primary key may now also span multiple columns.
2015-10-17 23:20:10 +02:00
Sebastian Dietrich
a721949040
Moved the code to determine the primary key for a view using the URI keyColumn to a separate function.
2015-10-17 23:20:10 +02:00
Nyall Dawson
5ed3d1b73f
Use QString::arg multi argument method to avoid extra heap allocations
2015-10-15 17:51:06 +11:00
Nyall Dawson
0caf944747
Misc optimisations identified by clazy:
...
- call reserve on container classes where applicable
- make sure Q_FOREACH uses references
- remove dynamic casts to base classes
- fix some implicit bool conversions
2015-10-05 18:43:18 +11:00
Juergen E. Fischer
1b4ca622c9
add cppcheck fixes
2015-10-03 21:57:17 +02:00
Larry Shaffer
0d2b945c05
[auth system] Data source integration for Postgres and Spit plugin
2015-09-21 08:51:18 -06:00
Nyall Dawson
f628ebd423
Replace foreach with Q_FOREACH
...
For:
- consistency
- to make it immediately clear that this is a Qt macro and that it
works slightly differently to c++ for loops
2015-09-09 19:17:29 +10:00
Nyall Dawson
7c10760225
Followup 73ffb83a, finishing changing all Q_FOREACH to references
2015-09-09 19:17:19 +10:00
Juergen E. Fischer
c5cce4bfdf
postgres provider: add support for compound keys on views
2015-09-04 17:35:26 +02:00
Giuseppe Sucameli
7d79a73f58
Importing a layer, create an autoincremental integer pk if either no pk was passed or it's an integer field
2015-09-03 01:20:19 +02:00
Juergen E. Fischer
05b8a985a5
indentation update
2015-08-25 20:04:50 +02:00
Giuseppe Sucameli
762d28b8d4
Postgres/SQLite/MSSQL provider: fix addAttributes() fail (wrong syntax/empty statement) when argument is an empty list
2015-08-25 03:00:07 +02:00
mhugent
5807875797
Merge pull request #2268 from mhugent/curve_capture_tool
...
Curve capture tool
2015-08-24 18:18:40 +02:00
Juergen E. Fischer
0ccd7bd5bf
postgres provider: avoid column lookups with tableoids
2015-08-18 11:04:16 +02:00
Marco Hugentobler
c39ffe9fc2
[FEATURE]: Tool to add circular strings with start point, curve point and end point
2015-08-17 17:14:05 +02:00
Juergen E. Fischer
c27f357be0
database provider: fix andWhereClauses
2015-08-04 14:22:14 +02:00
Matthias Kuhn
5be0ee734f
Remove QgsFeatureRequest::FilterRect from providers/iterators
2015-07-29 12:09:44 +02:00
Marco Hugentobler
5706203584
Allow usage of node tool for postgis zm geometries
2015-07-29 10:44:35 +02:00
Juergen E. Fischer
48e4fb85c8
Revert "use triple quoting with st_estimatedextent in postgres provider and db_manager ( fixes #12478 )"
...
As it seems to address a meanwhile reverted behavior change in PostGIS 2.1
before it was released (see also https://trac.osgeo.org/postgis/ticket/2834 ).
This reverts commit 048aff01bb9cf42e2c1c17eb0ddbd81537443e19.
2015-07-13 11:15:40 +02:00
Juergen E. Fischer
b1dac74f2b
postgres provider: fix indexing of default values ( fixes #12996 ; folloup 61f39d6f)
2015-06-30 17:58:00 +02:00
Nyall Dawson
79305b272d
[browser] Add rename, delete options for schemas and rename option
...
for layer for postgres providers
2015-06-27 11:26:23 +10:00
Juergen E. Fischer
048aff01bb
use triple quoting with st_estimatedextent in postgres provider and db_manager ( fixes #12478 )
2015-06-24 18:08:26 +02:00
Juergen E. Fischer
454206711e
fix 61f39d6
2015-06-19 16:20:13 +02:00
Juergen E. Fischer
61f39d6ff3
postgres provider: fix indexing of default values ( fixes #12996 )
2015-06-19 15:27:39 +02:00
Juergen E. Fischer
37ed83905f
postgres provider: fix feature count on delete ( fixes #12957 )
2015-06-14 11:01:10 +02:00
Denis Rouzaud
9e3183c63f
Revert "sort includes"
...
This reverts commit 2b7d3d3c73b50ba6dc74abec6dd652ff1b87c0ec.
2015-06-10 14:54:47 +02:00
Denis Rouzaud
2b7d3d3c73
sort includes
2015-06-10 13:59:08 +02:00
Marco Hugentobler
abe9fd0399
Move more wkb type code to QgsWKBTypes. Fix possibility to load curved geometries into QGIS
2015-05-29 10:56:46 +02:00
Nyall Dawson
d393d268e1
Fix up non-const getters for attributes and geometry in QgsFeature
...
(preparation for implicit sharing)
2015-05-20 21:46:15 +10:00
Juergen E. Fischer
1c64363ad0
postgres provider: avoid quering layer_styles if it doesn't exist
2015-05-12 11:10:36 +02:00
Nyall Dawson
2863f20d67
Add a const geometry getter to QgsFeature
2015-05-11 19:46:32 +10:00
Juergen E. Fischer
e509fc53ce
postgres provider: cast result of a subquery in min/max/uniqueValue(s) ( fixes #12630 ; followup bf56457 ff)
2015-05-10 10:55:42 +02:00
Sandro Santilli
449094829a
Add support for Pointcloud layers
2015-05-06 22:25:44 +02:00
Juergen E. Fischer
02f5c73ae2
fix where clause when multiple features are filtered by ids ( fixes #12616 , followup d1e23a6)
2015-04-21 23:04:16 +02:00
Sandro Mani
265c253995
Fix primary key search
2015-04-14 17:02:44 +02:00
Juergen E. Fischer
581d7f8e70
postgres provider: fix retrieval of default values from other schemes ( fixes #12447 )
2015-03-25 19:23:39 +01:00
Juergen E. Fischer
250eb744fd
postgres provider:
...
* further boost field retrieval
* avoid errornous queries, when no tableoid were found
* cache default values
2015-03-19 15:49:35 +01:00
Juergen E. Fischer
bfb8ab6893
edit widgets: keep default values of new feature's attributes until they are added
...
(fixes #12391 & #12386 )
2015-03-18 16:09:47 +01:00
Juergen E. Fischer
306a53b810
postgres provider: also cast field expressions to text ( fixes #12346 )
2015-03-10 09:03:59 +01:00
Juergen E. Fischer
05768309a0
fix precise builds
2015-03-07 16:35:56 +01:00
Juergen E. Fischer
9eb495364b
postgres provider: cosmetics (followup 09f410c)
2015-03-06 10:33:26 +01:00
Sandro Mani
09f410cab0
Greatly decrease the number of round-trips to the postgres server performed when reading and creating fields in the postgres provider
2015-03-06 10:10:42 +01:00
Juergen E. Fischer
f7b790ffbf
postgres provider: use min()/max() before casting (followup bf56457; fixes #12306 )
2015-03-04 08:30:34 +01:00
Juergen E. Fischer
2844005e80
postgres provider: disable editing of existing features when ctid is key
2015-03-04 00:29:25 +01:00
Juergen E. Fischer
bf56457a71
postgres provider: also use fieldExpression used to retrieve values in
...
minimumValue/maximumValue/uniqueValues
2015-02-18 18:32:19 +01:00
Nyall Dawson
d3c8837625
Fix uninitialized members
2015-02-16 16:58:10 +11:00
Vladimir Rutsky
e5a6a088d1
treat PostgreSQL's "xml" type as string
2015-02-06 20:54:08 +03:00
Juergen E. Fischer
843cf04920
database providers: cope with empty attribute changes ( fixes #12040 )
2015-01-30 22:56:26 +01:00
Juergen E. Fischer
f8f2713571
postgres provider: improve owner check ( fixes #9844 )
2015-01-24 22:11:51 +01:00
Sandro Mani
40ad3b0993
[FEATURE]: Transactional editing for postgres layers (other datasources possible in the future). Funded by City of Uster
2015-01-19 15:22:20 +01:00