gsherman
bb56fad59f
QgsShapefileProvider must return a value from addFeature
...
QgisApp changed to support restoring of plugins from Windows.
git-svn-id: http://svn.osgeo.org/qgis/trunk@1761 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-14 19:13:27 +00:00
gsherman
9ff53a087e
Added check to see if open in update mode failed. If so, try to open it
...
in read-only mode. Need to set a flag or something to indicate read-only
so editing operations don't fail (once they are implemented)
git-svn-id: http://svn.osgeo.org/qgis/trunk@1752 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-13 04:34:30 +00:00
mhugent
6e9541d0da
delete the qgis features after drawing to avoid a memory leak. If someone has problems with drawing vector layers after this commit (which i don't hope!), just change 'delete fet;' in qgsvectorlayer.cpp l. 593 back to 'delete[]feature;'
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1749 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-12 16:48:12 +00:00
mhugent
1497f8f143
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@1742 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-11 06:01:10 +00:00
mhugent
d08c6f46e6
hopefully fixed the remaining problems of yesterdays commits/rollback. If there are still some bugs (or new ones) just write a mail to marco.hugentobler@autoform.ch
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1650 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-21 16:58:28 +00:00
mhugent
13ae5db6b0
fixed more memory leaks. Enabled delete statement in qgsvectorlayer.cpp, l. 595
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1638 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-20 16:04:28 +00:00
mhugent
49208bc65f
fixed two memory leaks
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1637 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-20 14:47:30 +00:00
mcoletti
23fbd1c935
nextFeature() now sets feature type name
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1586 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-14 20:59:45 +00:00
gsherman
5133e9e8b7
Added WIN32 support -- Edit with caution -- we now are supporting multiple
...
platforms from one code base!
git-svn-id: http://svn.osgeo.org/qgis/trunk@1561 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-12 17:26:47 +00:00
mcoletti
5b5c0028d3
Added support for a feature type name in QgsFeature. The GDAL/OGR shape file
...
provider now also provides the feature type name.
git-svn-id: http://svn.osgeo.org/qgis/trunk@1548 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 21:32:53 +00:00
mhugent
1a6840c571
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@1423 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-17 20:14:01 +00:00
mhugent
b25ce35fb7
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@1414 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-16 20:39:47 +00:00
jobi
ac455c294e
** Changed to simple macros for detecting QT and GDAL
...
** Added code for detecting QGIS as m4 file to tools
** this will be installed together with QT and GDAL detection to
$prefix/share/aclocal/qgis.m4
so the plugins can just use those simple unique macros
** updated German translation
!! Developers have to link the installed qgis.m4 to /usr/share/aclocal/
!! or where ever aclocal keeps the m4 files
!! otherwise it's not detected by the plugins autogen.sh (more exactly
!! aclocal)
!! It can be cheated by adding -I path/to/qgis.m4 to the aclocal of
!! autogen.sh. But be carefull not to commit that to CVS
git-svn-id: http://svn.osgeo.org/qgis/trunk@1213 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-04-18 23:44:41 +00:00
mcoletti
5e763c0acb
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@1137 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-04-02 19:18:42 +00:00
jobi
a1abe6de76
** fixed strange warning: object 'foo.$(OBJEXT)' created both
...
with libtool and without
** also cleaned the other Makefiles that way
git-svn-id: http://svn.osgeo.org/qgis/trunk@1127 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-31 22:06:54 +00:00
mcoletti
b5aee9e66e
QGuardedPtr can only be used on classes derived from QObject. Since OGRFeature
...
isn't derived from QObject it was inappropriate to use QGuardedPtr for
OGRFeature objects. Fixed to use old fashioned pointer checking and deleting.
git-svn-id: http://svn.osgeo.org/qgis/trunk@1106 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-26 22:52:10 +00:00
mcoletti
4f120dc186
- 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@1105 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-26 22:29:54 +00:00
gsherman
15a79c50c2
Indentation changes, stub for new getNextFeature function that will be implemented to plug memory leaks
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1008 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-10 23:21:01 +00:00
mcoletti
922ff0ec11
Added copy of .indent.pro file from src directory to this provider directory
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@980 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-04 21:03:48 +00:00
mcoletti
ab3b85fdbb
- 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@978 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-04 20:35:14 +00:00
gsherman
bca5aa031a
backed out changes related to memory leak fixes
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@899 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-23 06:22:35 +00:00
gsherman
f5337a7d69
changed #ifdef DEBUG to #ifdef QGISDEBUG to fix rh/fedora problem
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@873 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-20 17:17:36 +00:00
jobi
2b4c42d03f
Added make release, what creats a tar.gz and a tar.bz2
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@855 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-14 17:28:18 +00:00
gsherman
b47cee3de3
changes to build system
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@791 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-11 05:47:36 +00:00
gsherman
261ac997f0
didge updates to gnu build configuration
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@766 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-10 03:56:45 +00:00
gsherman
80f901f76c
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@739 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-07 19:07:50 +00:00
mhugent
eb6c570363
cleaned up a few things in the shapefile provider
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@734 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-07 14:09:00 +00:00
gsherman
c1313d8e6c
fixed std::cerr messages
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@679 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-02 06:19:28 +00:00
gsherman
7d610fdd14
added #ifdef to std::cout and std::cerr statements
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@678 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-02 06:10:46 +00:00
mcoletti
d565d76ba5
Added GDAL compiler flags.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@598 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-26 19:06:30 +00:00
mhugent
ad21f8da38
various changes (downtime of sf)
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@592 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-25 08:05:16 +00:00
gsherman
f87e2178d4
added validity checking at the data provider level. Modified logging in postgres provider
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@591 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-25 07:41:36 +00:00
gsherman
47af50b1e3
merge with datasource branch
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@519 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-19 18:17:13 +00:00