56 Commits

Author SHA1 Message Date
mhugent
88ce567d6c Fix for bug #1096 Snapping to currently moved vertex should be suppressed
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8477 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-21 05:59:04 +00:00
jef
59d0746707 sync sip with c++ core
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8473 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-19 20:54:18 +00:00
timlinux
dd368da946 Dont artificially limit the raster types available. Note if you have a lot of gdal file types supported the file filter is very long. We need to find a sensible way to manage that.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8462 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-19 13:17:31 +00:00
wonder
49e19e6cb5 changed std::map to QMap in QgsRasterLayer::identify(), updated PyQGIS
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8443 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-15 16:50:00 +00:00
mhugent
47f79b541d Merge of rendercontext branch into trunk
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8440 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-15 08:13:05 +00:00
telwertowski
4b45366ad0 Remove all use of Qt3 compatibiliy routines except for the GRASS provider/plugin. Automatic casts of QString to char* have also been removed for compatibility with Qt/Mac-Cocoa (64-bit).
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8406 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-07 05:15:58 +00:00
ersts
8925d80d04 -Fixed problem restoring min max values from project file
-Closes ticket #945
-Added ability choose in the GUI to load estimated or actual min max values from the band
-Cleaned and reorganized raster properties gui a little
-Added a set default constrast enhancement option in gui that is persistent between sessions
-Closes ticket #1055 and #778

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8398 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-06 03:21:12 +00:00
jef
a0001eea4c - speed up QgsSpatialRefSys after migration to OGR C-API:
- create and destroy OGRSpatialReferenceH in constructor/destructor
  - move the PROJ.4 strings to OGR instead of a member variable and keep
    track its validity in mIsValidFlag.
  This reduces the need to allocate/deallocate of OGR structures and PROJ.4
  parsing and thereby speeds it up quite a bit.  Especially when on-the-fly
  projection is in use.
- collect common code of createFromSrid, createFromEpsg and createFromSrsId
  in the new loadFromDb method

NOTE: invalid PROJ.4 strings are now lost, I hope that doesn't break
      anything.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8263 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-03-24 18:31:08 +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
5eb24c4433 Fix for const iterator
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8153 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-02-13 10:45:49 +00:00
wonder
75ab40a3b8 Added forgotten setAttributeMap() wrapper
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8152 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-02-13 10:08:07 +00:00
wonder
0a25f371c7 - added QMultiMap conversion for SIP from Stefanie Tellex
- fixed featuresInRectangle and snapWithContext bindings
- added Stefanie to contributors
- keep list of contributors sorted


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8151 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-02-13 09:48:05 +00:00
timlinux
b28cfe43c1 Make maprender able to tell us the map size and dpi (there were previously no accessors for this)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8135 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-02-11 10:39:40 +00:00
mhugent
16a5432aee Added fromMultiPoint method to QgsGeometry
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8041 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-25 07:03:59 +00:00
wonder
dfc052d960 added forgotten parameter
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8036 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-24 14:18:02 +00:00
ersts
bac4fc88a3 -updated enums and respective functions to have undefined be initial value
-replaced some QT3 calls with QT4 calls in raster layer properties
-updated python bindings 

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8026 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-22 01:22:18 +00:00
timlinux
75f6094af7 Expose maprender height and width via the public api
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8012 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 13:06:41 +00:00
wonder
ef5afffe54 - added methods which were forgotten: fromMultiPolyline(), fromMulyPolygon()
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7996 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-17 18:59:29 +00:00
wonder
c5bb76ea11 - renamed QgsGeometry::difference to QgsGeometry::makeDifference
- more geoprocessing in QgsGeometry: convexHull, intersection, Union, difference, symDifference


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7994 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-17 18:20:52 +00:00
wonder
857ae41dee Added QgsGeometry::buffer() function that returns buffer around the geometry.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7986 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-16 22:39:57 +00:00
wonder
f5afee3c6b - changed return type of QgsMapLayerRegistry::mapLayers() from std::map to QMap
- wrapped the above function in PyQGIS


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7984 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-16 20:07:55 +00:00
gsherman
8806d8ded3 Fix for wacked sip files
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7928 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-11 06:59:16 +00:00
gsherman
b675c2ed88 new files from raster transparency branch
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7927 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-11 06:42:56 +00:00
gsherman
dcabe173a8 Merge of raster transparency branch
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7926 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-11 06:38:10 +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
d6c1a74053 Fixes compilation of bindings, added wrapper for QgsSnapper.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7893 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-09 21:54:36 +00:00
mhugent
b7e083458e Merge of advanced editing branch is now done
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7886 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-09 16:54:55 +00:00
mhugent
44e41707ee first part of advanced editing branch merge
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7880 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-09 14:40:21 +00:00
wonder
08c26d8d24 Fixes in PyQGIS related to transfer of ownership in renderers.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7675 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-11-27 23:05:24 +00:00
jef
3e0b7e4369 Improve parsing in QgsDataSourceURI (adapted from PQconnectdb) and gather
connection info parsing and creation there.   Fixes #817.

Please test!



git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7672 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-11-27 21:35:10 +00:00
wonder
c03502e3c0 setDataProvider() mustn't be public as it's not intended for use outside of QgsVectorLayer.
This fixes ticket #775.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7263 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-10-11 23:42:47 +00:00
wonder
d2e1e228d2 Removed unused and misleading function QgsMapLayer::calculateExtent()
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7127 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-08-06 14:03:02 +00:00
mhugent
35ee2cecd1 This commit changes the interface of qgsvectorlayer back to the state before r7063 and keeps the fix to allow deletion of postgis columns
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7065 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-07-07 06:58:10 +00:00
mhugent
8a408fd9ae Adapted qgsvectorlayer.sip
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7064 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-07-07 06:12:46 +00:00
wonder
eb4cee1267 Fixed QgsGeometry::fromPolygon:
- fixed creation of outer ring, added creation of holes
- fixed Python binding for QgsPolygon type


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6974 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-06-02 01:24:38 +00:00
wonder
656d5e2e72 Fixed a bug with incorrectly wrapped QgsRenderer
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6969 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-05-31 00:19:27 +00:00
mhugent
52c37ff303 Added the possibility for renderers to have different transparency levels for different classes
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6967 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-05-30 10:02:12 +00:00
mhugent
8b8e47e42f Entry for addIsland in sip file
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6964 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-05-26 07:53:10 +00:00
mhugent
cf204a6d9d Entry for QgsVectorLayer::AddRing in the .sip file
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6957 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-05-22 15:17:31 +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
45749357cc Added saving layer's selection as a shapefile. Can be invoked from legend.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6940 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-05-10 11:26:25 +00:00
wonder
5789eecd83 - more sane function prototypes for searching for closest vertex/segment
- fixed some problems in python bindings


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6896 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-18 21:08:55 +00:00
wonder
19343b9016 Added setConnection() and setDataSource() utility functions to QgsDataSourceURI
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6891 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-17 11:12:15 +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
d4bac97452 Renamed QgsMarkerCatalogue::pixmapMarker() to imageMarker() as now it returns QImage.
Added Python wrappers for QgsSymbologyUtils and QgsMarkerCatalogue.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6866 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-02 18:24:51 +00:00
wonder
478f0a43ed Added python bindings for QgsSymbol and all renderer classes.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6864 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-02 17:41:47 +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
32eb419bc6 Fix for #641 - this was due non-existing function in QgsColorTable
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6780 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-03-09 09:31:12 +00:00
wonder
80e3d032ef Python bindings:
- recreate on changed .sip file
- wrapped QgsColorTable


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6776 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-03-08 11:51:16 +00:00