227 Commits

Author SHA1 Message Date
timlinux
b0ee620944 No code changes, applied auto formatting using vim to comply with QGIS coding guidelines (use spaces for tabs and proper bracket indentation.
git-svn-id: http://svn.osgeo.org/qgis/trunk@7666 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-11-27 03:29:42 +00:00
timlinux
b80c73c959 Commented out line that was causing:
qgis/src/providers/postgres/qgspostgresprovider.cpp:920: error: ‘mTables’ was not declared in this scope

Please fix and re-enable as needed



git-svn-id: http://svn.osgeo.org/qgis/trunk@7665 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-11-27 03:26:36 +00:00
jef
bd35aecf1e fix for #835
git-svn-id: http://svn.osgeo.org/qgis/trunk@7661 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-11-26 19:59:51 +00:00
jef
c32914f503 attribute table: add attributes before applying attribute changes, fixes #763
please test


git-svn-id: http://svn.osgeo.org/qgis/trunk@7642 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-11-22 20:52:32 +00:00
jef
6ba8b2a686 support for GEOMETRY column, fixes #818
git-svn-id: http://svn.osgeo.org/qgis/trunk@7611 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-11-19 21:26:56 +00:00
jef
f35fb37d8e quote identifiers and ignore bytea columns, fix for #741
git-svn-id: http://svn.osgeo.org/qgis/trunk@7443 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-11-17 17:22:55 +00:00
gsherman
c6c8128f75 Revert changes made to fix #741 since it appears to break more than it fixes
git-svn-id: http://svn.osgeo.org/qgis/trunk@7442 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-11-17 16:34:01 +00:00
gsherman
dabea3c697 Applied patch for bug #741
Please test


git-svn-id: http://svn.osgeo.org/qgis/trunk@7431 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-11-16 23:38:36 +00:00
mhugent
0c21bfd9a9 Fix for problem where columns that are used as primary keys are not displayed
git-svn-id: http://svn.osgeo.org/qgis/trunk@7401 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-11-14 10:54:35 +00:00
timlinux
aca333feb4 Applied Jürgens patch with improvements for MSVC build and initial attempts at GRASS under MSVC
git-svn-id: http://svn.osgeo.org/qgis/trunk@7322 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-11-05 01:23:41 +00:00
mhugent
596b81b7d0 Fix for compiler warning
git-svn-id: http://svn.osgeo.org/qgis/trunk@7271 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-10-13 09:18:59 +00:00
mhugent
fe4278dbad Avoid two geometry copies in postgresprovider. Just pass geometry pointers instead
git-svn-id: http://svn.osgeo.org/qgis/trunk@7270 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-10-13 09:03:38 +00:00
mhugent
e47e5924ff Fetch features asynchronously from the database server. This improves performance, especially if the db is located on a remote computer. Plus fixed a memory leak in qgsfeature that is important for postgres provider
git-svn-id: http://svn.osgeo.org/qgis/trunk@7269 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-10-13 07:58:50 +00:00
mhugent
721c2a7983 Applied patch from Juergen that adds a connection pool to the postgres provider
git-svn-id: http://svn.osgeo.org/qgis/trunk@7268 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-10-12 15:47:30 +00:00
mhugent
c55115b561 Fix for problems with unique value dialog and some postgis tables
git-svn-id: http://svn.osgeo.org/qgis/trunk@7138 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-08-14 15:28:22 +00:00
mhugent
5324e893bf Fix that adresses ticket #477 'Loading a PostGIS view is very slow'
git-svn-id: http://svn.osgeo.org/qgis/trunk@7071 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-07-15 08:36:20 +00:00
mhugent
0174afd26a Fix to make deletion of postgres columns working again
git-svn-id: http://svn.osgeo.org/qgis/trunk@7063 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-07-06 13:39:41 +00:00
mhugent
68510607ec A tool to add polygons to multipolygon features
git-svn-id: http://svn.osgeo.org/qgis/trunk@6963 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-05-26 07:31:01 +00:00
mhugent
45b045f017 Added a tool to cut holes into polygons/multipolygons. Made QgsMapToolCapture a base class of QgsMapToolAddRing and QgsMapToolAddFeature. Many bugfixes, e.g. it should now be possible to edit a reprojected layer (but the snapping distance needs to be given in the source units of the edited layer)
git-svn-id: http://svn.osgeo.org/qgis/trunk@6942 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-05-13 13:40:35 +00:00
mhugent
8ba6859a2b Tried to fix problems with allAttributeList() in postgres provider
git-svn-id: http://svn.osgeo.org/qgis/trunk@6900 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-20 06:05:56 +00:00
wonder
a4cf54ada9 Slightly better error handling in constructor of postgres provider
git-svn-id: http://svn.osgeo.org/qgis/trunk@6892 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-17 11:14:42 +00:00
wonder
6114f068f6 Fix for creation of SQL query in postgres provider.
Was doing problems when exporting to shapefile (see #706)


git-svn-id: http://svn.osgeo.org/qgis/trunk@6890 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-17 10:11:02 +00:00
mhugent
fe77a6ac12 Fix for editing problems
git-svn-id: http://svn.osgeo.org/qgis/trunk@6882 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-12 07:55:29 +00:00
wonder
1ac580270f Merged provider0_9-branch (r6844:6878) back to trunk.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6879 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-11 11:46:35 +00:00
mhugent
5f75690261 Only one list of typenames for data providers
git-svn-id: http://svn.osgeo.org/qgis/trunk@6843 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-03-29 04:40:15 +00:00
homann
c4b4c3b744 Added patch #685 from lubaby (+ some more) to trunk.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6838 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-03-27 17:51:57 +00:00
wonder
00a43bc7dc QgsFeatureAttribute class has been removed and QVariant is used instead (supports arbitrary data types).
All providers and python bindings have been updated accordingly.
Currently supported variant types by providers are String, Int and Double.

Other API changes:
- QgsField
  - type info as QString is now typeName() and setTypeName()
  - added variant type (QVariant::Type) info: type(), setType()
- QgsFeature
  - removed fields() - use QgsVectorDataProvider::fields()
  - removed boundingBox() - use QgsGeometry::boundingBox()
- QgsVectorLayer - removed fields(), fieldCount(), getDefaultValue() - use directly QgsVectorDataProvider
- QgsVectorDataProvider - getDefaultValue() - field now addressed by id, returns variant
- QgsLabel - setLabelField() - field now addressed by id


git-svn-id: http://svn.osgeo.org/qgis/trunk@6833 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-03-24 22:40:10 +00:00
mhugent
39f11cf0b1 Fix for ticket #678: Attribute table add field, fieldtype select box is empty
git-svn-id: http://svn.osgeo.org/qgis/trunk@6831 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-03-24 15:32:25 +00:00
g_j_m
617ee8c06a Provide for a layer comment to be made available for vector layers
For postgres provider, get the layer comment from the table comment (if
it exists). Resolves ticket #244


git-svn-id: http://svn.osgeo.org/qgis/trunk@6726 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-02-28 09:06:19 +00:00
mhugent
2ed9f06828 Bugfix to allow classified postgres layers in 0.9
git-svn-id: http://svn.osgeo.org/qgis/trunk@6717 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-02-26 23:55:29 +00:00
g_j_m
a4a7d7c04f Decrease time taken to find key column in layers that come from postgres
views


git-svn-id: http://svn.osgeo.org/qgis/trunk@6685 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-02-24 02:05:41 +00:00
g_j_m
eae25d870f Do one less query per table column when loading a postgres layer.
Tidy up of sql lines too.


git-svn-id: http://svn.osgeo.org/qgis/trunk@6684 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-02-23 21:26:59 +00:00
g_j_m
f57b006b92 Make postgres column comments available for the layer properties metadata
tab (address ticket #244)


git-svn-id: http://svn.osgeo.org/qgis/trunk@6677 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-02-23 05:45:49 +00:00
homann
e32f8e72d7 Applied patch #603. Thanks! (also fixed a compilation error introduced in r6610)
git-svn-id: http://svn.osgeo.org/qgis/trunk@6618 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-02-17 17:30:54 +00:00
g_j_m
c3decb76cf Changes to support a comment for each attribute in vector data. Now
requires support in providers. Addresses ticket #244.


git-svn-id: http://svn.osgeo.org/qgis/trunk@6612 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-02-17 07:40:43 +00:00
g_j_m
2a35478a10 Potential fix for ticket #477 (slowness opening postgres databases that
contain lots of views). Needs some testing, which I'll do in a day or
so.


git-svn-id: http://svn.osgeo.org/qgis/trunk@6610 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-02-17 06:56:41 +00:00
g_j_m
248644e0b8 Adjust indenting. no code changes
git-svn-id: http://svn.osgeo.org/qgis/trunk@6608 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-02-16 22:59:18 +00:00
g_j_m
a1f4991cd9 Fix compiler warnings
git-svn-id: http://svn.osgeo.org/qgis/trunk@6490 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-02-02 08:08:04 +00:00
telwertowski
ce640e7322 Convert all uses of QMessageBox to Qt 4.2 StandardButton API.
Also add tr() where missing.


git-svn-id: http://svn.osgeo.org/qgis/trunk@6441 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-01-18 19:39:53 +00:00
wonder
46a2d125a2 Merged refactoring branch back to trunk.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6415 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-01-09 02:39:15 +00:00
mhugent
5c60879f3f Fix for bug which prevented opening query builder from within vector layer properties dialog. The reason was that the last letter of the password has been cut
git-svn-id: http://svn.osgeo.org/qgis/trunk@6321 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-12-27 18:11:47 +00:00
g_j_m
0f83407633 Fix for ticket #277 (viewing views of views).
git-svn-id: http://svn.osgeo.org/qgis/trunk@6267 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-12-16 04:20:42 +00:00
g_j_m
e0249e3c19 Partial fix for ticket #277
git-svn-id: http://svn.osgeo.org/qgis/trunk@6266 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-12-16 00:39:18 +00:00
wonder
c53c866663 Postgres: escape quotes in field values
git-svn-id: http://svn.osgeo.org/qgis/trunk@6215 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-12-08 19:37:33 +00:00
g_j_m
17090c652a Fix for ticket #424 (recently saved projects that access postgres
won't load).


git-svn-id: http://svn.osgeo.org/qgis/trunk@6199 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-12-07 09:05:38 +00:00
timlinux
6db1c3ef11 Added some win ifdeffing. The postgris provider does not inherit from QObjects so declaring signals and slots cause the qlibrary loader to throw a wobbly when trying to load the plugin. I tried making it inherit QObject but that wont compile due to ambiguous base class. So for no the signals are commented out. This should have little impact except removing a small feedback event when calculating recordset sizes....
git-svn-id: http://svn.osgeo.org/qgis/trunk@6184 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-12-04 20:13:21 +00:00
g_j_m
3486d4bb0b Fix for ticket #406 (problems with copying selected attributes from a postgres
layer). Has the side-effect of eliminating the postgresql server 'no
transaction in progress warnings'.


git-svn-id: http://svn.osgeo.org/qgis/trunk@6171 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-12-02 08:17:08 +00:00
g_j_m
b27481bd71 Yet another tweak to recent commits.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6159 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-12-01 00:52:43 +00:00
g_j_m
a9ab052318 Correct a small problem with loading postgres layers due to recent commits.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6158 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-12-01 00:46:53 +00:00
g_j_m
b2a13cf376 Cope with postgres schema and table names that contain . characters.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6152 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-11-30 21:26:30 +00:00