147 Commits

Author SHA1 Message Date
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
g_j_m
ffe7c90db6 Added compilation and linking flags for the GEOS library.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2226 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-09 19:39:39 +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
9a392101ee added deleting of selected features from postgislayers. Unfortunately, only commited features can be selected -> there will be some need to redesign vectorlayer and providers with respect to feature addition and deletion
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2215 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-05 20:21:54 +00:00
mhugent
60029ee4aa small bugfix related to digitizing
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2185 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-30 19:33:26 +00:00
mhugent
75978402ea first version of feature commiting for the postgresprovider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2184 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-30 19:02:16 +00:00
larsl
aea621b426 ** Added getDefaultValue() in QgsVectorLayer and QgsVectorDataProvider,
implemented it in the GPX provider


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2181 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-29 21:55:43 +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
larsl
21543d843b Cleaned upp attribute handling and feature fetching in the GPX provider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2155 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-19 12:26:52 +00:00
larsl
6a1dd36df6 ** Changed GPX attribute names from three letter abbreviations to more
userfriendly whole words


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2153 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-19 11:51:06 +00:00
larsl
910c3a2331 ** Changed mFeatureType in qgsgpxprovider.cpp from a QString to an enum to
avoid unnecessary string comparisons


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2151 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-19 11:17:17 +00:00
gsherman
c2b7276c1e Changes for geos in Makefile.am
Reset ogr spatial filter in qgsshapefileprovider


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2147 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-19 05:03:03 +00:00
larsl
b60e7a87c0 ** Removed duplicate code, added bounds calculation for digitized features in the GPX provider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2145 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-18 18:53:24 +00:00
gsherman
d7c11f14fc Quick hack to add -lgeos flag to link. Need add detection code for geos to
configure for a permanent solution


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2144 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-18 16:15:22 +00:00
larsl
eff586cac9 ** Changes to the GPX provider:
* Implemented isEditable(), isModified(), commitChanges(), and rollBack()
   * Removed the useless lat and lon attributes in waypoint features
   * Cleaned up the attribute parsing in addFeature()
   GPX editing should now work again.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2142 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-18 14:33:22 +00:00
gsherman
b080e37504 Added editable flag (someday we might actually be able to digitize
features :))


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2140 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-18 05:17:19 +00:00
gsherman
99a6dba77b Implemented identify/selection using GEOS to return the proper features
rather than any feature falling within the minumum bounding rectangle
(MBR). QGIS now required GEOS. This works with GEOS 2.x, needs to be
tested at GEOS 1.x


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2139 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-18 05:16:10 +00:00
mhugent
7cf0782112 fix for bug 1044242 symbology bug on where claused PostGIS tables
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2138 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-16 23:26:28 +00:00
mhugent
575a52aae1 added extra parameter to getNextFeature(std::list<int>,bool), give not commited features id -1 to prevent conflicts (selection via table) with commited features
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2137 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-16 22:49:15 +00:00
mhugent
066bc2b7bc added a dialog to enter and change attribute values when digitizing features
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2132 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-16 15:35:13 +00:00
gsherman
25ac8fd420 Applied patch from Gavin that fixes bug 1045894.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2130 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-15 05:05:19 +00:00
mhugent
da8fce8702 Added a Menu item to create new empty shapefiles. Unfortunately, a dummy feature is inserted into each new layer (coordinates 0/0). Without the dummy features, a segfault in OGR would happen when opening the .dbf file. I will do more investigations to figure out if there is a way such that there is no need for dummy features.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2129 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-14 22:54:24 +00:00
gsherman
13e0651cd0 Cosmetic change to comments
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2116 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-09 16:16:16 +00:00
gsherman
59d25e016d Imperfectly fixed problem where attributes aren't displayed if the primary
key is not of type int4 (bug 1042706). Support for a unique id key field needs
to be added to the provider. Support for keys other than int4 will require
changing QgsFeature to a template class and other major architectural changes.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2108 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-08 04:57:48 +00:00
rabla
44021a1108 isEditable conflict
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2057 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-09-29 09:41:06 +00:00
mhugent
6769603abb added qgsvectordataprovider interface and start editing/ stop editing for vector digitising
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2049 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-09-27 21:30:27 +00:00
larsl
fdd4e07ef2 ** Removed support for loading Geocaching.com LOC files
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2029 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-09-23 09:07:50 +00:00
larsl
968d198473 ** Re-fixed bug 987874, the provider will now skip geometry-less features
but keep reading other features


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2021 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-09-20 17:55:21 +00:00
larsl
cc68daf5da ** Fixed bug 987874 which caused QGIS to crash when showing the attribute
table for shapefile layers with features with NULL geometry
   (GetGeometryRef() returns NULL) - the OGR provider now treats features
   with NULL geometry as NULL features, i.e. EOF


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2020 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-09-20 17:20:05 +00:00
gsherman
9f7357a92a Changes to allow build under Win32
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2019 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-09-18 06:29:59 +00:00
spoerri
412e28bd34 Initial factory class and testing to check write access to repository
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1959 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-09-03 21:16:32 +00:00
gsherman
38226383b1 Updated splash screen for 0.5 -- waiting for backlash...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1942 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-08-27 18:59:39 +00:00