mhugent
e404878e63
outcommented call to OGRLayer->DeleteFeature
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1777 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-17 10:55:02 +00:00
mhugent
7d405851eb
some cleanups
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1776 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-17 09:19:36 +00:00
mhugent
54f003c649
added code related to feature deletion
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1774 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-17 07:18:38 +00:00
mhugent
f7fc012fba
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@1772 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-16 18:38:16 +00:00
gsherman
c5eefa522d
Qmake project files for win32 build
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1768 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-15 01:10:40 +00:00
gsherman
416ffda87e
Qmake project file for providers directory
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1767 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-15 01:06:54 +00:00
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
rabla
10aeef73df
edit
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1746 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-12 15:16:48 +00:00
larsl
70b8806b9d
Started adding DOM writing to GPSData
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1744 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-12 10:54:41 +00:00
larsl
dc0795561e
Implemented addFeature() for the GPX provider
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1743 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-11 16:22:50 +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
gsherman
b28023080a
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@1740 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-10 06:45:34 +00:00
gsherman
a32990b08a
Added patch from strk that improves calculation of extents for a postgres layer
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1699 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-29 04:27:55 +00:00
rabla
255d1bb0f2
fix for missing attributes
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1662 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-23 07:19:22 +00:00
gsherman
eb546f40e6
Qmake project files for building on Windows
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1661 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-23 04:15:55 +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
mhugent
299296c403
graduated and continuous renderers now copy only the required attributes, which makes rendering faster, especially if there is much attribute information associated with a layer
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1635 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-20 12:53:53 +00:00
mhugent
264a1b0330
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@1634 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-20 06:29:11 +00:00
gsherman
48b01324d1
Modifications to allow compilation under windows
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1603 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-17 04:27:07 +00:00
larsl
50251f65b5
Cleaned up the GPX parsing
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1587 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-14 21:53:32 +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
d8e87cbaa1
Changes to support Windows version
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1581 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-14 04:35:20 +00:00
larsl
91bfc3fcf1
Make 'no data' handling consistent in the GPX provider and remove isnan() since it breaks Windows builds
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1566 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-12 22:02:12 +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
jobi
ea2b00d4c5
** fixed bug #965720 by adding math.h for gcc 3.4 problems
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1519 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-03 14:05:01 +00:00
larsl
9074addc2b
** Added some calls to std::string::c_str() to hopefully make Qt without STL
...
happy
git-svn-id: http://svn.osgeo.org/qgis/trunk@1477 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-26 15:25:07 +00:00
gsherman
46cc05d9b3
** Changed release name to Madison in qgis.h
...
** Added QgsScaleCalculator to libqgis spec in src/Makefile.am
** Additional debug statements in grass data provider
git-svn-id: http://svn.osgeo.org/qgis/trunk@1443 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-21 06:26:24 +00:00
larsl
6cad51b07f
** Implemented getNextFeature(list<int>&) in the GPX provider
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1434 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-19 15:18:39 +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
larsl
7639902d1e
** Added URL parsing and attribute fields for route and track GPX layers
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1421 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-17 10:32:19 +00:00
larsl
2d067cb838
Added url/link parsing to the GPX provider
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1416 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-16 21:23:27 +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
larsl
67454fd8a9
Changing std::string to QString in GPSData::getData() and GPSData::releaseData() to support Qt libraries built without STL support
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1392 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-13 21:51:33 +00:00
larsl
b34b7f35a0
Don't add track and route layers for LOC files, throw real exceptions instead of strings in GPSData, move all file loading from QgsGPXProvider to GPSData, add a static container with reference counting to let GPX layers from the same file share data, use signaling_NaN instead of -max for 'no data' in waypoint elevation
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1371 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-11 22:00:56 +00:00
larsl
31d5593a85
The GPS plugin now adds GPX files as three layers, one for each feature type: waypoints, routes, and tracks
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1359 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-10 22:59:12 +00:00
larsl
0833986008
Added the GPX/LOC provider plugin (no GUI yet, so it can't be tested)
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1340 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-07 18:44:20 +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
rabla
4cd3ac0716
some bugfixes
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1168 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-04-07 16:09:29 +00:00
jobi
22c4cce5bd
** fixed GRASS provider
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1149 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-04-04 15:27:33 +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
88f600f163
** Fixed GRASS plugin and provider build
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@1130 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-04-01 12:23:06 +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
jobi
23ebfe5edc
A lot of small changes to make release work again
...
Probably more cleaning in the Makefiles needed
git-svn-id: http://svn.osgeo.org/qgis/trunk@1121 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-30 22:23:08 +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