34 Commits

Author SHA1 Message Date
mhugent
4e12f59f54 added methods for attribute editing in the vector data provider interface. First implementation in the postgresprovider, but not yet tested
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2633 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-15 22:32:42 +00:00
g_j_m
6e3bdd8df9 postgresql layers were not closing their connection to the database when
the layer was removed.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2588 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-07 06:21:23 +00:00
mcoletti
be57f1155e Fixes for const-correctness not propogated properly to sub-classes.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2553 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-31 00:30:32 +00:00
mcoletti
c3ea8bcfa6 - rolled forward endian() changes in QgsDataProvider class hierarchy
- rolled forward const-correctness changes from src directory

- in delimited text provider plug-in consolidated how data is parsed into a
  single function from three almost identical, but separate, functions; now
  uses QDataStream for building WKBPoint objects

- QgsDelimitedTextProvider::getFirstFeature() now works

S: ----------------------------------------------------------------------


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2549 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 22:20:49 +00:00
gsherman
9493aca366 Merged changes from the 0.6.0 release branch
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2526 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-20 07:13:35 +00:00
gsherman
e09ca8857f Changed supportsSaveAsShapefile to false since this won't be implemented until after version 0.6
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2344 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-26 22:02:52 +00:00
mhugent
48bca3c901 moved the responsability for not-commited features to qgsvectorlayer. Because of this, it is now possible to treat not-commited features like commited ones. Vectordataproviders now only need to implement 'addFeatures','deleteFeatures', 'supportsFeatureAddition' and 'supportsFeatureDeletion' if they support feature addition or deletion
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2258 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-15 21:52:57 +00:00
mhugent
9a392101ee added deleting of selected features from postgislayers. Unfortunately, only commited features can be selected -> there will be some need to redesign vectorlayer and providers with respect to feature addition and deletion
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2215 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-05 20:21:54 +00:00
mhugent
60029ee4aa small bugfix related to digitizing
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2185 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-30 19:33:26 +00:00
mhugent
75978402ea first version of feature commiting for the postgresprovider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2184 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-30 19:02:16 +00:00
mhugent
f88041c1a0 moved start editing/ stop editing stuff up to QgsVectorDataProvider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2177 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-26 20:40:14 +00:00
gsherman
b080e37504 Added editable flag (someday we might actually be able to digitize
features :))


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2140 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-18 05:17:19 +00:00
mhugent
7cf0782112 fix for bug 1044242 symbology bug on where claused PostGIS tables
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2138 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-16 23:26:28 +00:00
mhugent
575a52aae1 added extra parameter to getNextFeature(std::list<int>,bool), give not commited features id -1 to prevent conflicts (selection via table) with commited features
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2137 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-16 22:49:15 +00:00
gsherman
25ac8fd420 Applied patch from Gavin that fixes bug 1045894.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2130 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-15 05:05:19 +00:00
gsherman
13e0651cd0 Cosmetic change to comments
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2116 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-09 16:16:16 +00:00
gsherman
59d25e016d Imperfectly fixed problem where attributes aren't displayed if the primary
key is not of type int4 (bug 1042706). Support for a unique id key field needs
to be added to the provider. Support for keys other than int4 will require
changing QgsFeature to a template class and other major architectural changes.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2108 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-08 04:57:48 +00:00
mhugent
6769603abb added qgsvectordataprovider interface and start editing/ stop editing for vector digitising
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2049 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-09-27 21:30:27 +00:00
gsherman
38226383b1 Updated splash screen for 0.5 -- waiting for backlash...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1942 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-08-27 18:59:39 +00:00
mhugent
0f8308d2d2 implemented writing of points to make some tests with feature writing. Use the capture-point tool to write on point vector layers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1742 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-11 06:01:10 +00:00
gsherman
384e7209d3 1. First pass at defining PostgreSQL layers using a where clause in the data
provider. UI may need some work. When adding a PG layer, double- click on the
layer name to define the where clause. Do not include the where keyword
2. Added $QTDIR/bin to the path for lrelease and lupdate in the i18n
scripts


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1740 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-10 06:45:34 +00:00
gsherman
c750325f86 Added patch from strk that improves calculation of extents for a postgres layer
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1699 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-29 04:27:55 +00:00
mhugent
d2bcf225d6 automatically use field precision in equal interval classification, implemented getNextFeature(list) in the postgresprovider. This change will not take effect until the other providers implement this too and i can change the mechanism for attribute loading for renderers. Delimitedtextprovider and grassprovider are still left
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1634 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-20 06:29:11 +00:00
gsherman
c1b936f9a4 Modifications to allow compilation under windows
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1603 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-17 04:27:07 +00:00
mhugent
3cd56a824b added a method getNextFeature(std::list<int>&) to the dataprovider classes (but didn't program it yet). The idea is, that besides copying no attributes (getNextFeature(false)) or all attributes (getNextFeature(true)), it should be possible to copy only the attributes with indexes contained in the passed list. This should improve the rendering efficiency of graduated renderers. I plan to implement this method for the shapefileprovider and make some efficiency tests. For the other data provider, it would be nice to have some help, because i am not very familiar with e.g. the postgresprovider, the delimited text provider or the grass provider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1414 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-16 20:39:47 +00:00
mcoletti
61671c486b Rolling forward QgsFeature::setGeometry() interface change whereby the size of
the well known type geometry binary buffer is also now passed in.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1137 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-04-02 19:18:42 +00:00
gsherman
1928a66e71 Indentation changes, stub for new getNextFeature function that will be implemented to plug memory leaks
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1008 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-10 23:21:01 +00:00
gsherman
1de5f298e3 Made changes required by refactoring QgsField
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@967 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-29 01:59:55 +00:00
gsherman
90e6ba84bd changed #ifdef DEBUG to #ifdef QGISDEBUG to fix rh/fedora problem
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@873 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-20 17:17:36 +00:00
gsherman
9fa29d06fb added GEOS detection and warning
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@824 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-13 17:51:56 +00:00
gsherman
872cafa9d2 added intersect option to select to properly select features during select and identify operations. OGR does not support intersects so this is only implemented in the postgres provider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@739 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-07 19:07:50 +00:00
gsherman
1c629792e6 added #ifdef to std::cout and std::cerr statements
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@678 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-02 06:10:46 +00:00
gsherman
d60680544c added validity checking at the data provider level. Modified logging in postgres provider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@591 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-25 07:41:36 +00:00
gsherman
fbb024a65f merge with datasource branch
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@519 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-19 18:17:13 +00:00