58 Commits

Author SHA1 Message Date
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
larsl
99225b3564 Cleaned up the GPX parsing
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1587 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-14 21:53:32 +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
75e79f7427 Changes to support Windows version
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1581 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-14 04:35:20 +00:00
larsl
ae4547df80 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/qgis@1566 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-12 22:02:12 +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
jobi
d7af42f63e ** fixed bug #965720 by adding math.h for gcc 3.4 problems
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1519 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-03 14:05:01 +00:00
larsl
7d0ee227c7 ** Added some calls to std::string::c_str() to hopefully make Qt without STL
happy


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1477 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-26 15:25:07 +00:00
gsherman
afb058408b ** 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/qgis@1443 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-21 06:26:24 +00:00
larsl
1718f18eac ** Implemented getNextFeature(list<int>&) in the GPX provider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1434 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-19 15:18:39 +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
larsl
7f26cc8dec ** Added URL parsing and attribute fields for route and track GPX layers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1421 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-17 10:32:19 +00:00
larsl
3e6ae6d1ae Added url/link parsing to the GPX provider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1416 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-16 21:23:27 +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
larsl
35b1791b6b 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/qgis@1392 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-13 21:51:33 +00:00
larsl
b5a78105af 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/qgis@1371 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-11 22:00:56 +00:00
larsl
f1c97f92e9 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/qgis@1359 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-10 22:59:12 +00:00
larsl
13d0e7582e Added the GPX/LOC provider plugin (no GUI yet, so it can't be tested)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1340 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-05-07 18:44:20 +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
rabla
c29acef098 some bugfixes
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1168 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-04-07 16:09:29 +00:00
jobi
7bcd14889e ** fixed GRASS provider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1149 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-04-04 15:27:33 +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
6cfa2c24f2 ** Fixed GRASS plugin and provider build
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1130 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-04-01 12:23:06 +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
jobi
360c3e87e7 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/qgis@1121 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-30 22:23:08 +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
f289cfa491 Added GRASS support from Radim
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1103 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-26 17:42:11 +00:00
gsherman
f8aeda2cf4 Added GRASS provider from Radim
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1102 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-26 17:37:07 +00:00
gsherman
3ea3ce046f Changed parsing/splitting to use regular expressions. This allows special
characters such as tab (\t) to be specified.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1093 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-26 05:54:17 +00:00
mcoletti
6d02614cef - s/config.h/qgsconfig.h [0]
- qgsconfig.h now has header sentinals

- now will install headers in $(prefix)/qgis/include and libqis.* library in
  $(prefix)/lib [1]

- "src/Makefile" no longer relies on explicit dependencies and uses better
  naming scheme for created source files [2]

Notes:

[0] To eliminate any file namespace collisions.  Unfortunately there will
    still be some macro name collisions.  These are harmless, though annoying.
    What needs to happen is that all header file references to "qgsconfig.h"
    be moved to implementation files, thus breaking any include dependencies
    for external software.

[1] There currently does not exist a way to make this optional; these will
    always install.  In the future, this might be something toggleable by a
    configure script option.  Moreover, there does not currently exist a
    "qgis-config" script for getting command line options for external,
    dependant software; there might be one in a future release.

    I decided to err on including too many header files; almost certainly some
    of the header files that are currently installed can be culled from the
    "to install" list.

    The new make file has two targets: the old qgis application target, and a
    second one for the library.  As plug-ins are developed, there may be a
    need to add more source files to the library to link against.  I just
    added in the bare minimum for the current set of plug-ins.  If more
    sources need to be added, just add them to libqgis_la_SOURCES, near the
    bottom of  "src/Makefile.am".

[2] All *.ui files will create corresponding *.uic.h and *.uic.cpp files.
    Since these also need MOC files, *.moc.uic.cpp files are also
    automatically created.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1056 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-22 20:00:55 +00:00
gsherman
0d848cb31a Minor code reformatting
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1029 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-12 16:45:32 +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
d089d5efb1 Fixed implementation for tables and identify. Select and highlight of features does not work yet. This is the inital version, work on bugs is ongoing
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1007 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-10 23:18:52 +00:00
gsherman
5b0b03232e Added delimited text provider to Makefile.am
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1006 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-10 23:17:37 +00:00
gsherman
d467258cab *** empty log message ***
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@999 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-10 02:30:45 +00:00
jobi
29c30a46d7 - Changed configure stuff to write DEFINES in config.h.
Postgresql stuff needs testing as I commented the compileflags in src/Makefile.am
- Infos will be posted on the devel mailinglist


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@983 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-05 23:30:29 +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
48eead0ce4 1. Added bounds checking for selecting features.
2. Created wkbPoint structure for building WKB (well known binary) representation
	 of the point.
3. Implementation is not complete.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@971 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-03-01 06:34:46 +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
59f888bdca initial import
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@959 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-29 00:46:46 +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
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
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