250 Commits

Author SHA1 Message Date
brushtyler
650d97b0d3 use both schema and table name retrieving oid, to fix #3329
fixed endian deduction corrupted in r13340


git-svn-id: http://svn.osgeo.org/qgis/trunk@14919 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-12-15 21:59:30 +00:00
brushtyler
3e0bd614d4 fix adding features on geometryless tables
git-svn-id: http://svn.osgeo.org/qgis/trunk@14834 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-12-03 17:20:14 +00:00
jef
ff165c343b apply #3242
git-svn-id: http://svn.osgeo.org/qgis/trunk@14748 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-11-23 05:31:46 +00:00
jef
c567751933 fix capabilities detection for postgres >=8.4
git-svn-id: http://svn.osgeo.org/qgis/trunk@14738 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-11-22 18:53:12 +00:00
jef
4f4a2128aa ask for postgres credentials on any connection error (not only missing password)
git-svn-id: http://svn.osgeo.org/qgis/trunk@14380 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-10-14 15:42:55 +00:00
jef
ff198a85d1 also report provider errors when not debugging
git-svn-id: http://svn.osgeo.org/qgis/trunk@14281 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-09-25 14:21:50 +00:00
jef
fa92616037 [FEATURE] allow adding geometryless layers from postgres
git-svn-id: http://svn.osgeo.org/qgis/trunk@14248 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-09-18 18:20:24 +00:00
jef
886c17fbde followup r14150 again
git-svn-id: http://svn.osgeo.org/qgis/trunk@14152 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-08-26 19:00:02 +00:00
jef
ae6ad4ee1f followup r14150
git-svn-id: http://svn.osgeo.org/qgis/trunk@14151 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-08-26 18:57:36 +00:00
jef
7840204ac8 fix for postgis data crossing the dateline
git-svn-id: http://svn.osgeo.org/qgis/trunk@14150 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-08-26 18:44:09 +00:00
jef
aedac63127 apply #2730
git-svn-id: http://svn.osgeo.org/qgis/trunk@13922 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-07-17 11:22:30 +00:00
jef
0c7beb8733 allow adding features to postgres layers with oid
git-svn-id: http://svn.osgeo.org/qgis/trunk@13781 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-06-22 16:22:06 +00:00
jef
ce769ad090 postgres provider update:
- lazy determine extent and invalidate extent on subst string change (fixes #2752 for postgres)
- use estimate extent when "use estimate metadata" is set (reverts r13499)
- remove rest of unused threading


git-svn-id: http://svn.osgeo.org/qgis/trunk@13584 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-05-28 21:58:35 +00:00
jef
7b38553dd2 postgres provider: remove unused threading code
git-svn-id: http://svn.osgeo.org/qgis/trunk@13557 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-05-24 11:02:37 +00:00
jef
7366f4ca1b postgres provider: lazy feature count
git-svn-id: http://svn.osgeo.org/qgis/trunk@13524 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-05-18 11:27:48 +00:00
jef
7340172400 postgres provider: fix feature count, when subset string is set
git-svn-id: http://svn.osgeo.org/qgis/trunk@13499 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-05-16 14:22:06 +00:00
jef
64d2fc8286 fix #2707
git-svn-id: http://svn.osgeo.org/qgis/trunk@13470 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-05-12 22:45:25 +00:00
jef
bda45a088a minor pg provider fix: oid==0 is invalid
git-svn-id: http://svn.osgeo.org/qgis/trunk@13424 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-05-05 08:39:31 +00:00
jef
7b48ca7bb5 fix #2681
git-svn-id: http://svn.osgeo.org/qgis/trunk@13406 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-04-28 10:32:56 +00:00
jef
46b8666836 fix #2680
git-svn-id: http://svn.osgeo.org/qgis/trunk@13404 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-04-27 14:09:48 +00:00
jef
9b1f6ff6a7 set feature validity in QgsPostgresProvider::featureAtIt
git-svn-id: http://svn.osgeo.org/qgis/trunk@13376 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-04-25 01:03:53 +00:00
jef
c6879e041f postgres provider: fix error handling
git-svn-id: http://svn.osgeo.org/qgis/trunk@13375 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-04-24 20:59:46 +00:00
jef
7d4f628d34 postgres provider: improve error handling
git-svn-id: http://svn.osgeo.org/qgis/trunk@13374 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-04-24 20:06:45 +00:00
jef
f2039c7ebc apply #2662. Thanks Giuseppe.
git-svn-id: http://svn.osgeo.org/qgis/trunk@13340 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-04-20 19:29:25 +00:00
jef
5cda362747 german translation update
git-svn-id: http://svn.osgeo.org/qgis/trunk@13256 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-04-05 22:42:59 +00:00
jef
b4010ce28c use other approach to avoid estimate_extents on not analyzed tables
git-svn-id: http://svn.osgeo.org/qgis/trunk@13221 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-04-01 12:58:04 +00:00
jef
06c7e7b6ff another postgres feature count fix
git-svn-id: http://svn.osgeo.org/qgis/trunk@13165 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-03-26 15:31:37 +00:00
jef
7fb0e90c88 [FEATURE] WMS-C support, new spatial authorities, wms selection improvements
- QgsDataProvider&QgsMapLayer: add dataChanged() signal, so that a provider can signal that the datasource changed
- use QNetworkAccessManager instead of QgsHttpTransaction (including caching and
  dynamic authentification to website and proxies)
- resolve EPSG dependency in spatial reference systems and
  included french IGNF definitions in srs.db
- wms provider:
  - do request asynchronously through QNetworkAccessManager
  - add support for WMS-C
  - dataChanged() is to cause a redraw asynchronously, when new tiles arrive
- wms selection:
  - add support for WMS-C tilesets
  - allow inserting of all layers of a branch
  - add support for more mime types
  - move load/save to button box
  - and more cleanups
- raster provider: reduce debugging noise
- allow adding parts to multi points and lines



git-svn-id: http://svn.osgeo.org/qgis/trunk@13093 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-03-20 08:54:33 +00:00
jef
172f28b6a9 fix #2555
git-svn-id: http://svn.osgeo.org/qgis/trunk@13059 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-03-15 19:25:02 +00:00
jef
4852ceb147 apply #2460 (slightly modified). Thanks Jeremy Palmer.
git-svn-id: http://svn.osgeo.org/qgis/trunk@13044 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-03-10 23:58:48 +00:00
jef
b0a9d99453 fix #2511
git-svn-id: http://svn.osgeo.org/qgis/trunk@13014 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-03-07 17:34:20 +00:00
jef
bdf1ee6838 fix #2397 by clearing attribute maps when retrieving features
git-svn-id: http://svn.osgeo.org/qgis/trunk@12869 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-02-04 00:18:15 +00:00
jef
3c5c55ee9f [FEATURE] allow postgres layers without saved username & password by asking for credentials
git-svn-id: http://svn.osgeo.org/qgis/trunk@12859 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-02-01 21:44:19 +00:00
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