353 Commits

Author SHA1 Message Date
jef
98444a4bd8 - 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@8263 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-03-24 18:31:08 +00:00
jef
0ee1349765 fix for #849
git-svn-id: http://svn.osgeo.org/qgis/trunk@8254 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-03-19 23:30:21 +00:00
jef
d8460108ff - 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@8233 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-03-16 16:52:11 +00:00
jef
9e7a287e04 add QgsRubberBand::getPoint to python interface (following up r8209)
git-svn-id: http://svn.osgeo.org/qgis/trunk@8216 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-03-13 13:11:53 +00:00
wonder
6961f567d1 Wrapped QgsEncodingFileDialog
git-svn-id: http://svn.osgeo.org/qgis/trunk@8204 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-03-11 21:51:18 +00:00
wonder
403e0956d2 - generate SIP build files in build directory, not in source dir
- show command line used to run SIP binary
- remove ignore flags from python/core and python/gui - not needed anymore


git-svn-id: http://svn.osgeo.org/qgis/trunk@8192 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-03-06 21:04:44 +00:00
wonder
244c451e0f Better creation of list of directories of a zip file. Fixes installation problem with some plugins.
git-svn-id: http://svn.osgeo.org/qgis/trunk@8191 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-03-06 20:41:25 +00:00
wonder
e3b0e64d64 Fix for const iterator
git-svn-id: http://svn.osgeo.org/qgis/trunk@8153 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-02-13 10:45:49 +00:00
wonder
ac6a38a22a Added forgotten setAttributeMap() wrapper
git-svn-id: http://svn.osgeo.org/qgis/trunk@8152 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-02-13 10:08:07 +00:00
wonder
116e4a4f84 - 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@8151 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-02-13 09:48:05 +00:00
timlinux
76ada2e1ef 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@8135 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-02-11 10:39:40 +00:00
timlinux
503d5013a2 Added ability to set paper size to python api
git-svn-id: http://svn.osgeo.org/qgis/trunk@8110 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-02-06 03:15:12 +00:00
wonder
a85df15615 - QgisInterface's functions addRasterLayer/addVectorLayer return pointer to layer instead of just bool
- renamed QgisApp::addLayer to more appropriate QgisApp::addVectorLayer
- cleanups in loading of raster/vector layers in QgisApp


git-svn-id: http://svn.osgeo.org/qgis/trunk@8055 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-27 04:11:27 +00:00
gsherman
044d2ca102 Added copyright and license info for plugin_installer files
git-svn-id: http://svn.osgeo.org/qgis/trunk@8044 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-25 16:30:35 +00:00
mhugent
c39d6a90ce Added fromMultiPoint method to QgsGeometry
git-svn-id: http://svn.osgeo.org/qgis/trunk@8041 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-25 07:03:59 +00:00
wonder
f2dab128a1 more fixes to bindings
git-svn-id: http://svn.osgeo.org/qgis/trunk@8037 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-24 14:34:05 +00:00
wonder
f57987c558 added forgotten parameter
git-svn-id: http://svn.osgeo.org/qgis/trunk@8036 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-24 14:18:02 +00:00
ersts
106fabd89b -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@8026 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-22 01:22:18 +00:00
timlinux
0cef849bc7 Expose maprender height and width via the public api
git-svn-id: http://svn.osgeo.org/qgis/trunk@8012 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-21 13:06:41 +00:00
gsherman
66fab04f5c Fixes to the mapserver exporter
git-svn-id: http://svn.osgeo.org/qgis/trunk@7999 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-17 23:30:04 +00:00
wonder
6a9636f602 - added methods which were forgotten: fromMultiPolyline(), fromMulyPolygon()
git-svn-id: http://svn.osgeo.org/qgis/trunk@7996 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-17 18:59:29 +00:00
gsherman
fd3979ce85 Fix for hardcoded path
git-svn-id: http://svn.osgeo.org/qgis/trunk@7995 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-17 18:58:30 +00:00
wonder
d011ea483f - renamed QgsGeometry::difference to QgsGeometry::makeDifference
- more geoprocessing in QgsGeometry: convexHull, intersection, Union, difference, symDifference


