77 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
timlinux
e4450c90ab fixed gdal lib reference
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1860 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-08-14 01:10:09 +00:00
mhugent
3c073cdace close attribute table when adding features such that it is always up to date
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1850 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-08-07 08:58:00 +00:00
mhugent
d01d15f9b0 some more wkb for the shapefileprovider. Only point and line are tested yes
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1829 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-28 19:38:19 +00:00
mhugent
436f599826 started to make a dialog class for unique renderer, added a bit of wkb code in the shapefileprovider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1828 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-28 19:12:20 +00:00
mhugent
0fb4a79270 added support for polygons in QgsShapeFileProvider::addFeature. Not tested yet
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1791 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-20 17:48:34 +00:00
mhugent
24ffbefbba outcommented call to OGRLayer->DeleteFeature
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1777 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-17 10:55:02 +00:00
mhugent
925f56dafc some cleanups
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1776 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-17 09:19:36 +00:00
mhugent
6367e1de67 added code related to feature deletion
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1774 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-17 07:18:38 +00:00
mhugent
fe280e3f37 added digitising for lines. As this is highly experimental, backup your data before you use this tool. The icon for the button is not very nice. Feel free to change the icon if you have a nicer one
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1772 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-16 18:38:16 +00:00
gsherman
2b17ddeba2 Qmake project files for win32 build
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1768 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-15 01:10:40 +00:00
gsherman
aafbb5137b QgsShapefileProvider must return a value from addFeature
QgisApp changed to support restoring of plugins from Windows.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1761 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-14 19:13:27 +00:00
gsherman
54040e759f Added check to see if open in update mode failed. If so, try to open it
in read-only mode. Need to set a flag or something to indicate read-only
so editing operations don't fail (once they are implemented)


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1752 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-13 04:34:30 +00:00
mhugent
c7fe065390 delete the qgis features after drawing to avoid a memory leak. If someone has problems with drawing vector layers after this commit (which i don't hope!), just change 'delete fet;' in qgsvectorlayer.cpp l. 593 back to 'delete[]feature;'
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1749 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-12 16:48:12 +00:00
mhugent
0f8308d2d2 implemented writing of points to make some tests with feature writing. Use the capture-point tool to write on point vector layers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1742 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-07-11 06:01:10 +00:00
mhugent
cc91766fbf hopefully fixed the remaining problems of yesterdays commits/rollback. If there are still some bugs (or new ones) just write a mail to marco.hugentobler@autoform.ch
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1650 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-21 16:58:28 +00:00
mhugent
3f6ef8ebe5 fixed more memory leaks. Enabled delete statement in qgsvectorlayer.cpp, l. 595
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1638 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-20 16:04:28 +00:00