230 Commits

Author SHA1 Message Date
gsherman
e1913af4a4 Implemented getSrid() to return the SRID of the layer. This commit
temporarily breaks the loading of PostGIS layers.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3225 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-25 15:37:30 +00:00
mhugent
ef160811bc added the possibility to choose encoding for postgis layers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3193 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-22 04:48:28 +00:00
mhugent
70dda7d59f avoid adding the geometry column to the attribute vector of QgsPostgresProvider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3174 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-16 20:53:56 +00:00
g_j_m
2fe36074e6 Remove #define QGSIDEBUG
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3147 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-13 10:21:01 +00:00
g_j_m
1a8ba167da Fix for bug due to recent change to qgsrect (data from postgres wasn't
being drawn).


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3146 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-13 10:16:02 +00:00
mhugent
231ac4d493 use postgis srid instead of hardcoded -1
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3138 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-12 20:49:53 +00:00
mhugent
e1aa7dc735 improved dialog for creating a new vectorlayer
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3117 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-10 12:51:30 +00:00
gsherman
86c976272f ** Merged Projections_Branch into HEAD
Problems:
      Polygon outlines are not drawn. This was checked twice and no cause
      was found.

      Projections do not work in all circumstances

      Note that both the proj4 library and sqlite3 are now required. The
      build system has not been modified to test for these yet.

      Qt 3.3.x is required to build this source tree.

      Make sure to increment the EXTRA_VERSION in configure.in when
      committing changes.

      Make sure to update the Changelog with each commit


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3112 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-10 07:04:07 +00:00
mhugent
9b0c6bd988 changed QgsOgrProvider::getNextFeature(bool) such, that the direct geos creation without WKT import is used. Norway can now be selected on the european map in reasonable time :-)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3079 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-04 20:16:50 +00:00
rabla
15ee81a966 toUnicode for attributes
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3058 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-01 12:28:09 +00:00
rabla
e6ae19e854 fix crash on start edit - check if edited
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3050 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-30 16:40:35 +00:00
g_j_m
046d2d750c - warn and refuse to load the layer if we don't have select permissions
on the table that is being loaded
- better conformance to the code style guidelines
- added tr() to some dialog box text


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3041 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-30 01:58:11 +00:00
larsl
1ec9fe95fb Committed Akio Takubos patch that fixes the provider interface so we can load vector files with non-ASCII filenames again
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3039 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-29 20:59:35 +00:00
rabla
4a9ec83ad4 encoding
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2999 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-21 18:12:21 +00:00
g_j_m
148dfe9d26 remove hard-coded QGISDEBUG
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2995 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-21 00:55:53 +00:00
g_j_m
2e113828d8 - Potential qgis key columns defined via views on views, etc are now regconised
- Improved parsing of SQL's that define views
- Improved identification of suitable qgis key columns
- Fix bug with data endian check not working for views
- Quote table names in all SQLs (fixes problem with table names that contain
  uppercase characters)
- Code style cleanup


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2994 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-21 00:11:42 +00:00
g_j_m
57fe1aa780 added *.moc.cpp
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2987 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-18 04:39:47 +00:00
g_j_m
10f713d4fc bug avoidance. Recent problems with accessing and viewing postgres layers
have been caused by the recent addition of threading in the postgres provider.

This commit puts the threading code inside #ifdef POSTGRES_THREADS and
hence avoids the problem in the threading code.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2986 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-17 23:57:26 +00:00
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