212 Commits

Author SHA1 Message Date
g_j_m
dd4cad1941 Fix for bug 1163483
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2971 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-15 20:16:11 +00:00
g_j_m
81d8aa1d3b forgot this in the last commit
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2969 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-15 08:05:14 +00:00
g_j_m
9071ad3935 - Bug fix for view column that use an SQL function in their definition
- Better debugging messages for view stuff
- In progress code for support of views that reference other views


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2968 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-15 08:03:52 +00:00
g_j_m
a304f1a211 Bug fix: tables without primary keys were not being recgonised
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2967 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-15 04:10:49 +00:00
larsl
864ce9fefc Always use UTF-8 for the GPX provider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2955 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-13 11:38:48 +00:00
g_j_m
e5e3d74281 - Improvements to column selection algorithm
- Clarification of comments


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2953 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-12 19:30:26 +00:00
g_j_m
7af82e5863 - bug fix for views with an oid column, but no other suitable column for use
by qgis as the key into the view
- start of support for views that reference views


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2952 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-12 18:13:46 +00:00
g_j_m
35ca7c7e97 Layers sourced from postgresql views no longer need a column called 'oid' -
they just need to contain a column that comes from a table that has a
unique or primary key constaint on it.

One caveat - views that are defined in terms of other views don't yet work,
and to not break exiting situations a column 'oid' in the view is still
recgonised (this will be fixed and removed shortly).


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2949 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-11 20:13:32 +00:00
mcoletti
2134e1f11e select() now consistently uses WKT polygon to compensate for pedantry in latest GEOS
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2944 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-10 20:13:59 +00:00
rabla
3fc56a321f update attributes if necessary
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2942 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-10 17:51:23 +00:00
rabla
fa9a570c88 check if the layer is empty, fixes the crash when a layer is stored in project file, but does not exist in vector
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2940 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-10 15:45:48 +00:00
gsherman
48198ce0ef Brendan Morely's postgis threaded extent patch (new files)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2936 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-10 05:38:27 +00:00
gsherman
ffbf03c76f Brendan Morley's postgis threaded extents patch
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2935 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-10 05:08:39 +00:00
mhugent
e2c9722bd4 replaced enum QgsVectorDataProvider::Encoding with QTextCodec
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2916 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-05 00:22:26 +00:00
rabla
38cce202b4 getProjectionWKT
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2913 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-04 17:30:01 +00:00
larsl
055f7da50e Fixed more XML writing bugs in the GPX provider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2900 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-02 18:19:41 +00:00
larsl
bee0a8a6a1 Fixed bug that broke GPX files containing reserved XML characters (forgot to replace them with entities)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2899 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-02 17:06:04 +00:00
larsl
2954616075 Changed to expat for parsing GPX files, fixed a bug that broke GPX files when setting attribute values containing non-ASCII characters
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2886 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-01 17:54:32 +00:00
g_j_m
d34fb4f379 bug fix: a spatial table with no rows would cause a crash
tidy up: text in the dialog box about views and oid's etc was all on
one line.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2885 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-01 17:47:55 +00:00
gsherman
639d91c411 Fix for bug that prevented features in postgres layers from being
selected or identified.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2872 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-26 07:10:27 +00:00
g_j_m
4952a04d48 Clarification of message when a view without an oid column is selected
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2863 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-22 23:38:28 +00:00
g_j_m
838f94d27b Same bug fix as previous commit, but for the
::getNextFeature(std::list<int> const & attlist) function


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2856 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-22 10:48:27 +00:00
g_j_m
c821c7347d Bug fix for postgis rows with a geometry column that contains no geometry.
QgsPostgresProvider::getNextFeature(bool) now always returns a valid
QgsFeature pointer (previously it would return 0 if there was no geometry in
the geometry column, which was also the value used to indicate 'no more features').
This fixes the problem whereby the attribute table dialog box would not populate
all of its rows.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2855 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-22 10:31:31 +00:00
mhugent
59631a388e Added a combo box in the dialog to add ogr layers where the user may select an appropriate encoding type (utf8, ascii, latin1). In QgsVectorDataProvider, there is a new member mEncodingType for this. OGRProvider already uses this encoding type and other providers may do it as well if necessary
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2843 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-18 23:12:13 +00:00
rabla
eb711fda82 GEOS flags
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2833 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-17 16:54:20 +00:00
telwertowski
8d1f06e75e Restructure GRASS provider and plugin to work on Mac OS X.
The provider and plugin are now 'pure' modules and code shared between them
is in the new shared library libqgisgrass.
This eliminates the libtool warning that linking grassplugin against
libgrassprovider is not portable.
libgrassprovider has also been renamed to grassprovider since it no longer
tries to be a combination provider and shared library (which only worked
on some platforms).


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2824 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-17 05:32:37 +00:00
timlinux
cf1a01dff6 Desctiption of qgis for checkinstall and little helper script to automate checkinstall
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2817 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-16 15:59:04 +00:00
mhugent
85ecbb3f37 Fixed for crash when showing the attribute table of a layer with no features and some other minor improvements to editing
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2799 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-13 19:40:01 +00:00
larsl
2e60214386 Forgot to remove some debug code
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2783 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-11 23:39:21 +00:00
larsl
53bd6d1eba Added attribute editing in the GPX provider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2782 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-11 23:36:49 +00:00
larsl
841c7addec Changed supports*() to capabilities()
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2781 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-11 22:33:38 +00:00
mhugent
ec0b110a2c Replaced QgsVectorDataProvider::support... functions with QgsVectorDataProvider::capabilities()
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2769 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-10 22:13:28 +00:00
mhugent
7d57ea9c2e Added QgsVectorDataProvider::capabilities(). The current queries in the dialogs will be subsequently replaced
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2763 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-08 22:16:14 +00:00
larsl
6ded2ab1d3 Enabled deletion of GPX tracks and routes too, it seems to work now
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2756 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-06 21:57:02 +00:00
larsl
9e80d518e8 Added waypoint deletion in the GPX provider, route and track deletion is buggy and will be disabled until they are fixed
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2751 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-06 19:18:31 +00:00
rabla
3e33d105e9 changeAttributeValues
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2733 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-02 15:53:25 +00:00
mhugent
625a5973fe some cleanups in QgsVectorLayer and in QgsPostgresProvider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2732 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-30 20:49:53 +00:00
g_j_m
9d96eea6d0 Add the ability to display postgis tables and views that lack the
requisite row in the geometry_columns table (views still need an
oid column though)


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2731 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-30 09:28:17 +00:00
mhugent
f37a383a0f quotes for text values in the postgres provider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2727 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-29 17:00:02 +00:00
mhugent
d3d18169b8 adding attributes for postgis layers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2724 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-29 14:54:15 +00:00
mhugent
de1cc61f8e added BEGIN and COMMITS for update and alter table, added select() after
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2713 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-25 21:06:54 +00:00
mhugent
6ad8b81813 implemented attribute editing. Still problems with changes not written to the database if the table is not closed and reopened
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2712 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-25 20:35:45 +00:00
mhugent
46b2803ce3 implementation of a gui to delete attributes in postgres table (changing of attributes and adding attributes will follow)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2695 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-23 09:49:30 +00:00
rabla
c2a2e8ca9b patch by jzbikowski for compilation without postgres
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2647 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-17 08:29:32 +00:00
mhugent
401a2503c4 fix for snapping tolerance bug and some changes in the attribute editing methods in the vector provider interface
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2645 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-16 20:50:32 +00:00
gsherman
b7ca95ba1c Added code to morph the projection WKT when loading a shapefile.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2636 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-16 00:10:20 +00:00
mhugent
5912bb3f14 added some consts
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2634 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-15 22:59:14 +00:00
mhugent
4e12f59f54 added methods for attribute editing in the vector data provider interface. First implementation in the postgresprovider, but not yet tested
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2633 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-15 22:32:42 +00:00
g_j_m
651c647cc8 More .cvsignore files. Should be all done now.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2612 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-10 22:06:18 +00:00
gsherman
9c5dd20cee Renamed qgsshapefileprovider to qgsogrprovider to better reflect its
function/purpose.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2607 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-09 17:43:07 +00:00