317 Commits

Author SHA1 Message Date
jef
0945312a6b add postgresql password cache
git-svn-id: http://svn.osgeo.org/qgis/trunk@12698 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-01-07 20:23:08 +00:00
jef
9b7a041be7 apply #2322
git-svn-id: http://svn.osgeo.org/qgis/trunk@12641 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-28 21:35:24 +00:00
jef
39defcc8e8 better fix for slowdown of r12418
git-svn-id: http://svn.osgeo.org/qgis/trunk@12450 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-14 13:02:07 +00:00
jef
97d5e901b6 fix slowdown of r12418
git-svn-id: http://svn.osgeo.org/qgis/trunk@12440 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-13 22:04:21 +00:00
jef
58c68efc8b better fix for #2137
git-svn-id: http://svn.osgeo.org/qgis/trunk@12418 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-12 13:18:38 +00:00
jef
1077ec7d1a include key= field in all postgres data source uris (only for views before)
git-svn-id: http://svn.osgeo.org/qgis/trunk@12369 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-08 00:53:53 +00:00
jef
8a66aee713 fix #2137
git-svn-id: http://svn.osgeo.org/qgis/trunk@12235 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-23 21:16:44 +00:00
jef
d5ef557773 fix postgres error messages
git-svn-id: http://svn.osgeo.org/qgis/trunk@11992 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-07 23:33:41 +00:00
jef
a2edffba3a also fix QgsPostgresProvider::uniqueValues() and ::parseEnumRange()
git-svn-id: http://svn.osgeo.org/qgis/trunk@11907 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-03 16:11:23 +00:00
jef
6db0a2fd1a fix QgsPostgresProvider::maximumValue()
git-svn-id: http://svn.osgeo.org/qgis/trunk@11904 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-03 15:54:36 +00:00
jef
9037374d7c fix #1987
git-svn-id: http://svn.osgeo.org/qgis/trunk@11784 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-09 13:06:15 +00:00
jef
0dcfb526fb postgres provider:
use same field expression in feature queries and min()/max()/distinct.
char fields were trimmed differently otherwise.



git-svn-id: http://svn.osgeo.org/qgis/trunk@11771 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-08 14:28:26 +00:00
jef
2642450bd2 postgres: consider subset string when deleting, updating and retrieving by fid
git-svn-id: http://svn.osgeo.org/qgis/trunk@11770 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-08 13:03:14 +00:00
jef
fda7403a80 postgres fixes:
- allow editing of where clause in database selection dialog
- don't open query builder with invalid layer
- reallow oid type as primary key type
- preset where clause with current one in query builder
- actually show error message when QgsPostgresProvider::getGeometryDetails() fails



git-svn-id: http://svn.osgeo.org/qgis/trunk@11767 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-08 11:53:09 +00:00
jef
4ed28f36b8 wider support for vector layer queries:
- add query support for OGR and spatialite layers (additional to postgres)
- QgsDataProvider::setSubsetString() now returns if the query is successful.
- add optional parameter to limit number of values returned from QgsVectorDataProvider::uniqueValues() 
- rename QgsDbSourceSelect to QgsPgSourceSelect, use QgsVectorLayer for layer queries and make it wider
- QgsDataSourceURI: improve quoting
- fix relative path support for SpatiaLite on windows
- rename QgsPgQueryBuilder to QgsQueryBuilder and use QgsVectorLayer for
  queries instead of postgres

cleanups:
- rename QgsServerSourceSelect to QgsWMSSourceSelect



