timlinux
1d70236cad
Added logic for getting projection from epsg and qgis srsid codes. Fixed sql errors.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3229 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-27 01:17:30 +00:00
mhugent
2207464fa5
replaced menues in the attribute table with buttons
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3228 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-26 18:06:00 +00:00
timlinux
2a84d60cc1
Prevent assert failure when adding pg layer...still doesnt seem to set layer proejction properly though...weill investigate further tomorrow.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3227 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-25 21:54:10 +00:00
mhugent
11a3931215
update vector layer extent in case of (not commited) deleted features and fixed a small memory leak in QgsMapCanvas
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3226 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-25 19:52:43 +00:00
gsherman
e1913af4a4
Implemented getSrid() to return the SRID of the layer. This commit
...
temporarily breaks the loading of PostGIS layers.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3225 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-25 15:37:30 +00:00
g_j_m
5550b100c0
Fix for bugs 1188781 and 1188780 (identify and select don't work on
...
projected layers)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3223 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-25 08:47:16 +00:00
g_j_m
458f33b56f
Added a set(const QgsRect&) function
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3222 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-25 08:41:08 +00:00
timlinux
a0fde81dce
Added body of method to create QgsSpatialRefSys from POSTGIS SRID
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3221 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-25 05:52:49 +00:00
timlinux
199ba75978
Fix projections broken by my last commit
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3220 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-25 04:44:13 +00:00
timlinux
93ac42625c
Added new QgsSpatialRefSys constructor that takes a spatial ref sys id and the spatia ref sys id type (which can be QGIS, POSTGIS or EPSG). Adde a new ctor to coordinate transform which takes a source srid, a dest wkt and a source srid type. Another two ctors will follow for coord transform
...
1) can take two srid (and thier types)
2) takes two QgsSpatialRefSys pointers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3219 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-25 02:00:23 +00:00
timlinux
41a342235f
Replace qgscoordinatetransform source and dest members which were strings with QgsSpatialRefSys pointers. Show proj in vector metadata dlg. Liberal sprinkling of const in QgsSpatialRefSys where appropriate. Commented out overloadded << operator in qgsspatialrefsys.h for now. Added QgsSpatialRefSys ctor that takes a wkt string.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3218 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-25 00:47:52 +00:00
g_j_m
12bc020ce8
Don't load all of the point symbols if the layer is not of point
...
type (saves time)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3217 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-24 11:46:31 +00:00
g_j_m
1c65ea53b5
Add in some debugging code for polylines
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3216 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-24 11:33:41 +00:00
g_j_m
b1c724f819
Remove items that the Qt svg read complains about. Doesn't seem to make
...
any difference to the resulting image
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3215 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-24 10:02:26 +00:00
gsherman
1e12404352
Fix for incorrect class names in the ui.h files
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3214 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-24 06:57:41 +00:00
gsherman
0080996ef1
More bookmark implementation. Bookmarks can now be added to the database.
...
Deleting bookmarks and zooming to a bookmark still to be implemented.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3213 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-24 06:17:28 +00:00
mhugent
a9c3cbafe3
consider added (not commited) features when zooming to the extent of a layer. Deleted (not commited) features are not considered at the moment as this would require a complete bounding box recalculation.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3212 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-24 05:29:42 +00:00
gsherman
fb11503547
Bookmark item class. A bookmark item is stored as a record in the users database
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3211 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-24 05:05:04 +00:00
g_j_m
2cfff3c90e
Give each plugin gui a unique class name based on the plugin name.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3210 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-24 03:34:36 +00:00
gsherman
4b9cac991c
- Added QgsBookmark class which implements the spatial bookmarks dialog.
...
- Added new files to Makefile.am
- Changes to the custom projection dialog to use the new qgis.db
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3209 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-24 03:17:52 +00:00
gsherman
eaab5f3700
Changed user database name to qgis.db. The new database contains the
...
spatial bookmarks table (tbl_bookmarks).
Added qgis.db to Makefile.am
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3208 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-24 03:07:15 +00:00
g_j_m
afa0f494bf
Bug fix for qgis crash when starting the northarrow gui after loading it.
...
Bug was the
same as for earlier fix with plugins, but with gui part. Will do the gui
parts of the other plugins in due course
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3207 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-24 00:22:35 +00:00
timlinux
4336f0c62b
Removed defunct headers in qgscoordinatetransform.cpp qgsprojectproperties.cpp
...
Added more to qgsspatialrefsys.cpp skelecton from work. Will start implementing
these methods tomorrow.
Commented out soem debug stuff in qgsvectorlayer.cpp
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3206 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-23 23:48:43 +00:00
g_j_m
faf9435a01
Remove the stuff from the canvas when the plugin is removed
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3205 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-23 23:07:57 +00:00
g_j_m
cac31cea77
Misc fixes for:
...
- change to proj from ogr for coordinate transformations
- unnecessary #includes
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3204 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-23 22:15:25 +00:00
gsherman
89695d77d8
Changes to use proj4 functions directlry
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3203 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-23 21:13:08 +00:00
timlinux
23bc20871c
Added new table tbl_srs that will hold srs systems. The table is not complete - proj and ellips acronyms sttill need to be parsed and the appropriate fields updated. Old spatial_ref_sys is left in for the time being. Once tbl_srs updates are complete, spatial ref sys and srs_name tables will be deleted after this, making the db much smaller.
...
Also added ellipsoid and projection dictionary tables generated by parsing proj -lP and proj -le
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3202 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-23 13:09:23 +00:00
timlinux
c01cde2997
Removed qgsspatialreferences.cpp as its functionailty is no longer needed now that we have sqlite3 on the job.
...
Reimplemented qgsspatialrefsys to match the new schema that is going into srs.db
Removed qgsspatialreferences.cpp and qgsspatialreferences.h from Makefile
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3201 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-23 12:58:14 +00:00
g_j_m
9a9c27f2e1
Bug fix: local variable was obscuring a class member variable meaning
...
that the relevant plugin menu item was not being removed when the
plugin was removed
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3200 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-23 12:29:03 +00:00
g_j_m
c4086e115f
Return the menu id instead of 0
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3199 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-23 12:26:50 +00:00
g_j_m
1879b2709d
Fix for bug 1077196 (plugin icons incorrect on first load). A tricky one.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3198 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-23 11:45:27 +00:00
mcoletti
bf23e14be9
- removed completed TODO items
...
- now catches expected exceptions for not finding map extents since there
aren't going to be any in the test simulation
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3197 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-22 22:34:10 +00:00
mcoletti
7a3a3ec1c0
QgsProject is now a *little* bit more robust with regards to dealing with
...
project files that have missing or relocated layers. Now it least pops up a
dialog that tells you that it was unable to open the layer instead of just
silently failing.
Better than nothing, I suppose. Will continue to improve error handling.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3196 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-22 22:32:04 +00:00
timlinux
80379b1aea
JDigiguere's fixes for sqlite3 detection on ubuntu
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3195 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-22 17:05:00 +00:00
gsherman
f6901bf90f
Updated bookmarks icons
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3194 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-22 14:43:28 +00:00
mhugent
ef160811bc
added the possibility to choose encoding for postgis layers
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3193 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-22 04:48:28 +00:00
mcoletti
2db5e7fe57
qgslabeldialog.cpp :
...
- define constants via "const" and not through #defines
- adding some debugging messages
qgsmaplayer.cpp :
- trivial reformatting
qgsmaplayer.h :
- header file includes generally should use brackets and not double quotes
qgssinglesymrenderer.cpp :
- more robust checking of XML elements
qgsproject, qgsvectorlayer :
- no longer bombs when loading a project where one or more layers are
missing (e.g., relocating the data)
Mostly this commit is for code to stop core dumps when loading projects with
layers with missing or relocated data. Unfortunately it just silently fails.
Next step will be to add some feedback and then to implement a clever means of
pointing to new data location.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3192 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-21 21:46:37 +00:00
mcoletti
daa40df02c
Compensated for new binaries to link against, including sqlite3
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3191 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-21 21:41:33 +00:00
g_j_m
fbae813f55
Remove an extraneous / in the test for sqlite3.h headers
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3190 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-21 21:00:08 +00:00
telwertowski
016f2cee0f
Remove whitespace inserted into middle of filename during last edit.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3189 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-21 18:05:33 +00:00
gsherman
37ca5398f9
Tests for proj4 and sqlite3 added (thanks to jdgiguere)
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3188 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-21 04:06:58 +00:00
g_j_m
61cfe03260
- rationalisation of transform functions in qgsmaptopixel.h
...
- improvement in code flow when trimming is necessary in qgsvectorlayer.cpp
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3187 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-19 05:59:20 +00:00
g_j_m
c798699029
Previous version compiled on my compiler, but not some others. This should fix it.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3186 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-18 19:38:27 +00:00
mhugent
3d88fe5a5f
fixed two bugs in the table function 'bringSelectedToTop' and store the chosen encoding in the QSettings file
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3185 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-18 15:23:25 +00:00
g_j_m
121ea51e3f
- rationalisation of polygon and linestring trimming for X11 zoom bug
...
- rearrangement of misc. transform functions to reduce CPU effort
- mods to exception catching (gave a 10-15% reduction in drawing time)
- some ready to use code to help debug any remaining X11 zoom bugs
- trims at 30000 instead of 32760
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3184 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-18 10:48:53 +00:00
gsherman
5924035e43
Stubbed in function to add a new bookmark.
...
Added icon for the new bookmark menu item.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3183 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-18 04:30:40 +00:00
gsherman
9460946da1
Icon for spatial bookmarks menu item.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3182 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-18 02:45:54 +00:00
gsherman
ef5a280cee
Wired bookmarks dialog into the gui. The bookmarks dialog is
...
still non-functional.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3181 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-18 02:00:49 +00:00
gsherman
9ad5c615c2
Base dialog for displaying and working with spatial bookmarks. Not
...
connected to the UI yet.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3180 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-18 00:36:31 +00:00
timlinux
d108b0b098
User projections now shown in projection selector but are still not useable
...
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3179 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-04-17 22:19:11 +00:00