9 Commits

Author SHA1 Message Date
jef
4ba03ee7ef fix common typo: retreive
(identifing copied code...)


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8791 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-16 09:21:41 +00:00
wonder
3954774014 Applied Stefanie's patch to return features (with new IDs) after being added.
Thanks!


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8584 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-03 15:25:22 +00:00
jef
c1669e2af6 - add getUniqueValues method to QgsVectorDataProvider
- implement getUniqueValues in QgsPostgresProvider (fixes #399)
 - implement getUniqueValues, minValue and maxValue in OgsOgrProvider
 - use getUniqueValues in QgsUniqueValueDialog
- update QgsPostgresProvider::storageType interface (fixes #995)
  (applied patch from Steven Mizuno, thanks again)


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8233 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-03-16 16:52:11 +00:00
wonder
5e2eb4a7d9 Some small updates to bindings
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7897 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-09 23:20:31 +00:00
wonder
5b5203c90c Moved all conversions between c++ templates and python objects to one file.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7894 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-09 22:27:28 +00:00
wonder
87bcc0181a Fixed compatibility with (some versions of) Python 2.5.
Also should stay compatible with older python versions.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6941 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-05-10 15:01:58 +00:00
wonder
5f75c232ba Merged provider0_9-branch (r6844:6878) back to trunk.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6879 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-11 11:46:35 +00:00
wonder
ce3eea0dcf QgsFeatureAttribute class has been removed and QVariant is used instead (supports arbitrary data types).
All providers and python bindings have been updated accordingly.
Currently supported variant types by providers are String, Int and Double.

Other API changes:
- QgsField
  - type info as QString is now typeName() and setTypeName()
  - added variant type (QVariant::Type) info: type(), setType()
- QgsFeature
  - removed fields() - use QgsVectorDataProvider::fields()
  - removed boundingBox() - use QgsGeometry::boundingBox()
- QgsVectorLayer - removed fields(), fieldCount(), getDefaultValue() - use directly QgsVectorDataProvider
- QgsVectorDataProvider - getDefaultValue() - field now addressed by id, returns variant
- QgsLabel - setLabelField() - field now addressed by id


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6833 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-03-24 22:40:10 +00:00
wonder
bbd36b107f Merged refactoring branch back to trunk.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6415 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-01-09 02:39:15 +00:00