gsherman
d7c11f14fc
Quick hack to add -lgeos flag to link. Need add detection code for geos to
...
configure for a permanent solution
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2144 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-18 16:15:22 +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
066bc2b7bc
added a dialog to enter and change attribute values when digitizing features
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2132 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-16 15:35:13 +00:00
mhugent
da8fce8702
Added a Menu item to create new empty shapefiles. Unfortunately, a dummy feature is inserted into each new layer (coordinates 0/0). Without the dummy features, a segfault in OGR would happen when opening the .dbf file. I will do more investigations to figure out if there is a way such that there is no need for dummy features.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2129 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-14 22:54:24 +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
larsl
968d198473
** Re-fixed bug 987874, the provider will now skip geometry-less features
...
but keep reading other features
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2021 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-09-20 17:55:21 +00:00
larsl
cc68daf5da
** Fixed bug 987874 which caused QGIS to crash when showing the attribute
...
table for shapefile layers with features with NULL geometry
(GetGeometryRef() returns NULL) - the OGR provider now treats features
with NULL geometry as NULL features, i.e. EOF
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2020 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-09-20 17:20:05 +00:00
spoerri
412e28bd34
Initial factory class and testing to check write access to repository
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1959 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-09-03 21:16:32 +00:00
timlinux
e4450c90ab
fixed gdal lib reference
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1860 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-08-14 01:10:09 +00:00
mhugent
3c073cdace
close attribute table when adding features such that it is always up to date
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1850 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-08-07 08:58:00 +00:00
mhugent
d01d15f9b0
some more wkb for the shapefileprovider. Only point and line are tested yes
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1829 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-28 19:38:19 +00:00
mhugent
436f599826
started to make a dialog class for unique renderer, added a bit of wkb code in the shapefileprovider
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1828 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-28 19:12:20 +00:00
mhugent
0fb4a79270
added support for polygons in QgsShapeFileProvider::addFeature. Not tested yet
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1791 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-20 17:48:34 +00:00
mhugent
24ffbefbba
outcommented call to OGRLayer->DeleteFeature
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1777 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-17 10:55:02 +00:00
mhugent
925f56dafc
some cleanups
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1776 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-17 09:19:36 +00:00
mhugent
6367e1de67
added code related to feature deletion
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1774 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-17 07:18:38 +00:00
mhugent
fe280e3f37
added digitising for lines. As this is highly experimental, backup your data before you use this tool. The icon for the button is not very nice. Feel free to change the icon if you have a nicer one
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1772 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-16 18:38:16 +00:00
gsherman
2b17ddeba2
Qmake project files for win32 build
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1768 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-15 01:10:40 +00:00
gsherman
aafbb5137b
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/qgis@1761 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-14 19:13:27 +00:00
gsherman
54040e759f
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/qgis@1752 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-13 04:34:30 +00:00
mhugent
c7fe065390
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/qgis@1749 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-12 16:48:12 +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
cc91766fbf
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/qgis@1650 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-21 16:58:28 +00:00
mhugent
3f6ef8ebe5
fixed more memory leaks. Enabled delete statement in qgsvectorlayer.cpp, l. 595
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1638 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-20 16:04:28 +00:00
mhugent
b00ed45364
fixed two memory leaks
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1637 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-20 14:47:30 +00:00
mcoletti
70e62d30ab
nextFeature() now sets feature type name
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1586 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-14 20:59:45 +00:00
gsherman
f376f878c7
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/qgis@1561 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-12 17:26:47 +00:00
mcoletti
9e6ebe4222
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/qgis@1548 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 21:32:53 +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
jobi
4ec847d71c
** 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/qgis@1213 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-04-18 23:44:41 +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
jobi
9c2601d125
** 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/qgis@1127 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-31 22:06:54 +00:00
mcoletti
a58281c4ef
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/qgis@1106 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-26 22:52:10 +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
0d37078e52
Added copy of .indent.pro file from src directory to this provider directory
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@980 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-04 21:03:48 +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
338ba29011
backed out changes related to memory leak fixes
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@899 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-23 06:22:35 +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
jobi
c70ac6993c
Added make release, what creats a tar.gz and a tar.bz2
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@855 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-14 17:28:18 +00:00
gsherman
aa1c37a993
changes to build system
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@791 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-11 05:47:36 +00:00
gsherman
2069a6dac4
didge updates to gnu build configuration
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@766 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-10 03:56:45 +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
4caad536f0
fixed std::cerr messages
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@679 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-02 06:19:28 +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
mcoletti
39be93ed70
Added GDAL compiler flags.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@598 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-26 19:06:30 +00:00
mhugent
8a61ce4e81
various changes (downtime of sf)
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@592 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-01-25 08:05:16 +00:00