git-svn-id: http://svn.osgeo.org/qgis/trunk@7994 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-17 18:20:52 +00:00
timlinux
16b10693e6 Added missing sip file for quickprint
git-svn-id: http://svn.osgeo.org/qgis/trunk@7988 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-17 01:01:02 +00:00
timlinux
c0cc6ebce9 Python bindings for quickprint and change print method to printMap
git-svn-id: http://svn.osgeo.org/qgis/trunk@7987 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-17 01:00:18 +00:00
wonder
be72a7a663 Added QgsGeometry::buffer() function that returns buffer around the geometry.
git-svn-id: http://svn.osgeo.org/qgis/trunk@7986 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-16 22:39:57 +00:00
wonder
3b8ce29485 - 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@7984 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-16 20:07:55 +00:00
gsherman
aa9c5ef1f9 Removal of dead code and explanation of the method for determining which directories are contained in the zip file of the plugin
git-svn-id: http://svn.osgeo.org/qgis/trunk@7971 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-15 06:25:40 +00:00
gsherman
403a34bea3 Minor cleanup to the output when unzipping a pyqgis plugin
git-svn-id: http://svn.osgeo.org/qgis/trunk@7970 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-15 06:19:14 +00:00
gsherman
b72a0dd912 Potential fix for directory unzip problems
git-svn-id: http://svn.osgeo.org/qgis/trunk@7969 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-15 05:58:56 +00:00
jef
68ddcc8ac2 re-disable msexport and remove it from the debian package as it's going to be turned into a plugin
git-svn-id: http://svn.osgeo.org/qgis/trunk@7945 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-12 21:36:56 +00:00
gsherman
8dced2c3c1 fixed empty CMakeLists.txt for the mapserver_export plugin
git-svn-id: http://svn.osgeo.org/qgis/trunk@7929 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-11 07:12:44 +00:00
gsherman
14cbce3c86 Fix for wacked sip files
git-svn-id: http://svn.osgeo.org/qgis/trunk@7928 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-11 06:59:16 +00:00
gsherman
89b8386933 new files from raster transparency branch
git-svn-id: http://svn.osgeo.org/qgis/trunk@7927 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-11 06:42:56 +00:00
gsherman
c73ffbe699 Merge of raster transparency branch
git-svn-id: http://svn.osgeo.org/qgis/trunk@7926 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-11 06:38:10 +00:00
gsherman
15bd5a96a7 Missing CMakeLists.txt file for the new MapServer export plugin
git-svn-id: http://svn.osgeo.org/qgis/trunk@7923 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-11 00:34:39 +00:00
wonder
484a9322fe Improvements to plugin installer:
- ability to support custom repositories
- better error handling


git-svn-id: http://svn.osgeo.org/qgis/trunk@7909 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-10 14:45:28 +00:00
gsherman
e0c5a45d9f New MapServer export plugin implemented in Python. This is a
core plugin and installed with QGIS. The old exporter (C++/SWIG/Python)
has been removed from the build and the code will be removed following
complete testing of the new plugin.


git-svn-id: http://svn.osgeo.org/qgis/trunk@7898 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-10 04:49:11 +00:00
wonder
fd05e0c631 Some small updates to bindings
git-svn-id: http://svn.osgeo.org/qgis/trunk@7897 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-09 23:20:31 +00:00
wonder
57b59ae9c7 removed QgisPlugin from the bindings (not used anyway)
git-svn-id: http://svn.osgeo.org/qgis/trunk@7895 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-09 22:40:21 +00:00
wonder
5e7c63fe84 Moved all conversions between c++ templates and python objects to one file.
git-svn-id: http://svn.osgeo.org/qgis/trunk@7894 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-09 22:27:28 +00:00
wonder
3264ac5289 Fixes compilation of bindings, added wrapper for QgsSnapper.
git-svn-id: http://svn.osgeo.org/qgis/trunk@7893 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-09 21:54:36 +00:00
mhugent
c34739270b updated python bindings for rubber band
git-svn-id: http://svn.osgeo.org/qgis/trunk@7888 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-09 17:32:29 +00:00
mhugent
61ecb55810 Merge of advanced editing branch is now done
git-svn-id: http://svn.osgeo.org/qgis/trunk@7886 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-09 16:54:55 +00:00
mhugent
9eba4b0c31 first part of advanced editing branch merge
git-svn-id: http://svn.osgeo.org/qgis/trunk@7880 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-09 14:40:21 +00:00
wonder
2620838f6b Create directory for python plugins if it doesn't exist
(otherwise the plugin extraction will fail)


git-svn-id: http://svn.osgeo.org/qgis/trunk@7868 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-08 14:20:21 +00:00
gsherman
0a2a4b1a19 Fix for ticket #890 "python plugin installer unzip fails"
git-svn-id: http://svn.osgeo.org/qgis/trunk@7859 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-08 00:36:08 +00:00
mhugent
28c5599c7e Patch that provides incremental screen update
git-svn-id: http://svn.osgeo.org/qgis/trunk@7846 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-05 15:54:03 +00:00
gsherman
7e2d6a8caa Applied patch from ticket #887
git-svn-id: http://svn.osgeo.org/qgis/trunk@7825 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-12-31 03:14:58 +00:00
wonder
5054cac6ab PyQGIS: support for Mac universal builds - fixes #876
git-svn-id: http://svn.osgeo.org/qgis/trunk@7807 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-12-19 18:21:35 +00:00