Alvaro Huarte
7cb8ff7f8a
#8275-R: simplification on a per-iterator basis
2014-01-15 11:00:01 +01:00
Alvaro Huarte
4cc82e6288
#8725-R: refactoring of simplification API in FeatureIterators
2014-01-15 11:00:01 +01:00
ahuarte47
2c67e511cd
#8725-R: no simplify point layers in postgres provider
2014-01-15 11:00:01 +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
9cc35761d4
Added connection pool for postgres
2014-01-06 19:23:19 +07: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
Matthias Kuhn
5e3083150f
QgsFeatureRequest::NoGeometry is optional for non-geometry-layers
2013-10-07 16:17:42 +02:00
Matthias Kuhn
0c90f32007
QgsFeatureRequest: New filters FilterExpression and FilterFids
2013-09-18 18:57:52 +01:00
Juergen E. Fischer
51297d5990
indentation update (note to self: always run scripts/prepare-commit.sh before committing)
2013-09-17 12:41:43 +02:00
Hugo Mercier
5bdb7952f6
Remove st_force2d from postgres provider
2013-09-15 17:00:36 +02:00
Hugo Mercier
9c8bc7de5b
Add support for 3D types in the PostGIS provider
2013-09-15 16:58:41 +02:00
Juergen E. Fischer
93cdd0ca40
indentation update
2013-09-08 20:26:43 +02:00
Sandro Santilli
38d960ee7a
Use ST_Force2D for PostGIS 2.1+
2013-09-05 17:53:55 +02:00
Denis Rouzaud
70841a84f3
[postgres] do not update feature count if it was not set before
2013-09-03 14:56:00 +02:00
Juergen E. Fischer
b1efd47961
- introduce qgsDoubleToString for format double with maximum precision
...
- usage in mssql provider fixes #7638
- read precision in mssql provider (fixes #5966 )
- commit errors are only shown once
2013-07-17 22:51:20 +02:00
Juergen E. Fischer
6f82a8983a
postgres provider: reload fields if a cursor query fails ( fixes #8242 )
2013-07-10 15:58:04 +02:00
Juergen E. Fischer
3747c2bb02
vector providers: allow multiple iterators - testing required
2013-06-21 21:35:49 +02:00
Juergen E. Fischer
f990886b61
fix #4470 and #7889
2013-05-25 01:18:24 +02:00
Matthias Kuhn
1de8c76450
[FIX] Show attribute table for layers without geometry
...
And add a message to the message log when an iterator is closed due to missing geometry
2013-04-02 18:25:39 +02:00
Juergen E. Fischer
ec07a0c258
issue warning to message log when active iterator is closed when replaced
2013-03-23 19:50:38 +01:00
Juergen E. Fischer
bb0b978119
postgres provider: only record active iterator, when it's open (fixes crash on labeling non-existing attributes)
2013-02-07 15:33:46 +01:00
Juergen E. Fischer
4cbec1811c
fix warnings, add copyright headers, cosmetics
2013-01-28 01:39:58 +01:00
Martin Dobias
5f304b34a1
Merge remote-tracking branch 'origin/master' into new_vector_api
...
Conflicts:
python/core/qgsvectordataprovider.sip
src/app/legend/qgslegendlayer.cpp
src/app/qgisapp.cpp
src/app/qgsmergeattributesdialog.cpp
src/core/qgsvectordataprovider.cpp
src/core/qgsvectordataprovider.h
src/core/qgsvectorlayer.cpp
src/gui/qgssearchquerybuilder.cpp
src/providers/postgres/qgspostgresprovider.cpp
src/providers/wfs/CMakeLists.txt
2013-01-23 23:46:56 +01:00
Martin Dobias
a6c5fd875b
Update of providers' feature iterators
...
Currently providers do not support concurrent access of more iterators at once, so keep pointer to the currently active iterator and auto-close previous iterator when a new one is requested.
Auto-close iterators when all features have been set.
Auto-close iterators when the provider is deleted.
2013-01-16 23:50:27 +01:00
Juergen E. Fischer
190c0511bc
fix most cppcheck warnings and implement suggestions
...
also update and sync some sip interfaces
2014-01-05 16:11:36 +01:00
Juergen E. Fischer
a47babaf4e
postgres provider changes:
...
- ignore infinite filter rectangles
- also disconnect selection connection if no supported layers were found
2014-01-02 04:01:01 +01:00
Martin Dobias
353e7ab8cd
Postgres feature iterator fixes (rewind, FID filter, closing)
2013-01-06 21:53:58 +01:00
Martin Dobias
9317ffd89a
Merge remote-tracking branch 'origin/master' into new_vector_api
...
Also disabled mapserver until compilation is fixed.
Fixed tests.
Conflicts:
src/app/legend/qgslegendlayer.cpp
src/app/qgsattributedialog.cpp
src/app/qgsattributedialog.h
src/app/qgslabelpropertydialog.cpp
src/app/qgsmaptoollabel.cpp
src/app/qgsvectorlayerproperties.cpp
src/core/CMakeLists.txt
src/core/composer/qgsatlascomposition.cpp
src/core/qgsexpression.cpp
src/core/qgspallabeling.cpp
src/core/qgsvectorlayer.cpp
src/core/qgsvectorlayer.h
src/core/qgsvectorlayerimport.cpp
src/mapserver/qgsprojectparser.cpp
src/mapserver/qgswfsserver.cpp
src/mapserver/qgswfsserver.h
src/mapserver/qgswmsserver.cpp
src/providers/postgres/qgspostgresprovider.cpp
src/providers/spatialite/qgsspatialiteprovider.h
tests/src/core/testqgsexpression.cpp
tests/src/python/test_qgsmemoryprovider.py
2012-12-18 01:35:06 +01:00
Martin Dobias
51122d263a
Store attributes and fields in vectors instead of maps
2012-10-20 22:19:55 +02:00
Martin Dobias
8bf959093f
QgsFeature: use a vector of attributes instead of a map (for faster access)
2012-10-19 00:31:03 +02:00
Martin Dobias
e110855e6c
[API] added QgsFeatureIterator, changed QgsVectorProvider API
...
Vector data provider now has getFeatures() method to access features.
select(), nextFeature(), featureAtId(), rewind() were removed resp. moved to provider's feature iterator implementations.
Providers that currently do not implement the new API were disabled.
2012-10-08 17:47:51 +02:00