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
g_j_m
651c647cc8
More .cvsignore files. Should be all done now.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2612 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-10 22:06:18 +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
gsherman
7661e81582
Fixed selection bug that resulted in selection of more features than those
...
under the selection rectangle. Selection of features from a multipart polygon
layer is still unacceptably slow.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2606 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-09 17:23:05 +00:00
timlinux
7cfd1e47d9
Fix bug where qgis crashed if a shapefile has no spatial ref system defined
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2557 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-01 11:39:48 +00:00
timlinux
9959b84512
Initial commit of projextion integration.....dont get too happy cause its still not working yet...though it behaves nicely and doesnt kill qgis if it cant set up the projection environment properly. I believe the problem may be resolved by linking to libproj during build, because currently I get errors like this:
...
ERROR 6: Failed to initialize PROJ.4 with `+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs '.
The OGR Coordinate transformation for this layer could not be set
INPUT: PROJCS["Alaska_Albers_Equal_Area_Conic",GEOGCS["GCS_North_American_1927",DATUM["North_American_Datum_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Albers_Conic_Equal_Area"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["longitude_of_center",-154.0],PARAMETER["Standard_Parallel_1",55.0],PARAMETER["Standard_Parallel_2",65.0],PARAMETER["latitude_of_center",50.0],UNIT["Meter",1.0]]
OUTPUT: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG",7030]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG",6326]], PRIMEM["Greenwich",0,AUTHORITY["EPSG",8901]], UNIT["DMSH",0.0174532925199433,AUTHORITY["EPSG",9108]], AXIS["Lat",NORTH], AXIS["Long",EAST], AUTHORITY["EPSG",4326]]
Ill try to track down the source of the problem following this commit.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2556 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-01 02:04:50 +00:00
mcoletti
be57f1155e
Fixes for const-correctness not propogated properly to sub-classes.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2553 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-31 00:30:32 +00:00
mcoletti
c3ea8bcfa6
- rolled forward endian() changes in QgsDataProvider class hierarchy
...
- rolled forward const-correctness changes from src directory
- in delimited text provider plug-in consolidated how data is parsed into a
single function from three almost identical, but separate, functions; now
uses QDataStream for building WKBPoint objects
- QgsDelimitedTextProvider::getFirstFeature() now works
S: ----------------------------------------------------------------------
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2549 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 22:20:49 +00:00
mhugent
302ebd3685
added acetate line layers for digitizing in qgsmapcanvas. Like this, the map canvas can be moved and the previousle digitized (but unfinished object) is still visible
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2547 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 21:22:43 +00:00
timlinux
578d455a45
Implemented placeholder getProjectionWKT in each provider....
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2545 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 18:08:57 +00:00
gsherman
9493aca366
Merged changes from the 0.6.0 release branch
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2526 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-20 07:13:35 +00:00
gsherman
d898ce4411
Fixed bug that caused only records selected as part of last identify or
...
select operation to be displayed in the attribute table.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2378 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-30 04:50:54 +00:00
gsherman
fbc30b5d19
Oleg's utf8 patch
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2372 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-29 06:55:31 +00:00
gsherman
bb6b7a00f6
Tweaks related to WIN32 handling of layers loaded from saved projects
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2338 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-26 18:22:42 +00:00
mcoletti
f9820cd980
Debugging output to std::cerr was getting ignored, so changed to use
...
qDebug(). Also now emit __FILE__ and __LINE__ so know exactly what debugging
statements are being executed.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2328 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-24 19:34:43 +00:00
mcoletti
36320b2451
Added debug statement for getFeatureAttribute().
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2327 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-24 17:09:20 +00:00
gsherman
f7847d6263
Fixes for crash when selecting, identifying features, or opening the attribute table
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2259 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-16 04:47:35 +00:00
mhugent
48bca3c901
moved the responsability for not-commited features to qgsvectorlayer. Because of this, it is now possible to treat not-commited features like commited ones. Vectordataproviders now only need to implement 'addFeatures','deleteFeatures', 'supportsFeatureAddition' and 'supportsFeatureDeletion' if they support feature addition or deletion
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2258 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-15 21:52:57 +00:00
gsherman
20b26921aa
GEOS support added for WIN32. See ogr.pro for notes.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2229 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-11 05:36:15 +00:00
mhugent
1130299211
added QgsFeature::intersects(QgsRect*) and a wkb-export method to QgsFeature. The reason why i did this is because it should be possible to test the not-commited features for intersection with a selection rectangle. Note: the wkb-export method (which is necessary for the GEOS intersection) is only tested for point,line,polygon by now
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2218 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-07 18:52:11 +00:00
mhugent
f88041c1a0
moved start editing/ stop editing stuff up to QgsVectorDataProvider
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2177 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-26 20:40:14 +00:00
mhugent
90545b9560
inserted the 'new vector layer' item again (in the layer menu). A dummy feature is not necessary anymore (but a dummy attribute)
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2168 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-22 20:41:05 +00:00
mcoletti
c84e6aae6c
Merged in qgsproject-branch changes.
...
Also made QgsRasterLayer more robust in light of files with poor "no data" and
"min/max" value information.
Note that this hasn't been tested with windows versions.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2156 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-21 17:27:38 +00:00