516 Commits

Author SHA1 Message Date
Juergen E. Fischer
306a53b810 postgres provider: also cast field expressions to text (fixes #12346) 2015-03-10 09:03:59 +01:00
Juergen E. Fischer
05768309a0 fix precise builds 2015-03-07 16:35:56 +01:00
Juergen E. Fischer
9eb495364b postgres provider: cosmetics (followup 09f410c) 2015-03-06 10:33:26 +01:00
Sandro Mani
09f410cab0 Greatly decrease the number of round-trips to the postgres server performed when reading and creating fields in the postgres provider 2015-03-06 10:10:42 +01:00
Juergen E. Fischer
f7b790ffbf postgres provider: use min()/max() before casting (followup bf56457; fixes #12306) 2015-03-04 08:30:34 +01:00
Juergen E. Fischer
2844005e80 postgres provider: disable editing of existing features when ctid is key 2015-03-04 00:29:25 +01:00
Juergen E. Fischer
bf56457a71 postgres provider: also use fieldExpression used to retrieve values in
minimumValue/maximumValue/uniqueValues
2015-02-18 18:32:19 +01:00
Nyall Dawson
d3c8837625 Fix uninitialized members 2015-02-16 16:58:10 +11:00
Vladimir Rutsky
e5a6a088d1 treat PostgreSQL's "xml" type as string 2015-02-06 20:54:08 +03:00
Juergen E. Fischer
843cf04920 database providers: cope with empty attribute changes (fixes #12040) 2015-01-30 22:56:26 +01:00
Juergen E. Fischer
f8f2713571 postgres provider: improve owner check (fixes #9844) 2015-01-24 22:11:51 +01:00
Sandro Mani
40ad3b0993 [FEATURE]: Transactional editing for postgres layers (other datasources possible in the future). Funded by City of Uster 2015-01-19 15:22:20 +01:00
Juergen E. Fischer
03713ce656 postgres provider: fix adding features with null values (fixes #11777) 2015-01-16 22:13:05 +01:00
Matthias Kuhn
78c519546a Add Qt5 support 2014-11-21 11:45:32 +01:00
Juergen E. Fischer
82b6e0342a cosmetic cleanups, typo fixes, formatting 2014-10-21 01:33:20 +02:00
Juergen E. Fischer
dfafa5dd47 fix geography detection (fixes #11375) 2014-10-16 01:58:03 +02:00
Juergen E. Fischer
d1e23a608a fix where clase when multiple features are filtered by id (fixes #11336, fixes #11408) 2014-10-15 16:57:56 +02:00
Chris Crook
f1577f1e8b Adding comments explaining code changes 2014-10-07 17:21:57 +13:00
Chris Crook
8b24554837 Fix saving styles in postgres where style definition includes %1 etc strings 2014-10-07 07:42:24 +13:00
Juergen E. Fischer
962b6d13ae postgres provider: don't warn, when queries return 'numeric' constants 2014-09-04 23:50:40 +02:00
Denis Rouzaud
aa40d61a8c fix editing of NULL values (fixes 0 to NULL, and fixes setting of NULL values in postgres) 2014-07-30 15:38:08 +02:00
Denis Rouzaud
b357a66652 do not transform toString to quote values (NULL integer becomes 0 otherwise) 2014-07-30 11:51:07 +02:00
Jürgen Fischer
45ebe5372e Merge pull request #1407 from dbaston/master
postgres provider: avoid overflow from casting index oid to integer (fixes #9005)
2014-06-17 18:37:29 +02:00
Juergen E. Fischer
7f6663a8e6 postgres: also accept PGRES_TUPLES_OK as positive result for UPDATE/DELETE/INSERT (fixes #9738) 2014-06-01 00:54:00 +02:00
Juergen E. Fischer
f4545d9dec fix crash in postgres layer creation (followup 3470b1d5c; fixes #10014) 2014-05-31 16:31:08 +02:00
Juergen E. Fischer
016b03b562 postgres: convert 4d geometries to 2d (fixes #9748) 2014-05-31 13:47:55 +02:00
Dan Baston
9019b8e71a avoid overflow from casting oid result to integer, causing failure to find name of primary key column 2014-05-29 10:56:49 -04:00
Nyall Dawson
3470b1d5c0 Make PostgreSQL lowercaseFieldNames option behave correctly with primary key field names 2014-05-21 07:54:37 +10:00
Nyall Dawson
7772042fff Add option to postgres provider to drop length constraints on character fields 2014-05-21 07:52:27 +10:00
Juergen E. Fischer
38e694713a allow setting geometry empty in postgres and spatialite provider (applies PR#1343) 2014-05-09 14:31:10 +02:00
Juergen E. Fischer
6d5df6b8fd postgres provider: retrieve srs from postgis 2014-05-06 00:05:57 +02:00
Juergen E. Fischer
18ac13c922 postgres provider: fix lookup of aliased columns 2014-05-05 21:14:54 +02:00
Carl Simonson
665f0a32fe Replace WFlags with WindowFlags
It has long been in Qt 4 that the WFlags window flags argument has been
renamed to WindowFlags. In fact, WFlags is just a typedef to WindowFlags.
In Qt 5, this will go away, so we can change this now to make transition
easier in the future.

This should not have any affect on API or ABI, as the symbol names already
have WindowFlags in them anyway.

This change concentrates on the sources in the src directory. There are
a few more places in the python directory that can be done later.
2014-03-27 10:43:11 +01:00
Nyall Dawson
013f9e96a2 Make PostGIS provider correctly use time and datetime formats, instead of converting them to character 2014-03-26 09:12:51 +11:00
Nyall Dawson
748d261d21 [processing] Add option for converting field names to lowercase for Import to PostGIS algorithm 2014-03-25 14:00:57 +11:00
Juergen E. Fischer
5a25570b7e indentation update 2014-02-23 23:27:03 +01:00
Martin Dobias
a3af93394e Merge branch 'master' into threading-revival
Some features are still disabled - will be fixed later

Conflicts:
	python/core/composer/qgscomposition.sip
	python/core/diagram/qgsdiagram.sip
	python/core/diagram/qgshistogramdiagram.sip
	python/core/diagram/qgspiediagram.sip
	python/core/diagram/qgstextdiagram.sip
	python/core/qgsdiagramrendererv2.sip
	python/core/qgsfield.sip
	python/core/qgslabelsearchtree.sip
	python/core/qgsmaprenderer.sip
	python/core/qgsrenderchecker.sip
	python/core/symbology-ng/qgssymbollayerv2.sip
	python/gui/qgsmapcanvas.sip
	src/app/composer/qgscomposerlegendwidget.cpp
	src/app/qgisapp.cpp
	src/core/composer/qgsatlascomposition.cpp
	src/core/composer/qgscomposerattributetable.cpp
	src/core/composer/qgscomposermap.cpp
	src/core/composer/qgscomposition.cpp
	src/core/composer/qgscomposition.h
	src/core/diagram/qgsdiagram.h
	src/core/diagram/qgshistogramdiagram.cpp
	src/core/diagram/qgshistogramdiagram.h
	src/core/diagram/qgspiediagram.cpp
	src/core/diagram/qgspiediagram.h
	src/core/diagram/qgstextdiagram.cpp
	src/core/diagram/qgstextdiagram.h
	src/core/qgsdiagramrendererv2.cpp
	src/core/qgsdiagramrendererv2.h
	src/core/qgsmaprenderer.cpp
	src/core/qgsmaprenderer.h
	src/core/qgsnetworkaccessmanager.h
	src/core/qgspallabeling.cpp
	src/core/qgsrenderchecker.h
	src/core/qgsvectorlayer.cpp
	src/core/qgsvectorlayer.h
	src/core/qgsvectorlayerfeatureiterator.cpp
	src/core/qgsvectorlayerfeatureiterator.h
	src/core/raster/qgsrasterlayer.cpp
	src/core/symbology-ng/qgscategorizedsymbolrendererv2.cpp
	src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
	src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
	src/core/symbology-ng/qgssinglesymbolrendererv2.cpp
	src/core/symbology-ng/qgssymbollayerv2.cpp
	src/core/symbology-ng/qgssymbollayerv2.h
	src/core/symbology-ng/qgssymbolv2.cpp
	src/gui/qgshighlight.cpp
	src/gui/qgsmapcanvas.cpp
	src/gui/qgsmapcanvas.h
	src/gui/qgsmapcanvasitem.cpp
	src/gui/qgsmaptoolidentify.cpp
	src/plugins/georeferencer/qgsgeorefplugingui.cpp
	src/providers/memory/qgsmemoryfeatureiterator.cpp
	src/providers/ogr/qgsogrfeatureiterator.cpp
	src/providers/ogr/qgsogrfeatureiterator.h
	src/providers/ogr/qgsogrprovider.cpp
	src/providers/oracle/qgsoraclefeatureiterator.cpp
	src/providers/oracle/qgsoracleprovider.cpp
	src/providers/postgres/qgspostgresconn.cpp
	src/providers/postgres/qgspostgresfeatureiterator.cpp
	src/providers/postgres/qgspostgresfeatureiterator.h
	src/providers/wfs/qgswfsfeatureiterator.cpp
	src/providers/wms/qgswmsprovider.cpp
	src/providers/wms/qgswmsprovider.h
	src/ui/qgsoptionsbase.ui
	tests/src/core/CMakeLists.txt
	tests/src/core/testqgscomposereffects.cpp
	tests/src/core/testqgscomposerhtml.cpp
	tests/src/core/testqgscomposerscalebar.cpp
	tests/src/core/testqgscomposershapes.cpp
2014-02-18 11:28:46 +07:00
Juergen E. Fischer
24b3ed171b postgres provider: fix detection of character fields (related to #8481) 2014-02-17 02:07:02 +01:00
Juergen E. Fischer
780443e200 indentation update 2014-02-09 11:26:56 +01:00
Juergen E. Fischer
3701561489 postgres provider: speedup loading of layers by not verifing srid and geometry if given in the uri (fixes #9510) 2014-02-08 17:03:40 +01:00
ahuarte47
f37b05621f #8725-R: New vector provider capability for topological simplification 2014-01-15 11:00:00 +01:00
Alvaro Huarte
3b6ed3bfc8 #8725-R: PostgresProvider simplifies on provider side
PostgresFeatureIterator implements simplification on provider side
2014-01-15 11:00:00 +01:00
Martin Dobias
9d001853c0 Introduction of concept of feature sources for vector data.
Feature sources of providers/layers should act as immutable
snapshots of the state of provider or layer, not being affected
by any concurrent changes to provider or layer while the source is in use.

Currently working just with OGR, Postgres, SpatiaLite providers.
2013-12-03 12:26:47 +07:00
Juergen E. Fischer
03a60d3b89 postgres provider: support materialized view (implements #8791) 2013-10-18 11:38:13 +02:00
Matthias Kuhn
0c90f32007 QgsFeatureRequest: New filters FilterExpression and FilterFids 2013-09-18 18:57:52 +01:00
Denis Rouzaud
70841a84f3 [postgres] do not update feature count if it was not set before 2013-09-03 14:56:00 +02:00
Matthias Kuhn
8c4c57b154 [postgres] some more precision/length fixes 2013-08-29 17:36:31 +02:00
Matthias Kuhn
a9c05d77cf Fix some postgres field precision and length inconsistencies 2013-08-29 16:23:02 +02:00
Juergen E. Fischer
6d48f11e57 wfs server: fix multilinestring parsing 2013-07-14 20:30:05 +02:00
Juergen E. Fischer
f203105387 postgres provider: set length and precision of native floating point types to -1 (fixes #8145) 2013-07-09 10:22:28 +02:00