358 Commits

Author SHA1 Message Date
Sandro Santilli
af8f9c9fd5 Retain old TopoGeometry id on editing
Avoids leaving orphaned TopoGeometry objects and breaking
upper hirearchical  layers
2012-11-02 17:28:14 +01:00
Juergen E. Fischer
42104d7f3d show filled attribute table again (partly reverts 779e16603) 2012-11-01 22:54:43 +01:00
Sandro Santilli
0dc01f5fff Do not drop schema name from URI, even if it's the same as current
The dropping was done in 2007 to workaround a bug which was elsewhere
(in OGR usage, as reported in #843). I guess by now everything
would work transparently, but if it doesn't it'd be time to fix it
for real.

This commit fixes bug #6599, making life harder for NON-BOGUS code
which isn't confused by schemas...

Please test !
2012-11-01 17:52:16 +01:00
Juergen E. Fischer
98e8ba484b indentation update 2012-10-31 23:47:29 +01:00
Juergen E. Fischer
62ebf88974 extent b47b43997 2012-10-31 23:36:50 +01:00
Sandro Santilli
bbecffdb65 Add initial support for editing TopoGeometry objects
This is pretty hackish in that it basically creates a new TopoGeometry
on every edit, leaving loads of orphaned ones around.
2012-10-31 23:34:21 +01:00
Sandro Santilli
bd8237f648 Drop mIsGeography member from QgsPostgresProvider
... now replaced by mSpatialColType
2012-10-31 21:09:36 +01:00
Sandro Santilli
b47b43997e Add mSpatialColType member in QgsPostgresProvider
This member tells us if a spatial column is of type Geometry,
Geography or TopoGeometry. The member is currently unused but
will eventually be used for specially handling TopoGeometry.
It could replace the mIsGeography bool, but replacement isn't
done by this commit.

Incidentally, this commit also adds SRID and type detection
for TopoGeometry columns
2012-10-31 20:35:16 +01:00
Martin Dobias
51122d263a Store attributes and fields in vectors instead of maps 2012-10-20 22:19:55 +02:00
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