32 Commits

Author SHA1 Message Date
mcoletti
f9c1ca697d Rolled forward {get,set}DataSourceUri() member function changes from
QgsDataProvider base class.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3971 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-09-23 21:25:03 +00:00
mcoletti
9551c8ff3d - rolled forward named() and description() member changes
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3967 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-09-23 14:08:35 +00:00
mhugent
ece5eb22b6 also applied postgis provider changes to head. Removed a bug in ogrprovider which sometimes caused crashes when selecting
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3907 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-09-14 15:21:04 +00:00
morb_au
09185f2d22 More changes for Qt4 porting readiness.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3903 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-09-12 21:46:57 +00:00
timlinux
d7f22f458e Applied patch from Martin Dobias to provide feature searches in attribute table.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3899 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-09-10 10:34:05 +00:00
mcoletti
245c8ea475 Added ::subLayerCount(), which is rolled down from QgsDataProvider.
Note that data provider authors will have to properly flesh out these
functions since I do not know how each provider calculates the number of
layer; except for the OGR provider which correctly returns the actual number
of layers.  All other providers have hard-coded to always return "1".
Obviously that will have to be changed.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3832 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-08-12 21:58:36 +00:00
timlinux
8bffac7d63 Merge from cvs 0.7 release branch
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3756 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-07-17 00:23:35 +00:00
morb_au
8d02164d8b Make the OGR capabilties() routine a bit more friendly to downlevel OGR source code when compiling (see new comments in this diff for details).
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3697 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-07-03 21:15:44 +00:00
morb_au
251716ab04 Merged changes in the 0.7 release candidate branch (as at "Release-0_7-candidate-pre1") back into the trunk.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3691 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-07-03 00:18:14 +00:00
morb_au
e1d8587e54 The vector metadata property page now reports the storage type (e.g. Shapefile, MapInfo file, PostgreSQL database with PostGIS extension, etc.) and editing capabilities (Add Attributes, Change Geometries, etc).
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3681 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-07-01 22:23:20 +00:00
morb_au
54e4ef09d1 Better OGR-provider pointer hygiene, as suggested by valgrind.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3646 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-06-19 20:55:25 +00:00
morb_au
eba355b1fa Fix for non-PostGIS/PostgreSQL layers that were broken by my recent commits to HEAD (in particular relating to cache-enabling the PostgreSQL provider). Hopefully addresses bug 1214771.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3547 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-06-06 08:35:30 +00:00
morb_au
5b36d8fdb3 Rearranges QgsFeature so that its owned geometry is abstracted to its own class, QgsGeometry.
As bonus features:
 * QgsFeature::setGeometry is now setGeometryAndOwnership in order to clarify what is responsible for destruction of the WKB buffer.  Code calling setGeometry has been adjusted accordingly.
 * Additional functionality to find the closest segment is added, to support an upcoming commit for Add Vertex.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3474 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-28 01:52:34 +00:00
mhugent
54ec10af5d Some improvements for vector editing. The attribute table is modal now if in editing mode. For editing lines and polygons, a rubber band is drawn to the mouse cursor. Some bug fixes still need to be done
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3419 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-21 07:00:47 +00:00
mhugent
42fc989ec1 added a button to create the spatial index in the vector layer properties (in the general tab). Currently, only the OGR provider supports this (version >=1.2.6)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3357 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-12 05:27:12 +00:00
mhugent
e10e2a94cd added a 'createSpatialIndex' function to QgsVectorDataProvider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3339 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-08 19:46:28 +00:00
timlinux
0c35108367 Moved const declaratins into qgis.h
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3332 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-07 18:10:54 +00:00
mhugent
3c9927a925 added a QgsOgrProvider::createSpatialIndex() method. This method creates a .qix index file for shape files. Note that there is currently no access from the GUI. If you already want to try this feature, just add a call to createSpatialIndex() to the constructor of QgsOgrProvider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3326 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-06 18:35:17 +00:00
timlinux
23e4745529 Projection updates. Still unstable. Work will continue this evening.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3274 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-29 16:58:54 +00:00
mhugent
e1aa7dc735 improved dialog for creating a new vectorlayer
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3117 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-10 12:51:30 +00:00
gsherman
86c976272f ** Merged Projections_Branch into HEAD
Problems:
      Polygon outlines are not drawn. This was checked twice and no cause
      was found.

      Projections do not work in all circumstances

      Note that both the proj4 library and sqlite3 are now required. The
      build system has not been modified to test for these yet.

      Qt 3.3.x is required to build this source tree.

      Make sure to increment the EXTRA_VERSION in configure.in when
      committing changes.

      Make sure to update the Changelog with each commit


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3112 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-10 07:04:07 +00:00
mhugent
9b0c6bd988 changed QgsOgrProvider::getNextFeature(bool) such, that the direct geos creation without WKT import is used. Norway can now be selected on the european map in reasonable time :-)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3079 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-04 20:16:50 +00:00
larsl
1ec9fe95fb Committed Akio Takubos patch that fixes the provider interface so we can load vector files with non-ASCII filenames again
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3039 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-29 20:59:35 +00:00
mcoletti
2134e1f11e select() now consistently uses WKT polygon to compensate for pedantry in latest GEOS
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2944 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-10 20:13:59 +00:00
mhugent
e2c9722bd4 replaced enum QgsVectorDataProvider::Encoding with QTextCodec
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2916 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-03-05 00:22:26 +00:00
mhugent
59631a388e Added a combo box in the dialog to add ogr layers where the user may select an appropriate encoding type (utf8, ascii, latin1). In QgsVectorDataProvider, there is a new member mEncodingType for this. OGRProvider already uses this encoding type and other providers may do it as well if necessary
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2843 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-18 23:12:13 +00:00
mhugent
85ecbb3f37 Fixed for crash when showing the attribute table of a layer with no features and some other minor improvements to editing
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2799 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-13 19:40:01 +00:00
mhugent
ec0b110a2c Replaced QgsVectorDataProvider::support... functions with QgsVectorDataProvider::capabilities()
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2769 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-10 22:13:28 +00:00
rabla
3e33d105e9 changeAttributeValues
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2733 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-02 15:53:25 +00:00
gsherman
b7ca95ba1c Added code to morph the projection WKT when loading a shapefile.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2636 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-16 00:10:20 +00:00
mhugent
5912bb3f14 added some consts
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2634 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-15 22:59:14 +00:00
gsherman
9c5dd20cee Renamed qgsshapefileprovider to qgsogrprovider to better reflect its
function/purpose.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2607 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-09 17:43:07 +00:00