332 Commits

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