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
mcoletti
f9820cd980
Debugging output to std::cerr was getting ignored, so changed to use
...
qDebug(). Also now emit __FILE__ and __LINE__ so know exactly what debugging
statements are being executed.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2328 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-24 19:34:43 +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
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
99a6dba77b
Implemented identify/selection using GEOS to return the proper features
...
rather than any feature falling within the minumum bounding rectangle
(MBR). QGIS now required GEOS. This works with GEOS 2.x, needs to be
tested at GEOS 1.x
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2139 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-18 05:16:10 +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
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
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
mhugent
27d2c1bcab
implemented and tested QgsShapeFileProvider::getNextFeature(list<int>). This speeds up rendering of graduated symbol layers a lot (especially if there is much attribute data). However, for the commit, the old getNextFeature(bool) has been enabled again, because getNextFeature(list) has to be implemented in all data providers to not break the other providers.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1423 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-17 20:14:01 +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
e059645ea2
- plugged memory leak in QgsShapeFileProvider::getFirstFeature() whereby the
...
OGRFeature wasn't getting destroyed
- made getFirstFeature() a little more robust with regards to handling memory
related errors
- implementation files should include their own headers first, so moved its
#include accordingly to top; the meant creating class forward declarations
in header file.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1105 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-26 22:29:54 +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
mcoletti
efa17e0ae5
- ran files through GNU indent to make it easier to read code
...
- isValid() was always returning true when, in fact, occasionally the
provider was not in a valid state
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@978 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-04 20:35:14 +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
mhugent
18434add54
cleaned up a few things in the shapefile provider
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@734 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-07 14:09:00 +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