230 Commits

Author SHA1 Message Date
mhugent
7d57ea9c2e Added QgsVectorDataProvider::capabilities(). The current queries in the dialogs will be subsequently replaced
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2763 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-08 22:16:14 +00:00
larsl
6ded2ab1d3 Enabled deletion of GPX tracks and routes too, it seems to work now
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2756 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-06 21:57:02 +00:00
larsl
9e80d518e8 Added waypoint deletion in the GPX provider, route and track deletion is buggy and will be disabled until they are fixed
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2751 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-02-06 19:18:31 +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
mhugent
625a5973fe some cleanups in QgsVectorLayer and in QgsPostgresProvider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2732 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-30 20:49:53 +00:00
g_j_m
9d96eea6d0 Add the ability to display postgis tables and views that lack the
requisite row in the geometry_columns table (views still need an
oid column though)


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2731 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-30 09:28:17 +00:00
mhugent
f37a383a0f quotes for text values in the postgres provider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2727 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-29 17:00:02 +00:00
mhugent
d3d18169b8 adding attributes for postgis layers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2724 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-29 14:54:15 +00:00
mhugent
de1cc61f8e added BEGIN and COMMITS for update and alter table, added select() after
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2713 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-25 21:06:54 +00:00
mhugent
6ad8b81813 implemented attribute editing. Still problems with changes not written to the database if the table is not closed and reopened
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2712 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-25 20:35:45 +00:00
mhugent
46b2803ce3 implementation of a gui to delete attributes in postgres table (changing of attributes and adding attributes will follow)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2695 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-23 09:49:30 +00:00
rabla
c2a2e8ca9b patch by jzbikowski for compilation without postgres
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2647 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-17 08:29:32 +00:00
mhugent
401a2503c4 fix for snapping tolerance bug and some changes in the attribute editing methods in the vector provider interface
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2645 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-16 20:50:32 +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
mhugent
4e12f59f54 added methods for attribute editing in the vector data provider interface. First implementation in the postgresprovider, but not yet tested
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2633 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-15 22:32:42 +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
g_j_m
6e3bdd8df9 postgresql layers were not closing their connection to the database when
the layer was removed.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2588 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-01-07 06:21:23 +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
larsl
367fc71af8 ** Implemented getProjectionWKT() in QgsGPXProvider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2546 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-30 21:18:01 +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
larsl
734b60e5d3 Removed unnecessary casts (thanks to Oleg Gusev)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2389 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-01 15:45:39 +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
10c624e6d6 Changed #include <qapp.h> to #include <qapplication.h> to solve compile
problem on debian.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2371 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-29 06:48:24 +00:00
mhugent
a3eac754d2 fixed selection in the delimited text provider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2364 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-28 21:17:04 +00:00
larsl
fbeb0636fd ** Fixed feature addition in GPX layers, it now works again
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2352 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-27 13:46:30 +00:00
gsherman
e09ca8857f Changed supportsSaveAsShapefile to false since this won't be implemented until after version 0.6
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2344 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-26 22:02:52 +00:00
gsherman
adccc1ca7d Added geos flags
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2343 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-26 22:01:26 +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
gsherman
58c2d45251 Fix for delimited text files having a delimiter at end of each line
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2337 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-26 18:19:26 +00:00
gsherman
c77391fe48 first implementation of save delimited text file as shapefile once its loaded into qgis. Some things are still rough -- I'll clean it up some more in the next day or so...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2332 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-25 06:00:39 +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
a71405eafc Added hook for a provider to indicate it supports saving its data to a shapefile. If supported, an item is added to the popup context menu. The save function is not implmented yet.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2319 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-23 06:14:05 +00:00
gsherman
b6d97976c4 Added methods to get the postgres connection and table name from the pg provider.
Added launcher for the pg query builder to the vector dlg.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2304 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-21 05:15:40 +00:00
timlinux
4a25956c36 Added accessor and mutator for sql subseting query
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2300 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-21 02:09:49 +00:00
larsl
61d3030998 ** Reimplemented getNextFeature() so features are visible again
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2264 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-16 18:18:36 +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
9504d805ae Fixes to get plugins to compile under WIN32
Changes to qgislib.pro to include recently added classes


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2242 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-13 04:44:13 +00:00
gsherman
7beb6a76ff Changes to allow build under Win32
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2230 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-11 06:02:26 +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