103 Commits

Author SHA1 Message Date
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
0bd9015ad0 fix for #849
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8254 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-03-19 23:30:21 +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
jef
b8c2a743ac add QgsRubberBand::getPoint to python interface (following up r8209)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8216 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-03-13 13:11:53 +00:00
wonder
9da6874399 Wrapped QgsEncodingFileDialog
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8204 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-03-11 21:51:18 +00:00
wonder
ffb7ce9b47 - 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/qgis@8192 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-03-06 21:04:44 +00:00
wonder
2ef17f0af9 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/qgis@8191 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-03-06 20:41:25 +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
timlinux
60f8e46b12 Added ability to set paper size to python api
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8110 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-02-06 03:15:12 +00:00
wonder
9b8de1b27f - 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/qgis@8055 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-27 04:11:27 +00:00
gsherman
c3ec021de2 Added copyright and license info for plugin_installer files
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8044 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-25 16:30:35 +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
699f7d4cc8 more fixes to bindings
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8037 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-24 14:34:05 +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
gsherman
c9cef72bf9 Fixes to the mapserver exporter
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7999 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-17 23:30:04 +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
gsherman
e7a9b91f3b Fix for hardcoded path
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7995 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-17 18:58:30 +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
timlinux
e1056e75cb Added missing sip file for quickprint
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7988 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-17 01:01:02 +00:00
timlinux
4c20f9cc4c Python bindings for quickprint and change print method to printMap
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7987 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-17 01:00:18 +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
7404bbb1bd 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/qgis@7971 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-15 06:25:40 +00:00
gsherman
40ea025af8 Minor cleanup to the output when unzipping a pyqgis plugin
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7970 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-15 06:19:14 +00:00
gsherman
fb46533719 Potential fix for directory unzip problems
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7969 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-15 05:58:56 +00:00
jef
89e888539e 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/qgis@7945 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-12 21:36:56 +00:00
gsherman
6f7892b777 fixed empty CMakeLists.txt for the mapserver_export plugin
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7929 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-11 07:12:44 +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
gsherman
5c135f6edf Missing CMakeLists.txt file for the new MapServer export plugin
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7923 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-11 00:34:39 +00:00
wonder
b330657fd2 Improvements to plugin installer:
- ability to support custom repositories
- better error handling


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7909 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-10 14:45:28 +00:00
gsherman
9564d38f7a 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/qgis@7898 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-10 04:49: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
efe44667c5 removed QgisPlugin from the bindings (not used anyway)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7895 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-09 22:40:21 +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
b8b154c249 updated python bindings for rubber band
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7888 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-09 17:32:29 +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
9af6e0d27e 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/qgis@7868 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-08 14:20:21 +00:00
gsherman
a27dde7887 Fix for ticket #890 "python plugin installer unzip fails"
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7859 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-08 00:36:08 +00:00
mhugent
5f2d993ade Patch that provides incremental screen update
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7846 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-05 15:54:03 +00:00
gsherman
f84367ea14 Applied patch from ticket #887
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7825 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-12-31 03:14:58 +00:00
wonder
18f724ee86 PyQGIS: support for Mac universal builds - fixes #876
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7807 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-12-19 18:21:35 +00:00