git-svn-id: http://svn.osgeo.org/qgis/trunk@11762 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-06 22:05:52 +00:00
timlinux
d1eb98a89d Inject a bit of layman into field names to help those not familiar with computer terms
git-svn-id: http://svn.osgeo.org/qgis/trunk@11730 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-09-28 21:46:04 +00:00
jef
b9508088ca postgres provider update:
- only use typlen for char fields
- use subset string when checking for key uniqueness and recheck in setSubsetString() (fixes #1933)


git-svn-id: http://svn.osgeo.org/qgis/trunk@11703 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-09-22 23:26:15 +00:00
jef
793b091892 postgres & ogr provider update:
- postgres provider: report field width -1 for everything except strings (fixes #1131)
- in vector file writer, ogr provider choose field width:
  - 255 for strings, when given width is negative or larger.
    (was 80 in ogr provider and OGR determined-default for vector file writer).
  - 10 for integers, when given width is negative or larger.
  - 32 for reals, when given width is negative or larger.



git-svn-id: http://svn.osgeo.org/qgis/trunk@11464 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-08-21 13:32:42 +00:00
jef
0bb8cb2adb automatic indentation update (r11227-r11370)
git-svn-id: http://svn.osgeo.org/qgis/trunk@11371 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-08-14 09:20:23 +00:00
jef
2b5663083b more cleanups:
- don't link GSL's CBLAS. We don't use it.
- don't link GEOS and GDAL into python bindings. They don't use them directly.
- link libdl on unix when internal spatialite is used
- update SONAMEs
- fix some warnings and typos



git-svn-id: http://svn.osgeo.org/qgis/trunk@11250 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-08-02 15:28:05 +00:00
jef
b49980c995 automatic indentation update (r11003-r11227)
git-svn-id: http://svn.osgeo.org/qgis/trunk@11228 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-07-31 17:15:15 +00:00
wonder
8b1fb78d8d providers: deprecated some overlapping capabilities and added doxygen docs for them.
All providers should have now correctly set capability for fast access to features by id (SelectAtId).

Until now, attribute table was using memory model for Postgres provider (i.e. very slow open)
From now it uses the "good" model, so the attribute table opens much faster.


git-svn-id: http://svn.osgeo.org/qgis/trunk@11137 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-07-21 14:29:38 +00:00
jef
eead1f7ddd fix #1707
git-svn-id: http://svn.osgeo.org/qgis/trunk@11107 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-07-18 21:26:40 +00:00
mhugent
c4b6e7b2f2 Handle non-ascii characters in domain check constraints
git-svn-id: http://svn.osgeo.org/qgis/trunk@11104 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-07-17 17:35:44 +00:00
jef
f76f8a94e6 fix #1744
git-svn-id: http://svn.osgeo.org/qgis/trunk@10969 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-06-23 12:36:33 +00:00
jef
6faf04d396 reindent postgres provider
git-svn-id: http://svn.osgeo.org/qgis/trunk@10968 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-06-23 12:35:23 +00:00
mhugent
927985e949 Extended enum support in postgres provider to work also with domain check constrains (at the moment only for constrain types like VALUE in ('a', 'b', 'c'))
git-svn-id: http://svn.osgeo.org/qgis/trunk@10940 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-06-17 09:42:24 +00:00
mhugent
535490afff Support for enumerations as an edit type in the infotool dialog (with combo box selection)
git-svn-id: http://svn.osgeo.org/qgis/trunk@10902 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-06-11 07:23:31 +00:00
jef
3e01e6d3d5 - allow setting of field width and precision when adding attributes
- update vector data providers accordingly
- postgres provider:
  - add support for more native types and setting of column comments
  - catch errors on retrieval of defaults values (fixes #1713)



git-svn-id: http://svn.osgeo.org/qgis/trunk@10863 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-05-30 17:48:49 +00:00
jef
468550c6d2 speed up loading of projects with (complex) views:
save key column of postgresql layers to projects file and try it first on
reload.



git-svn-id: http://svn.osgeo.org/qgis/trunk@10657 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-04-26 22:49:37 +00:00
jef
6779465eae automatic indentation update (r10488-r10594)
git-svn-id: http://svn.osgeo.org/qgis/trunk@10595 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-04-19 08:32:36 +00:00
jef
4bd78a398f handle broken postgis installations more traceful
git-svn-id: http://svn.osgeo.org/qgis/trunk@10578 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-04-16 19:58:26 +00:00
jef
f8277d9154 use ctid as temporary feature id in postgres provider if there is no other primary key available
git-svn-id: http://svn.osgeo.org/qgis/trunk@10474 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-04-05 10:51:35 +00:00
jef
9addfdbbd2 fix feature count in postgres provider
git-svn-id: http://svn.osgeo.org/qgis/trunk@10426 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-03-27 17:40:08 +00:00
cfarmer
539ee46f24 Ensures that features (properly) fetched from provider (via nextFeature)
are set as valid
Ensures that only valid features are rendered on the map canvas


git-svn-id: http://svn.osgeo.org/qgis/trunk@10272 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-03-11 23:45:23 +00:00
jef
72cfd51023 string translation update:
- collect concatenated strings into one string to get more translation context (foo + tr(" bar ") + baz => tr("%1 bar %2)").arg( foo ).arg( bar) 
- don't qualify tr(), when not necessary (QObject::tr => tr)
- remove QString cast/ctor where not necessary ( QString( tr(...) ) => tr (...) )
- add numerusforms where applicable
- fix QgsGrassEdit::setCanvasPrompt (was setCanvasPropmt) and more typos
- remove plugin template strings from coordinate capture plugin
- add Q_OBJECT to classes using QObject::tr (fixes lupdate warnings)



git-svn-id: http://svn.osgeo.org/qgis/trunk@9897 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-12-26 21:07:03 +00:00
jef
6fbda00825 automatic indentation update (r9447-r9780)
git-svn-id: http://svn.osgeo.org/qgis/trunk@9781 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-12-13 11:07:45 +00:00
wonder
1be590bf14 Allow opening layers with M dimension, but explicitly disable editation of geometries (would corrupt M dimension) and creation of new features (would keep invalid M dimension).
git-svn-id: http://svn.osgeo.org/qgis/trunk@9709 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-25 23:42:35 +00:00
jef
bb63eac685 postgres provider update:
- handle secondary geometry columns as text in EWKT.
- improve handling of errornous queries.
- kudos to Stefanie Tellex for the initial patch



git-svn-id: http://svn.osgeo.org/qgis/trunk@9619 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-10 19:40:00 +00:00
timlinux
b40ceb2d62 API cleanups for QgsRect that got overlooked...
git-svn-id: http://svn.osgeo.org/qgis/trunk@9605 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-09 00:14:12 +00:00
timlinux
67fdbb5efb Changed begin() to rewind() on provider interface
git-svn-id: http://svn.osgeo.org/qgis/trunk@9582 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-08 00:49:59 +00:00
timlinux
bb9c89abbb qgsprovidercountcalcevent api cleanups
git-svn-id: http://svn.osgeo.org/qgis/trunk@9538 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-24 22:12:40 +00:00
timlinux
394993ea8f API cleanups for qgsgeometry
git-svn-id: http://svn.osgeo.org/qgis/trunk@9515 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-22 07:31:05 +00:00
timlinux
314e8e6065 Api cleanups for qgsfeature
git-svn-id: http://svn.osgeo.org/qgis/trunk@9506 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-20 21:44:15 +00:00
timlinux
9884ef0758 Remove abbreviation of connectionInfo
git-svn-id: http://svn.osgeo.org/qgis/trunk@9502 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-20 20:24:36 +00:00
timlinux
dcfedaad21 remove get prefix for crs accessor
git-svn-id: http://svn.osgeo.org/qgis/trunk@9501 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-20 20:08:43 +00:00
jef
8094f1d4c6 hackfest commit from timlinux:
- more API cleanups
- single click (instead of drag) to select a feature (fixes #1154)
- fixes for topological editing


git-svn-id: http://svn.osgeo.org/qgis/trunk@9471 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-10 20:02:22 +00:00
timlinux
3072d71114 API cleanups: getNextFeature becomes nextFeature, getFeatureAtId becomes featureAtId, getDefaultValue becomes defaultValue, allAttributeList becomes attributeIndexes and reset becomes begin on data provider api.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9449 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-07 07:36:24 +00:00
timlinux
107a21bfd0 API Cleanup: Use begin() instead of reset() to move to start of selected features
git-svn-id: http://svn.osgeo.org/qgis/trunk@9447 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-06 21:11:54 +00:00
jef
099fe8f618 postgres provider: use default values for primary key
git-svn-id: http://svn.osgeo.org/qgis/trunk@9382 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-09-23 06:28:35 +00:00