Matthias Kuhn
4c63c85cca
Show provider errors more prominently
2016-02-20 17:21:57 +01:00
Juergen E. Fischer
ad1fd2a922
[API] Introduce optional QgsVectorDataProvider::ChangeFeatures
...
capability and changeFeaturss method to allows joint geometry and
attribute updates.
Currently only implemented in the postgres provider
2016-01-15 10:12:07 +01:00
Hugo Mercier
020dac0702
Allow to declare layer dependencies on a vector layer
2016-01-07 12:02:30 +01:00
Nyall Dawson
c49b5b777f
Change a lot of arguments to const references in core/gui
...
Rationale:
- there was a lot of large objects passed by value, so potentially
there's a speed bump from this
- even for implicitly shared classes like QString/QList there's still
a (small) cost for copying the objects when there's no reason to
- it's the right thing to do!
2015-10-07 12:02:04 +11:00
Matthias Kuhn
aeeca48ac9
Provide a public API for invalidating connections.
...
QgsVectorDataProvider::forceReload() is the virtual method. It is implemented
in the OGR provider.
See here for reference:
http://gis.stackexchange.com/questions/159950/make-a-qgis-layer-update-from-a-changed-data-source
2015-08-29 20:50:58 +02:00
Juergen E. Fischer
9752c468c1
indentation update
2015-07-29 11:52:14 +02:00
Nyall Dawson
b05e789c57
Fix build
2015-02-03 20:47:29 +11:00
Juergen E. Fischer
abd4a04399
sip update
2015-02-03 02:21:52 +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
9ceb5ceab6
sip sync
2014-11-21 01:17:21 +01:00
Juergen E. Fischer
c4c131ef75
sip sync
2014-05-27 23:32:42 +02:00
Martin Dobias
5a4f8d07a0
Change "added/deprecated in 2.1" notes to 2.4 for stuff related to threading
2014-02-21 17:33:09 +07: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
d4e369414b
update sip bindings
2014-01-26 18:36:29 +01:00
Martin Dobias
2bece090f5
Update Python bindings to match changes in core/gui libraries.
2013-12-05 18:27:45 +07:00
Juergen E. Fischer
ea1aaeae01
cleanup style to db:
...
- add sip bindings to new methods
- table name, sql queries and constants should not be translated
- replace QVector<QString> with QStringList
2013-05-03 00:25:39 +02:00
Borys Jurgiel
2073f87a22
Disable encoding combobox in layer properties dialog for OGR provider with OLCStringsAsUTF8==true (so when it doesn't work anyway). Patch from Minoru Akagi.
2013-04-22 22:13:12 +02:00
Martin Dobias
94639ee61e
[API] remove QgsVectorDataProvider::enableGeometrylessFeatures(bool)
...
Geometryless features are not skipped by default anymore.
2013-04-11 23:38:10 +02:00
Larry Shaffer
fbf999190c
Update QgsPalLabeling to work with new vector api
...
- Switch data defined properties from field index- to name-based
- Add routine to migrate properties to new keys: labeling/dataDefined/[enum name]
- Add QHash containing old-style data provider mapping of index to name for use in properties migration
- Update QgsLabelingGui, QgsMapToolLabel, QgsLabelPropertyDialog to work with name-based properties
2013-02-07 14:49:56 -07:00
Juergen E. Fischer
4cbec1811c
fix warnings, add copyright headers, cosmetics
2013-01-28 01:39:58 +01:00
Martin Dobias
8da06cb97d
QgsVectorLayer: deprecate old API: select(), nextFeature(), featureAtId()
2013-01-26 19:42:46 +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
Alexander Bruy
5e45a22d06
remove deprecated methods from API
2012-12-23 10:40:23 +02:00
Martin Dobias
81b0930498
QgsVectorLayer: large internal refactoring
...
Most important changes:
- introduced feature iterator for QgsVectorLayer
- vector editing moved to QgsVectorEditBuffer
- complete rework of undo/redo commands for vector layers
- geometry cache separated from editing (QgsVectorLayerCache)
- non-essential editing functionality moved to QgsVectorLayerEditUtils
2012-12-17 21:22:42 +01:00
Martin Dobias
51122d263a
Store attributes and fields in vectors instead of maps
2012-10-20 22:19:55 +02:00
Martin Dobias
f217a7fb19
Fixes after rebase
2012-10-09 20:57:35 +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
Juergen E. Fischer
4c97806d26
fix doxygen warnings
2012-09-25 21:29:32 +02:00
Juergen E. Fischer
f3cb57b1eb
SIP bindings update:
...
- update methods of existing classes
- add comment to methods missing in the sip bindings
- split up collective sip files into single files and use
same directory structure in python/ as in src/
- add a lot of missing classes (some might not make sense because of
missing python methods in those classes)
- remove some non-existing methods from the header files
- add scripts/sipdiff
- replace some usages of std::vector and std::set with QVector/QSet
2012-09-24 02:42:57 +02:00
Juergen E. Fischer
d8bdcb20ca
add python binding to QgsVectorDataProvider::fieldNameMap()
2012-01-16 08:57:07 +01:00
Juergen E. Fischer
893f305c51
update for sip 4.13
2011-12-24 05:09:25 +01:00
Juergen E. Fischer
5a3a87fde2
[FEATURE] support 64bit feature ids
2011-06-16 20:30:07 +02:00
jef
ce8e3d5f05
add 'deprecated' annotation to SIP bindings
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@15209 c8812cc2-4d05-0410-92ff-de0c093fc19c
2011-02-19 13:24:24 +00:00
jef
132088f6d2
fix API QgsMapLayer::getLayerID() to id()), some warnings and use doxygen deprecation tag.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@15168 c8812cc2-4d05-0410-92ff-de0c093fc19c
2011-02-13 20:24:55 +00:00
jef
b78d8556a4
allow vector data provider to record errors (currently only used in query
...
builder to report errors in where clauses from OGR and postgres provider).
git-svn-id: http://svn.osgeo.org/qgis/trunk@14935 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-12-17 15:00:17 +00:00
jef
ae3d122853
[FEATURE] allow saving vector layers as ogr vector files
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@13169 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-03-27 00:38:59 +00:00
wonder
2034de2bc9
PyQGIS: few additions for more pythonic api
...
- QgsVectorLayer and QgsVectorDataProvider support iterating
- QgsFeature allows direct access to attributes (get/set/del)
git-svn-id: http://svn.osgeo.org/qgis/trunk@12878 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-02-04 21:08:33 +00:00
mhugent
3e5d66d092
Fix for bug 2188. Provider has the possibility to announce that it handles geometry type handling not very strict, e.g. inserting multipolygon in polygon layers
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@12340 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-06 10:46:28 +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
jef
be7c156a3f
sync QgsVectorDataProvider sip interface
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@10983 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-06-26 17:37:59 +00:00
jef
7331968172
re-add vector attribute method removed in r10863
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@10982 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-06-26 17:04:31 +00:00
jef
4f604a6aaf
fix a warning and add a note about QgsVectorDataProvider::addAttributes() change
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@10979 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-06-25 17:03:48 +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
wonder
538827ccc9
Allow editing when _any_ of the editing capabilities is supported by data provider
...
(instead of checking only AddFeatures)
git-svn-id: http://svn.osgeo.org/qgis/trunk@9708 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-25 23:37:13 +00:00
wonder
48724e0561
fixed #1305
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@9683 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-21 22:55:58 +00:00
timlinux
b40ceb2d62
API cleanups for QgsRect that got overlooked...
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@9605 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-09 00:14:12 +00:00
timlinux
67fdbb5efb
Changed begin() to rewind() on provider interface
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@9582 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-08 00:49:59 +00:00
jef
8094f1d4c6
hackfest commit from timlinux:
...
- more API cleanups
- single click (instead of drag) to select a feature (fixes #1154 )
- fixes for topological editing
git-svn-id: http://svn.osgeo.org/qgis/trunk@9471 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-10 20:02:22 +00:00
timlinux
3072d71114
API cleanups: getNextFeature becomes nextFeature, getFeatureAtId becomes featureAtId, getDefaultValue becomes defaultValue, allAttributeList becomes attributeIndexes and reset becomes begin on data provider api.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@9449 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-07 07:36:24 +00:00