241 Commits

Author SHA1 Message Date
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
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