349 Commits

Author SHA1 Message Date
Martin Dobias
8bf959093f QgsFeature: use a vector of attributes instead of a map (for faster access) 2012-10-19 00:31:03 +02:00
Giuseppe Sucameli
bb31a2d17e fix crash adding features without geometry to a geometry layer 2012-10-18 23:07:53 +02:00
Martin Dobias
e110855e6c [API] added QgsFeatureIterator, changed QgsVectorProvider API
Vector data provider now has getFeatures() method to access features.
select(), nextFeature(), featureAtId(), rewind() were removed resp. moved to provider's feature iterator implementations.

Providers that currently do not implement the new API were disabled.
2012-10-08 17:47:51 +02:00
Martin Dobias
b863ca195e Allow access to feature attributes by name 2012-10-08 17:16:54 +02:00
Juergen E. Fischer
5d056e9d7b indentation update 2012-10-04 22:42:12 +02:00
Juergen E. Fischer
6aa7524482 fix #5883 2012-10-04 13:15:42 +02:00
Juergen E. Fischer
413e9dcd4e indentation update 2012-09-21 21:01:31 +02:00
Juergen E. Fischer
d8675ba32a add sip bindings for QgsPalLabeling, QgsSimpleMarkerSymbolLayerV2,
QgsSvgMarkerSymbolLayerV2, QgsFontMarkerSymbolLayerV2
2012-09-16 20:21:37 +02:00
Juergen E. Fischer
5ae312cfad add 'foreach' to astyle and re-run indentation 2012-08-03 06:57:11 +02:00
Juergen E. Fischer
5988a9c9dc fix #6142 2012-08-02 18:14:31 +02:00
Juergen E. Fischer
5a43d7451f fix more warnings
(layers might be miscounted in qgsowsdataitems.cpp)
2012-08-01 18:36:25 +02:00
Juergen E. Fischer
42dc71ff88 fix attribute dialog (iterate layer attributes, not feature attributes) 2012-07-28 16:03:19 +02:00
Juergen E. Fischer
6b9d5a72c6 fix warnings and indentation 2012-06-15 18:48:56 +02:00
Giuseppe Sucameli
cbf405f568 delete not valid provider instances (fix memory leaks),
avoid failure due to assertion calling disconnectDb on PG provider more times
2012-06-09 23:40:50 +01:00
Juergen E. Fischer
85cf8c3566 log more verbose error messages if the view primary key selection is wrong. 2012-05-18 13:06:31 +02:00
Juergen E. Fischer
4d6cc6d15b indentation update 2012-04-18 01:34:27 +02:00
Werner Macho
4e7b055cbe small typo fixes for consistency 2012-04-15 23:15:35 +02:00
Giuseppe Sucameli
2e3db0c526 allow PG provider to delete a layer 2012-04-15 20:42:46 +02:00
Juergen E. Fischer
2aa8a59c44 postgres provider: use same precision in st_makeenvelope and BOX3D 2012-04-04 14:38:09 +02:00
Juergen E. Fischer
494561167d fix support for multigeometries in postgres and mssql provider 2012-03-25 11:25:04 +02:00
Juergen E. Fischer
c58debc638 postgresql provider: don't require access to geometry_columns 2012-03-05 20:23:57 +01:00
Juergen E. Fischer
d2775ba5cc fix 659abb8d (fixes #5016) 2012-02-14 21:55:59 +01:00
Juergen E. Fischer
659abb8d35 postgres provider:
- fix primary key detection, if column is behind geometry column
- add support for varchar length limits
2012-02-14 17:36:18 +01:00
Juergen E. Fischer
76890768de fix warnings from clang 2012-02-11 16:57:50 +01:00
Juergen E. Fischer
d2b5ed9204 postgres provider:
- pre-select first integer column as primary key for views
- also consider oid type as integer column
2012-02-08 21:02:40 +01:00
Juergen E. Fischer
c2fee79273 postgres provider: fix crs(), if no crs was requested 2012-02-06 20:48:33 +01:00
Juergen E. Fischer
e5f6af9c49 postgres provider: fix query support 2012-02-01 21:29:43 +01:00
Juergen E. Fischer
db01e7b5c1 postgres provider: reload fields when columns disappear 2012-01-27 19:24:48 +01:00
Juergen E. Fischer
53b6366ffd postgres provider: fix handling of broken connections 2012-01-23 23:00:04 +01:00
Juergen E. Fischer
13ef543267 postgres provider fix 2012-01-23 08:37:53 +01:00
Juergen E. Fischer
60b6ad9b64 postgres provider: support tables with mixed srids 2012-01-22 11:21:53 +01:00
Juergen E. Fischer
2d8b1ab33d [FEATURE] add update extent button in vector layer properties
and implement QgsDataProvider::updateExtents in postgres, ogr and
spatialite provider
2012-01-20 17:41:18 +01:00
Juergen E. Fischer
c2cb3b8a8c postgres provider fixes 2012-01-18 23:51:11 +01:00
Juergen E. Fischer
6a8a9d441b postgres provider:
- disable "Add" in selection dialog while column type thread is running
- fix detection of integer keys
- when adding feature update attributes and feature id in passed features
2012-01-18 21:42:01 +01:00
Giuseppe Sucameli
9e71b01140 show the correct feature's type name in debug messages 2012-01-17 20:29:46 +01:00
Juergen E. Fischer
70288272f7 postgres provider: fix default value assignment 2012-01-17 20:26:37 +01:00
Juergen E. Fischer
6c9663c492 postgis provider: fix geometry detection 2012-01-17 16:32:04 +01:00
Juergen E. Fischer
98876da998 commit error update:
- push commit errors in PostgreSQL, OGR and SpatiaLite provider
- add provider errors to commit error
- postgres provider: improve handling of geography columns
2012-01-17 15:33:39 +01:00
Juergen E. Fischer
6f2ade7983 error logging:
- fix key message in postgres provider
- add logging of errors to spatialite provider
- log commit errors in vector layer
2012-01-15 21:57:07 +01:00
Giuseppe Sucameli
3af5694e3d use a better default name for the new pk field when creating a new empty PG table 2012-01-13 10:32:22 +01:00
Giuseppe Sucameli
b016c0e6ee fix add features in PG provider broken in recent refactoring 2012-01-12 23:31:21 +01:00
Juergen E. Fischer
2b739d945d postgres provider:
- base geometrytype filtering on GeometryType not WkbType
- use tooltips on dataitems
- fix #4783
- adapt #4767
2012-01-11 19:26:08 +01:00
Juergen E. Fischer
ff6a46e8ef postgres provider fixes 2012-01-10 22:12:53 +01:00
Sandro Santilli
302c1a7ebb Use ST_MakeEnvelope with PostGIS 2.0+ to build query rectangle 2012-01-10 15:22:46 +01:00
Juergen E. Fischer
ce4fc1daa5 [FEATURE][API] postgres provider refactoring:
- use m prefix for member variables and s prefix for class variables
- refactor QgsPostgresProvider::Conn and QgsPostgresConnection to QgsPostgresConn
- put QgsColumnTypeThread into separate file
- use QgsPostgresConn in QgsPgSourceSelect
- cleaner abort of column type thread (e.g. remove unfinished columns from
  selection list)
- [API] move QgsDbTableModel as QgsPgTableModel to provider
- [FEATURE] support for arbitrary key (including non-numeric and multi column)
- [FEATURE][API] support for requesting a certain geometry type and/or srid in QgsDataSourceURI
 * no more explicit filter strings
 * support for empty tables without gemetry_columns entry or GEOMETRY type.
2012-01-09 13:52:00 +01:00
Juergen E. Fischer
100d702bd0 [FEATURE] add uuid generator widget 2011-12-30 16:23:23 +01:00
Juergen E. Fischer
0715f70f73 postgres provider: remove ctid limitation to 32bit 2011-12-22 22:31:15 +01:00
Juergen E. Fischer
ac93c0c30f apply #4685 2011-12-20 17:49:50 +01:00
Juergen E. Fischer
b8e5a34a92 [FEATURE] allow to disable SelectAtId capability for PostgreSQL provider to
force usage of the attribute table memory model.  Apparently the memory model
was completely disfunctional before.  Fixes included, but it probably needs
more testing.
2011-11-30 01:01:22 +01:00
Juergen E. Fischer
66e2ab0e78 remove superfluous closing parenthesis 2011-11-29 10:02:39 +01:00